summaryrefslogtreecommitdiffstats
path: root/src/stateless/cp/trex_streams_compiler.h
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-11-01 10:20:16 +0200
committerimarom <imarom@cisco.com>2015-11-01 10:20:16 +0200
commita1971ec3a7f6cbe0aea1393a57aa17bf44deedac (patch)
tree41c0de4453d8f0cf0176834ca37f8757ecb90b47 /src/stateless/cp/trex_streams_compiler.h
parent9a820782c35c6de79d2e724a48087e8ee62fc72d (diff)
DP stop message now disables only port related nodes
and not all of them
Diffstat (limited to 'src/stateless/cp/trex_streams_compiler.h')
-rw-r--r--src/stateless/cp/trex_streams_compiler.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stateless/cp/trex_streams_compiler.h b/src/stateless/cp/trex_streams_compiler.h
index 90253cdf..82318dec 100644
--- a/src/stateless/cp/trex_streams_compiler.h
+++ b/src/stateless/cp/trex_streams_compiler.h
@@ -36,13 +36,14 @@ class TrexStreamsCompiledObj {
friend class TrexStreamsCompiler;
public:
- TrexStreamsCompiledObj() {}
+ TrexStreamsCompiledObj(uint8_t port_id);
~TrexStreamsCompiledObj();
struct obj_st {
double m_pps;
uint8_t *m_pkt;
uint16_t m_pkt_len;
+ uint8_t m_port_id;
};
const std::vector<obj_st> & get_objects() {
@@ -52,6 +53,8 @@ public:
private:
void add_compiled_stream(double pps, uint8_t *pkt, uint16_t pkt_len);
std::vector<obj_st> m_objs;
+
+ uint8_t m_port_id;
};
class TrexStreamsCompiler {