ixgbevf: provide 64 bit statistics
commit4197aa7bb81877ebb06e4f2cc1b5fea2da23a7bd
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 22 Jun 2011 05:01:35 +0000 (22 05:01 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 27 Aug 2011 06:50:09 +0000 (26 23:50 -0700)
tree90e69cb83d51aae53fb0293ae888ec7c4ef5b31a
parent98b9e48fca11c8aa54b25c02d3329392b52db8ab
ixgbevf: provide 64 bit statistics

Compute statistics per ring using 64 bits, and provide
network device stats in 64 bits.

It should make this driver multiqueue operations faster (no more cache
line ping pongs on netdev->stats structure)

Use u64_stats_sync infrastructure so that its safe on 32bit arches as
well.

Based on a prior patch from Stephen Hemminger

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c