]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit86526a570a0a7fc79cc2a462efb1e83d3e2e5b7a
treea94688d35de2f98fd07e027c8ef15d67906f1c42
parent6718fc3b5c2eae08ebabb74c507c91593d7a57a9
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