diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-08-17 23:42:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-19 03:16:51 -0400 |
commit | dd57f970f91e2371040db709b3731ac34e43ccdb (patch) | |
tree | e51cbe0b96df2e5b7ce5881574c7c62112a75479 /drivers/net/vxge/vxge-main.h | |
parent | b92840900fb575004cac694e56fd0a43f54dc344 (diff) |
vxge: Implement 64bit stats
vxge_get_stats() is racy, since it clears a block of memory (net_stats)
possibly still used by other cpus.
We can update this driver to full 64bit stats, since ndo_get_stats64()
provides a private block to store results, and driver maintains 64bit
counters already.
We also remove net_stats field from struct vxge_sw_stats
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Jon Mason <jon.mason@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxge/vxge-main.h')
-rw-r--r-- | drivers/net/vxge/vxge-main.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/vxge/vxge-main.h b/drivers/net/vxge/vxge-main.h index 2e3b064b8e4b..d4be07eaacd7 100644 --- a/drivers/net/vxge/vxge-main.h +++ b/drivers/net/vxge/vxge-main.h | |||
@@ -172,7 +172,6 @@ struct vxge_msix_entry { | |||
172 | 172 | ||
173 | struct vxge_sw_stats { | 173 | struct vxge_sw_stats { |
174 | /* Network Stats (interface stats) */ | 174 | /* Network Stats (interface stats) */ |
175 | struct net_device_stats net_stats; | ||
176 | 175 | ||
177 | /* Tx */ | 176 | /* Tx */ |
178 | u64 tx_frms; | 177 | u64 tx_frms; |