From a1971ec3a7f6cbe0aea1393a57aa17bf44deedac Mon Sep 17 00:00:00 2001 From: imarom Date: Sun, 1 Nov 2015 10:20:16 +0200 Subject: DP stop message now disables only port related nodes and not all of them --- src/stateless/cp/trex_streams_compiler.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/stateless/cp/trex_streams_compiler.h') 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 & get_objects() { @@ -52,6 +53,8 @@ public: private: void add_compiled_stream(double pps, uint8_t *pkt, uint16_t pkt_len); std::vector m_objs; + + uint8_t m_port_id; }; class TrexStreamsCompiler { -- cgit 1.2.3-korg