diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-10-15 09:18:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-15 09:18:27 +0200 |
commit | c4ff7cbf88be8bb0e3f942089f0ef0a40d98d654 (patch) | |
tree | f0117805606dbf9acb4bc9488975a380a63751cc /drivers/net/bnx2x.h | |
parent | bnx2x: Changing the Disabled state to a flag (diff) | |
download | linux-c4ff7cbf88be8bb0e3f942089f0ef0a40d98d654.tar.xz linux-c4ff7cbf88be8bb0e3f942089f0ef0a40d98d654.zip |
bnx2x: Adding FW mailbox mutex
DCC commands are not protected with the RTNL lock, so a mutex should be added
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r-- | drivers/net/bnx2x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h index 185a6bab2227..c3b32f71e024 100644 --- a/drivers/net/bnx2x.h +++ b/drivers/net/bnx2x.h @@ -1023,6 +1023,9 @@ struct bnx2x { /* used to synchronize dmae accesses */ struct mutex dmae_mutex; + /* used to protect the FW mail box */ + struct mutex fw_mb_mutex; + /* used to synchronize stats collecting */ int stats_state; /* used by dmae command loader */ |