diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-06-17 12:33:22 +0300 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-06-17 12:33:22 +0300 |
commit | 9b4c1354cb97988983da217c85223e8d0479b4d5 (patch) | |
tree | 8b4b1fda4bd55fc1c057d24aa251990770fb8511 | |
parent | 0e3621ee07983ce18b83761a794356e910702c42 (diff) |
XL710/X710 include 4 byte CRC for port stats
-rw-r--r-- | src/main_dpdk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp index 1c0f8c80..b41d4f91 100644 --- a/src/main_dpdk.cpp +++ b/src/main_dpdk.cpp @@ -5494,10 +5494,10 @@ void CTRexExtendedDriverBase40G::get_extended_stats(CPhyEthIF * _if,CPhyEthIFSta stats->ipackets = stats1.ipackets; - stats->ibytes = stats1.ibytes; + stats->ibytes = stats1.ibytes + (stats1.ipackets<<2); stats->opackets = stats1.opackets; - stats->obytes = stats1.obytes; + stats->obytes = stats1.obytes + (stats1.opackets<<2); stats->f_ipackets = 0; stats->f_ibytes = 0; |