From 21f7d2e66a10445d4552749a621aa856259ae661 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Sun, 4 Dec 2016 18:28:32 +0200 Subject: Fix debug packet test to work with mlnx and vic cards Signed-off-by: Ido Barnea --- src/debug.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/debug.cpp') diff --git a/src/debug.cpp b/src/debug.cpp index d0b7cf11..e272424c 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -142,7 +142,7 @@ rte_mbuf_t *CTrexDebug::create_test_pkt(int ip_ver, uint16_t l4_proto, uint8_t t pkt = CTestPktGen::create_test_pkt(l3_type, l4_proto, ttl, ip_id, flags, 1000, pkt_size); - /* DEBUG print the packet + /* DEBUG print the packet utl_k12_pkt_format(stdout,pkt, pkt_size) ; */ @@ -370,6 +370,7 @@ int CTrexDebug::verify_hw_rules(bool recv_all) { case STL: if ( CGlobalInfo::m_options.is_stateless() ) { exp_q = MAIN_DPDK_RX_Q; + pkt_flags |= DPF_TOS_1; } else { exp_q = MAIN_DPDK_DATA_Q; } @@ -379,6 +380,7 @@ int CTrexDebug::verify_hw_rules(bool recv_all) { exp_q = MAIN_DPDK_DATA_Q; } else { exp_q = MAIN_DPDK_RX_Q; + pkt_flags |= DPF_TOS_1; } break; default: -- cgit 1.2.3-korg