diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2013-08-13 02:24:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-13 16:04:28 -0700 |
commit | 507393eb2909ddf39edf3f8f4cd0fd914b720006 (patch) | |
tree | b6698cefef1be7ac49d3c1db4ec5a6dd56a90a6b /drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
parent | 205057aeb3c488fbd4a9c3a0542e05dcf4fda149 (diff) | |
download | lwn-507393eb2909ddf39edf3f8f4cd0fd914b720006.tar.gz lwn-507393eb2909ddf39edf3f8f4cd0fd914b720006.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h index d80e34b8285f..98be67f660f2 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h @@ -1830,6 +1830,8 @@ struct bnx2x { int fp_array_size; u32 dump_preset_idx; + bool stats_started; + struct semaphore stats_sema; }; /* Tx queues may be less or equal to Rx queues */ |