diff options
author | Ido Barnea <ibarnea@cisco.com> | 2017-01-08 17:14:32 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2017-01-09 15:19:00 +0200 |
commit | e532c2a19bd6afeaccb0b3eafebed3c5e758b339 (patch) | |
tree | 277f5347c9870f72e881e807744b3813a5968d4e /src/debug.cpp | |
parent | 335131c1d13f80caf1dd326758e154317283c780 (diff) |
Support for ixgbevf and i40evf
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index 3e35a862..4abd05a0 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -398,7 +398,13 @@ int CTrexDebug::verify_hw_rules(bool recv_all) { memset(pkt_per_q, 0, sizeof(pkt_per_q)); // We don't know which interfaces connected where, so sum all queue 1 and all queue 0 for (int port = 0; port < m_max_ports; port++) { - for(int queue_id = 0; queue_id <= 1; queue_id++) { + int max_q; + if (CGlobalInfo::m_options.preview.get_vm_one_queue_enable()) { + max_q = 0; + } else { + max_q = 1; + } + for(int queue_id = 0; queue_id <= max_q; queue_id++) { lp = &m_ports[port]; uint16_t cnt = lp->rx_burst(queue_id, rx_pkts, 32); pkt_per_q[queue_id] += cnt; |