]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: prevent race in statistics flow
authorDmitry Kravkov <dmitry@broadcom.com>
Sun, 13 Nov 2011 04:34:30 +0000 (04:34 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 12:31:07 +0000 (20:31 +0800)
commitaab944dba6ebdc772002d8d7eeb078f42aadd6e9
tree51c3175db25378f5ea552676332e0227907b1b37
parente058414b0c9775eb05a2a0bd292ffb6d4c3a8af7
bnx2x: prevent race in statistics flow

The race may cause access of registers while MAC hw block is
in reset state. As a result syslog will show error messages.
We can prevent this by using state from local variable.

(cherry picked from commit 4a025f49d3f2f2f39b474af360c81a5587b41657)
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_stats.c