]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 23:36:08 +0000 (15:36 -0800)
commit5253584165ea63e438cdaad02cc2966c51ff7369
tree6a1fca976ade48c0c9937d287775a191fa78af14
parent6353df37ec2638a91557c71b1dbf129085ca3ac3
be2net: fix erx->rx_drops_no_frags wrap around

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>
drivers/net/benet/be_main.c