diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-12-04 18:28:32 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-12-04 18:28:48 +0200 |
commit | 21f7d2e66a10445d4552749a621aa856259ae661 (patch) | |
tree | b50669f23a15bd445fa2e5b140b226c328e91056 /src/debug.cpp | |
parent | 5d5e7a2db5bdb2b7cfa0f37ff9cf53bb615f550c (diff) |
Fix debug packet test to work with mlnx and vic cards
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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: |