]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Protect statistics ramrod and sequence number
authorVladislav Zolotarov <vladz@broadcom.com>
Wed, 21 Jul 2010 05:59:14 +0000 (05:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jul 2010 18:11:55 +0000 (11:11 -0700)
commite595a0f2e1008de7c4ddad60401c616b8513c7c1
tree87d7e5c799e3dc2426c9f4245ebf0c0e17df7007
parent4b9bd1ce4ff180620c732880f753871a6ee18033
bnx2x: Protect statistics ramrod and sequence number

Bug fix: Protect statistics ramrod sending code and a statistics counter update
with a spinlock. Otherwise there was a race condition that would allow sending
a statistics ramrods with the same sequence number or with sequence numbers not
in a natural order, which would cause a FW assert.

Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
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>
drivers/net/bnx2x_main.c