From: Sathya Perla Date: Mon, 22 Aug 2011 19:41:53 +0000 (+0000) Subject: be2net: fix erx->rx_drops_no_frags wrap around X-Git-Tag: v3.2-rc1~129^2~416 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09c1c68f2239dcd99b76be2c44e84811fba273db;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed