summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/main_dpdk.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp
index a5e87172..d40c4c8b 100755
--- a/src/main_dpdk.cpp
+++ b/src/main_dpdk.cpp
@@ -4585,9 +4585,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) ;