1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
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.h igc: Export a way to read the PTP timer 2020-09-28 14:42:46 -07:00
igc_base.c igc: Add new device ID's 2020-09-28 14:42:45 -07:00
igc_base.h igc: Add tx_csum offload functionality 2019-09-09 11:37:14 -07:00
igc_defines.h igc: Clean RX descriptor error flags 2020-09-28 14:42:45 -07:00
igc_diag.c igc: add support to eeprom, registers and link self-tests 2020-05-18 15:06:28 -07:00
igc_diag.h igc: add support to eeprom, registers and link self-tests 2020-05-18 15:06:28 -07:00
igc_dump.c igc: Remove unused registers 2020-05-19 16:00:00 -07:00
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: remove IGC_REMOVED function 2020-05-19 15:01:48 -07:00
igc_main.c igc: Fix returning wrong statistics 2020-11-10 15:03:14 -08:00
igc_nvm.c igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_nvm.h igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_phy.c igc: Add PHY power management control 2020-01-17 09:55:34 -08:00
igc_phy.h igc: Add setup link functionality 2018-10-17 13:56:55 -07:00
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: Add support for ETF offloading 2020-04-17 10:19:24 -07:00
igc_tsn.h igc: Add support for taprio offloading 2020-04-17 10:19:24 -07:00
Makefile igc: add support to eeprom, registers and link self-tests 2020-05-18 15:06:28 -07:00