summaryrefslogtreecommitdiffstats
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-03-15 18:36:04 +0200
committerIdo Barnea <ibarnea@cisco.com>2016-03-22 17:40:02 +0200
commitdd0507516960de491a3c697680d970f31661714b (patch)
treed39534d9d3118ba5a4602b7e5d435d89656d77cd /src/debug.cpp
parent582d3f74d66b81fbe798e54e75ade27561da58d8 (diff)
RX bytes reporting working
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index 902766a1..656549dc 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -415,11 +415,17 @@ int CTrexDebug::test_send(uint pkt_type) {
lp->dump_stats_extended(stdout);
}
for (port_id = 0; port_id < m_max_ports; port_id++) {
- uint64_t fdir_stat[MAX_FLOW_STATS];
+ rx_per_flow_t fdir_stat[MAX_FLOW_STATS];
+ uint64_t fdir_stat_64[MAX_FLOW_STATS];
CPhyEthIF *lp = &m_ports[port_id];
- if (lp->get_flow_stats(fdir_stat, NULL, 0, MAX_FLOW_STATS, false) == 0)
- rte_stat_dump_array(fdir_stat, "FDIR stat", MAX_FLOW_STATS);
+ if (lp->get_flow_stats(fdir_stat, NULL, 0, MAX_FLOW_STATS, false) == 0) {
+ for (int i = 0; i < MAX_FLOW_STATS; i++) {
+ fdir_stat_64[i] = fdir_stat[i].get_pkts();
+ }
+ rte_stat_dump_array(fdir_stat_64, "FDIR stat", MAX_FLOW_STATS);
+ }
}
+
return (0);
}