summaryrefslogtreecommitdiffstats
path: root/src/main_dpdk.cpp
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-03-03 16:12:36 +0200
committerIdo Barnea <ibarnea@cisco.com>2016-03-03 16:12:36 +0200
commit2760d0eef3076580f3d112c2e754e108f6028dc7 (patch)
treed79769d7c8717946ec6c34388024b5709563d781 /src/main_dpdk.cpp
parent378ed0a10ff8e3c32301072b539d7ab926133bad (diff)
Small flow stat fix
Diffstat (limited to 'src/main_dpdk.cpp')
-rw-r--r--src/main_dpdk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp
index 77e186b3..57b3719b 100644
--- a/src/main_dpdk.cpp
+++ b/src/main_dpdk.cpp
@@ -3897,7 +3897,7 @@ static CGlobalTRex g_trex;
int CPhyEthIF::reset_hw_flow_stats() {
uint32_t diff_stats[MAX_FLOW_STATS];
- if (get_ex_drv()->get_rx_stats(this, diff_stats, m_stats.m_fdir_prev_stats, 0, MAX_FLOW_STATS) < 0) {
+ if (get_ex_drv()->get_rx_stats(this, diff_stats, m_stats.m_fdir_prev_stats, 0, MAX_FLOW_STATS - 1) < 0) {
return -1;
}