diff options
author | imarom <imarom@cisco.com> | 2017-02-13 08:43:39 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2017-02-16 15:20:23 +0200 |
commit | d9e19ba46d441b8e208f223add5a612183e5157c (patch) | |
tree | 53ea22e98cc577e20ea67ad3b3a92032eb72a8d2 /src/main_dpdk.cpp | |
parent | 8ed3bb7219e4548031d3e07d929d9d5e1f6840af (diff) |
TX feature - draft
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/main_dpdk.cpp')
-rw-r--r-- | src/main_dpdk.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp index de825b34..f227b2d8 100644 --- a/src/main_dpdk.cpp +++ b/src/main_dpdk.cpp @@ -2310,6 +2310,9 @@ int CCoreEthIF::send_pkt(CCorePerPort * lp_port, uint16_t len = lp_port->m_len; lp_port->m_table[len]=m; len++; + + TrexStatelessCaptureMngr::getInstance().handle_pkt_tx(m, lp_port->m_port->get_port_id()); + /* enough pkts to be sent */ if (unlikely(len == MAX_PKT_BURST)) { send_burst(lp_port, MAX_PKT_BURST,lp_stats); @@ -2324,6 +2327,8 @@ int CCoreEthIF::send_pkt_lat(CCorePerPort *lp_port, rte_mbuf_t *m, CVirtualIFPer // We allow sending only from first core of each port. This is serious internal bug otherwise. assert(lp_port->m_tx_queue_id_lat != INVALID_Q_ID); + TrexStatelessCaptureMngr::getInstance().handle_pkt_tx(m, lp_port->m_port->get_port_id()); + int ret = lp_port->m_port->tx_burst(lp_port->m_tx_queue_id_lat, &m, 1); #ifdef DELAY_IF_NEEDED |