aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_mac.c
diff options
context:
space:
mode:
authorSasha Neftin <[email protected]>2020-05-19 14:55:42 +0000
committerJeff Kirsher <[email protected]>2020-05-29 03:30:06 +0000
commit51c657b42f58fcf061dfd6d01df26ff1701ae72c (patch)
tree44b2abf46d75e9b426b8ea28d10e3229b39b1d1a /drivers/net/ethernet/intel/igc/igc_mac.c
parentigc: Remove symbol error counter (diff)
downloadkernel-51c657b42f58fcf061dfd6d01df26ff1701ae72c.tar.gz
kernel-51c657b42f58fcf061dfd6d01df26ff1701ae72c.zip
igc: Add Receive Error Counter
Receive error counter reflect total number of non-filtered packets received with errors. This includes: CRC error, symbol error, Rx data error and carrier extend error. Signed-off-by: Sasha Neftin <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_mac.c')
-rw-r--r--drivers/net/ethernet/intel/igc/igc_mac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_mac.c b/drivers/net/ethernet/intel/igc/igc_mac.c
index 9de70a24cb9e..a5a087e1ac02 100644
--- a/drivers/net/ethernet/intel/igc/igc_mac.c
+++ b/drivers/net/ethernet/intel/igc/igc_mac.c
@@ -241,6 +241,7 @@ void igc_clear_hw_cntrs_base(struct igc_hw *hw)
rd32(IGC_MCC);
rd32(IGC_LATECOL);
rd32(IGC_COLC);
+ rd32(IGC_RERC);
rd32(IGC_DC);
rd32(IGC_SEC);
rd32(IGC_RLEC);