]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Add Receive Descriptor Minimum Threshold Count to clear HW counters
authorSasha Neftin <sasha.neftin@intel.com>
Mon, 22 Jun 2020 07:20:30 +0000 (10:20 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 27 Jul 2020 15:49:31 +0000 (08:49 -0700)
commitb654535313aa48a428e6dfc0c64ba5f501e8b547
tree3cc5b175281f85233b50f69d6acc016cee99fd46
parentdcde85996fad24f6f502c0ff6c9bf17992900441
igc: Add Receive Descriptor Minimum Threshold Count to clear HW counters

The statistics of this register are being tracked, however, the register
was inadvertently missed when implementing igc_clear_hw_cntrs_base().
The register is clear on read, so add it to the function so that the
register is cleared when requested so the tracked count is accurate.

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_mac.c