vxge: fix 64 bit access on 32 bit platforms
authorstephen hemminger <shemminger@vyatta.com>
Mon, 20 Jun 2011 10:35:07 +0000 (10:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2011 22:55:52 +0000 (15:55 -0700)
commit62ea05577ed3ea4f542f9bc17cb716787316e2ea
treea94688d35de2f98fd07e027c8ef15d67906f1c42
parent3b0c9cbb6e5fe25a4162be68ed1459b6f7432da9
vxge: fix 64 bit access on 32 bit platforms

Need to add stat_sync wrapper around 64 bit statistic values.
Fix wraparound bug in lockup detector where it is unsafely comparing
64 bit value that is not atomic. Since only care about detecting activity
just looking at current low order bits will work.

Remove unused entries in old vxge_sw_stats structure.
Change the error counters to unsigned long since they won't grow so large
as to have to be 64 bits.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxge/vxge-main.c
drivers/net/vxge/vxge-main.h