linux_dsm_epyc7002/drivers/net/igb
Eric Dumazet 12dcd86b75 igb: fix stats handling
There are currently some problems with igb.

- On 32bit arches, maintaining 64bit counters without proper
synchronization between writers and readers.

- Stats updated every two seconds, as reported by Jesper.
   (Jesper provided a patch for this)

- Potential problem between worker thread and ethtool -S

This patch uses u64_stats_sync, and convert everything to be 64bit safe,
SMP safe, even on 32bit arches. It integrates Jesper idea of providing
accurate stats at the time user reads them.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Tested-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-18 07:54:29 -07:00
..
e1000_82575.c igb: Add support for DH89xxCC 2010-09-22 21:20:04 -07:00
e1000_82575.h igb: add per-packet timestamping 2010-03-30 23:42:27 -07:00
e1000_defines.h igb: Add support for DH89xxCC 2010-09-22 21:20:04 -07:00
e1000_hw.h igb: Add support for DH89xxCC 2010-09-22 21:20:04 -07:00
e1000_mac.c igb: add support for reporting 5GT/s during probe on PCIe Gen2 2010-04-27 12:53:28 -07:00
e1000_mac.h igb: remove adaptive IFS from driver 2010-02-17 13:21:34 -08:00
e1000_mbx.c igb: fix a few items where weren't correctly setup for mbx timeout 2009-10-06 14:59:21 -07:00
e1000_mbx.h igb: rework use of VMOLR in regards to PF and VFs 2009-10-28 03:25:40 -07:00
e1000_nvm.c igb: remove microwire support from igb 2009-10-06 14:59:22 -07:00
e1000_nvm.h
e1000_phy.c igb: Add support for DH89xxCC 2010-09-22 21:20:04 -07:00
e1000_phy.h igb: Add support for DH89xxCC 2010-09-22 21:20:04 -07:00
e1000_regs.h igb: support for VF configuration tools 2010-02-12 16:56:09 -08:00
igb_ethtool.c igb: fix stats handling 2010-10-18 07:54:29 -07:00
igb_main.c igb: fix stats handling 2010-10-18 07:54:29 -07:00
igb.h igb: fix stats handling 2010-10-18 07:54:29 -07:00
Makefile igb: Add support for enabling VFs to PF driver. 2009-02-20 00:22:54 -08:00