[Intel-wired-lan] [PATCH net v1] igc: Fix returning wrong statistics

Brown, Aaron F aaron.f.brown at intel.com
Sat Oct 17 03:43:47 UTC 2020


> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Vinicius Costa Gomes
> Sent: Friday, September 25, 2020 11:36 AM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Guedes, Andre <andre.guedes at intel.com>
> Subject: [Intel-wired-lan] [PATCH net v1] 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: c9a11c23ceb6 ("igc: Add netdev")
> Signed-off-by: Vinicius Costa Gomes <vinicius.gomes at intel.com>
> ---
>  drivers/net/ethernet/intel/igc/igc_main.c | 14 ++++++++------
>  1 file changed, 8 insertions(+), 6 deletions(-)
> 

Tested-by: Aaron Brown <aaron.f.brown at intel.com>


More information about the Intel-wired-lan mailing list