linux-brain/drivers/net/ethernet/intel
Vinicius Costa Gomes a8ee686597 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: 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
..
e1000 e1000: Do not perform reset in reset_task if we are already down 2020-10-01 13:18:03 +02:00
e1000e e1000e: Add support for Comet Lake 2020-09-23 12:40:33 +02:00
fm10k fm10k: use a local variable for the frag pointer 2019-09-09 10:08:38 -07:00
i40e i40e: Fix crash during removing i40e driver 2020-08-26 10:41:01 +02:00
iavf iavf: Fix incorrect adapter get in iavf_resume 2020-10-14 10:33:03 +02:00
ice ice: Fix to change Rx/Tx ring descriptor size via ethtool with DCBx 2020-10-01 13:17:16 +02:00
igb igb: reinit_locked() should be called with rtnl_lock 2020-08-11 15:33:38 +02:00
igbvf net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
igc igc: Fix returning wrong statistics 2020-11-18 19:20:27 +01:00
ixgb net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
ixgbe scsi: fcoe: Fix I/O path allocation 2020-09-03 11:26:59 +02:00
ixgbevf ixgbevf: Remove limit of 10 entries for unicast filter list 2020-02-05 21:22:44 +00:00
e100.c intel: correct return from set features callback 2019-03-19 14:18:49 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00