]> git.baikalelectronics.ru Git - kernel.git/commitdiff
igc: Remove symbol error counter
authorSasha Neftin <sasha.neftin@intel.com>
Tue, 19 May 2020 14:36:34 +0000 (17:36 +0300)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 29 May 2020 03:26:57 +0000 (20:26 -0700)
Accordance to the i225 datasheet symbol error counter does not
applicable to the i225 device.
This patch comes to clean up this counter.

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc_mac.c
drivers/net/ethernet/intel/igc/igc_main.c
drivers/net/ethernet/intel/igc/igc_regs.h

index 89445ab02a986faed5c1cd5d891bb7df2a4d48f3..9de70a24cb9e0b2de938c0c67e134d629ac00783 100644 (file)
@@ -235,7 +235,6 @@ out:
 void igc_clear_hw_cntrs_base(struct igc_hw *hw)
 {
        rd32(IGC_CRCERRS);
-       rd32(IGC_SYMERRS);
        rd32(IGC_MPC);
        rd32(IGC_SCC);
        rd32(IGC_ECOL);
index 97d26991c87e92168eb1c71cd270bef8c470c0be..662f06a647e65c171996c932d65d3935d7ba631a 100644 (file)
@@ -3701,7 +3701,6 @@ void igc_update_stats(struct igc_adapter *adapter)
        adapter->stats.prc511 += rd32(IGC_PRC511);
        adapter->stats.prc1023 += rd32(IGC_PRC1023);
        adapter->stats.prc1522 += rd32(IGC_PRC1522);
-       adapter->stats.symerrs += rd32(IGC_SYMERRS);
        adapter->stats.sec += rd32(IGC_SEC);
 
        mpc = rd32(IGC_MPC);
index 7f999cfc9b3922937b8716d882e42535743f09fc..a3e4ec9229487ff9780f943a4064f69988cd4f71 100644 (file)
 /* Statistics Register Descriptions */
 #define IGC_CRCERRS    0x04000  /* CRC Error Count - R/clr */
 #define IGC_ALGNERRC   0x04004  /* Alignment Error Count - R/clr */
-#define IGC_SYMERRS    0x04008  /* Symbol Error Count - R/clr */
 #define IGC_RXERRC     0x0400C  /* Receive Error Count - R/clr */
 #define IGC_MPC                0x04010  /* Missed Packet Count - R/clr */
 #define IGC_SCC                0x04014  /* Single Collision Count - R/clr */