diff options
author | 2016-11-28 20:05:26 +0200 | |
---|---|---|
committer | 2016-11-28 21:16:09 +0200 | |
commit | f143a31a6e58dcc7d520a6d9f8a40bead32b52ef (patch) | |
tree | 9b90ac279def26a681cb19b02b14f6ff4705ea2e /src | |
parent | 42d715953010cf3e8f645b76bf5094bf82925d86 (diff) |
VIC DPDK input counter add +4 bytes - reduce it
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main_dpdk.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp index faec66d4..540ec88e 100644 --- a/src/main_dpdk.cpp +++ b/src/main_dpdk.cpp @@ -6879,10 +6879,10 @@ void CTRexExtendedDriverBaseVIC::get_extended_stats(CPhyEthIF * _if,CPhyEthIFSta rte_eth_stats_get(_if->get_port_id(), &stats1); stats->ipackets += stats1.ipackets - prev_stats->ipackets; - stats->ibytes += stats1.ibytes - prev_stats->ibytes; + stats->ibytes += stats1.ibytes - prev_stats->ibytes + - ((stats1.ipackets << 2) - (prev_stats->ipackets << 2)); stats->opackets += stats1.opackets - prev_stats->opackets; - stats->obytes += stats1.obytes - prev_stats->obytes - + (stats1.opackets << 2) - (prev_stats->opackets << 2); + stats->obytes += stats1.obytes - prev_stats->obytes; stats->f_ipackets += 0; stats->f_ibytes += 0; stats->ierrors += stats1.imissed + stats1.ierrors + stats1.rx_nombuf |