TencentOS-kernel/drivers/net/ethernet/intel
Vinicius Costa Gomes 4f36f88e37 igc: Fix returning wrong statistics
[ Upstream commit 6b7ed22ae4c96a415001f0c3116ebee15bb8491a ]

'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: c9a11c23ceb6 ("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>
2021-03-16 16:40:49 +08:00
..
e1000 e1000: Do not perform reset in reset_task if we are already down 2021-03-16 16:37:20 +08:00
e1000e e1000e: Add support for Comet Lake 2021-03-16 16:36:10 +08:00
fm10k Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
i40e Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
iavf iavf: use tc_cls_can_offload_and_chain0() instead of chain check 2021-03-16 16:36:56 +08:00
ice ice: Fix to change Rx/Tx ring descriptor size via ethtool with DCBx 2021-03-16 16:36:37 +08:00
igb igb: reinit_locked() should be called with rtnl_lock 2021-03-16 16:33:07 +08:00
igbvf Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
igc igc: Fix returning wrong statistics 2021-03-16 16:40:49 +08:00
ixgb Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ixgbe scsi: fcoe: Fix I/O path allocation 2021-03-16 16:35:06 +08:00
ixgbevf Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
e100.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00