linux/drivers/net/ethernet/intel/igc
Vinicius Costa Gomes 6b7ed22ae4 igc: Fix returning wrong statistics
'igc_update_stats()' was not updating 'netdev->stats', so the returned
statistics, for example, requested by:

$ ip -s link show dev enp3s0

were not being updated and were always zero.

Fix by returning a set of statistics that are actually being
updated (adapter->stats64).

Fixes: c9a11c23ce ("igc: Add netdev")
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2020-11-10 15:03:14 -08:00
..
igc_base.c igc: Add new device ID's 2020-09-28 14:42:45 -07:00
igc_base.h
igc_defines.h igc: Clean RX descriptor error flags 2020-09-28 14:42:45 -07:00
igc_diag.c
igc_diag.h
igc_dump.c
igc_ethtool.c igc: Expose LPI counters 2020-09-28 14:42:45 -07:00
igc_hw.h igc: Clean up nvm_info structure 2020-09-28 14:42:46 -07:00
igc_i225.c igc: Add initial LTR support 2020-06-29 18:21:09 -07:00
igc_i225.h igc: Add initial LTR support 2020-06-29 18:21:09 -07:00
igc_mac.c igc: Fix static checker warning 2020-07-27 08:49:32 -07:00
igc_mac.h
igc_main.c igc: Fix returning wrong statistics 2020-11-10 15:03:14 -08:00
igc_nvm.c
igc_nvm.h
igc_phy.c
igc_phy.h
igc_ptp.c igc: Export a way to read the PTP timer 2020-09-28 14:42:46 -07:00
igc_regs.h igc: Clean up the hw_stats structure 2020-07-27 08:49:32 -07:00
igc_tsn.c
igc_tsn.h
igc.h igc: Export a way to read the PTP timer 2020-09-28 14:42:46 -07:00
Makefile