diff options
author | 2016-01-24 13:26:55 +0200 | |
---|---|---|
committer | 2016-01-24 13:26:55 +0200 | |
commit | 2d27d1df02328d7148ac1c4ed029ecdaf1853c1e (patch) | |
tree | 43070ff5fd662aa8132ff54c6b64965d3a016c46 | |
parent | 1d8c0a97f418555058efd9b149b1fec0cb808eb7 (diff) |
82599 report input errors on drop queue- remove the MPC in this case
-rwxr-xr-x | src/main_dpdk.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp index 7c25b2e2..fe6c6bdb 100755 --- a/src/main_dpdk.cpp +++ b/src/main_dpdk.cpp @@ -4563,9 +4563,13 @@ void CTRexExtendedDriverBase10G::get_extended_stats(CPhyEthIF * _if,CPhyEthIFSta int i; uint64_t t=0; - for (i=0; i<8;i++) { - t+=_if->pci_reg_read(IXGBE_MPC(i)); - } + + if ( !get_is_stateless() ) { + + for (i=0; i<8;i++) { + t+=_if->pci_reg_read(IXGBE_MPC(i)); + } + } stats->ipackets += _if->pci_reg_read(IXGBE_GPRC) ; |