diff options
author | Sathya Perla <sathya.perla@emulex.com> | 2011-08-22 23:41:53 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-25 03:19:29 +0400 |
commit | 09c1c68f2239dcd99b76be2c44e84811fba273db (patch) | |
tree | bbbede1f08fb5663a39528deabae91a20cef8969 /net/unix/af_unix.c | |
parent | db3ea7819d035ff01c8260fce364511adfae0eaa (diff) | |
download | linux-09c1c68f2239dcd99b76be2c44e84811fba273db.tar.xz |
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions