vxge: Implement 64bit stats
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 18 Aug 2010 03:42:54 +0000 (03:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2010 07:16:51 +0000 (00:16 -0700)
commitdd57f970f91e2371040db709b3731ac34e43ccdb
treee51cbe0b96df2e5b7ce5881574c7c62112a75479
parentb92840900fb575004cac694e56fd0a43f54dc344
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>
drivers/net/vxge/vxge-main.c
drivers/net/vxge/vxge-main.h