commit | 4a025f49d3f2f2f39b474af360c81a5587b41657 | [log] [tgz] |
---|---|---|
author | Dmitry Kravkov <dmitry@broadcom.com> | Sun Nov 13 04:34:30 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Nov 13 16:03:56 2011 -0500 |
tree | 5f9ae3a4eecfd197839dc9ba5ab2c67710a6945f | |
parent | 8304859adc213df9f69a86e06164683f76cd5d49 [diff] |
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. 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>