From 2760d0eef3076580f3d112c2e754e108f6028dc7 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Thu, 3 Mar 2016 16:12:36 +0200 Subject: Small flow stat fix --- src/main_dpdk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main_dpdk.cpp') 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; } -- cgit 1.2.3-korg