diff options
author | imarom <imarom@cisco.com> | 2016-05-09 16:44:10 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-05-09 16:48:17 +0300 |
commit | 3ef23bf8bf6b9f9bb59de4289658f3f81da63435 (patch) | |
tree | 5d729805f53f5541d0e99380f6967efd633fbd68 /src/stateless | |
parent | c4e6748cedf1f9f3a3c1916c96c4f044561b075b (diff) |
PCAP remote gtests
Diffstat (limited to 'src/stateless')
-rw-r--r-- | src/stateless/dp/trex_stateless_dp_core.cpp | 6 | ||||
-rw-r--r-- | src/stateless/dp/trex_stream_node.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/stateless/dp/trex_stateless_dp_core.cpp b/src/stateless/dp/trex_stateless_dp_core.cpp index 1a730e66..6648e2f3 100644 --- a/src/stateless/dp/trex_stateless_dp_core.cpp +++ b/src/stateless/dp/trex_stateless_dp_core.cpp @@ -276,13 +276,15 @@ bool TrexStatelessDpPerPort::push_pcap(uint8_t port_id, return (false); } - pkt_dir_t dir = m_core->m_node_gen.m_v_if->port_id_to_dir(port_id); + pkt_dir_t dir = m_core->m_node_gen.m_v_if->port_id_to_dir(port_id); + socket_id_t socket_id = m_core->m_node_gen.m_socket_id; uint8_t mac_addr[12]; m_core->m_node_gen.m_v_if->update_mac_addr_from_global_cfg(dir, mac_addr); bool rc = pcap_node->create(port_id, dir, + socket_id, mac_addr, pcap_filename, ipg_usec, @@ -984,6 +986,7 @@ TrexStatelessDpCore::barrier(uint8_t port_id, int event_id) { */ bool CGenNodePCAP::create(uint8_t port_id, pkt_dir_t dir, + socket_id_t socket_id, const uint8_t *mac_addr, const std::string &pcap_filename, double ipg_usec, @@ -1015,6 +1018,7 @@ bool CGenNodePCAP::create(uint8_t port_id, /* set the dir */ set_mbuf_dir(dir); + set_socket_id(socket_id); /* create the PCAP reader */ m_reader = CCapReaderFactory::CreateReader((char *)pcap_filename.c_str(), 0, ss); diff --git a/src/stateless/dp/trex_stream_node.h b/src/stateless/dp/trex_stream_node.h index de4c21de..70054bbc 100644 --- a/src/stateless/dp/trex_stream_node.h +++ b/src/stateless/dp/trex_stream_node.h @@ -400,6 +400,7 @@ public: */ bool create(uint8_t port_id, pkt_dir_t dir, + socket_id_t socket_id, const uint8_t *mac_addr, const std::string &pcap_filename, double ipg_usec, |