diff options
author | imarom <imarom@cisco.com> | 2016-09-04 15:25:42 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-09-07 14:02:55 +0300 |
commit | 04eae221e7c0089ae974f86e3f6fe156d4cb56ce (patch) | |
tree | 53b378e86f8173a8cc1f4bf2107ce6f797a91760 /src/stateless/dp/trex_stream_node.h | |
parent | 873e398fe2a52655b4d683acbcd05ef726cd97fa (diff) |
DUAL mode - phase #1
Diffstat (limited to 'src/stateless/dp/trex_stream_node.h')
-rw-r--r-- | src/stateless/dp/trex_stream_node.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/stateless/dp/trex_stream_node.h b/src/stateless/dp/trex_stream_node.h index 8a68625c..b4910fce 100644 --- a/src/stateless/dp/trex_stream_node.h +++ b/src/stateless/dp/trex_stream_node.h @@ -468,7 +468,8 @@ public: const std::string &pcap_filename, double ipg_usec, double speedup, - uint32_t count); + uint32_t count, + bool is_dual); /** * destroy the node cleaning up any data @@ -476,6 +477,10 @@ public: */ void destroy(); + bool is_dual() const { + return m_is_dual; + } + /** * advance - will read the next packet * @@ -505,6 +510,10 @@ public: } } + if (is_dual()) { + uint8_t dir = m_raw_packet->getInterface() & 0x1; + set_mbuf_dir(dir); + } } /** @@ -615,8 +624,10 @@ private: uint8_t m_port_id; + bool m_is_dual; + /* pad to match the size of CGenNode */ - uint8_t m_pad_end[33]; + uint8_t m_pad_end[32]; } __rte_cache_aligned; |