bnx2x: protect different statistics flows
authorDmitry Kravkov <dmitry@broadcom.com>
Mon, 12 Aug 2013 23:24:59 +0000 (02:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Aug 2013 23:04:28 +0000 (16:04 -0700)
commit507393eb2909ddf39edf3f8f4cd0fd914b720006
treeb6698cefef1be7ac49d3c1db4ec5a6dd56a90a6b
parent205057aeb3c488fbd4a9c3a0542e05dcf4fda149
bnx2x: protect different statistics flows

Add locking to protect different statistics flows from
running simultaneously.
This in order to serialize statistics requests sent to FW,
otherwise two outstanding queries may cause FW assert.

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c