]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: provide 64 bit statistics
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 22 Jun 2011 05:01:35 +0000 (05:01 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 27 Aug 2011 06:50:09 +0000 (23:50 -0700)
commit5f84dced1b7d928c16554cc7e49e45d1b2cd52ed
tree90e69cb83d51aae53fb0293ae888ec7c4ef5b31a
parent840f1c72c23498a8c6cbac46a295cc6953d12b54
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