be2net: fix erx->rx_drops_no_frags wrap around
authorSathya Perla <sathya.perla@emulex.com>
Mon, 22 Aug 2011 19:41:53 +0000 (19:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2011 23:19:29 +0000 (16:19 -0700)
The rx_drops_no_frags HW counter for RSS rings is 16bits in HW and can
wraparound often. Maintain a 32-bit accumulator in the driver to prevent
frequent wraparound.

Also, incorporated Eric's feedback to use ACCESS_ONCE() for the accumulator
write.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found