1
0
Fork 0
alistair23-linux/drivers/net/ethernet/intel/igc
Vinicius Costa Gomes a8ee686597 igc: Fix returning wrong statistics
[ Upstream commit 6b7ed22ae4 ]

'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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-11-18 19:20:27 +01:00
..
Makefile igc: Add ethtool support 2019-02-05 17:35:46 -08:00
igc.h igc: Add tx_csum offload functionality 2019-09-09 11:37:14 -07:00
igc_base.c igc: Add more SKUs for i225 device 2019-07-24 13:55:09 -07:00
igc_base.h igc: Add tx_csum offload functionality 2019-09-09 11:37:14 -07:00
igc_defines.h igc: Add tx_csum offload functionality 2019-09-09 11:37:14 -07:00
igc_ethtool.c igc: Remove unneeded hw_dbg prints 2019-03-19 15:21:21 -07:00
igc_hw.h igc: Add more SKUs for i225 device 2019-07-24 13:55:09 -07:00
igc_i225.c igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_i225.h igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_mac.c igc: Remove useless forward declaration 2019-09-09 10:08:38 -07:00
igc_mac.h igc: Add setup link functionality 2018-10-17 13:56:55 -07:00
igc_main.c igc: Fix returning wrong statistics 2020-11-18 19:20:27 +01: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: Remove useless forward declaration 2019-09-09 10:08:38 -07:00
igc_phy.h igc: Add setup link functionality 2018-10-17 13:56:55 -07:00
igc_regs.h igc: Extend the ethtool supporting 2019-03-19 14:45:23 -07:00