diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2010-10-05 23:27:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-06 17:10:37 -0400 |
commit | 8fe23fbd94af5a4c117fd0eb2f1c3f492f79efe8 (patch) | |
tree | 211c6742d3719304eda84ecea6e9441979146298 /drivers/net/bnx2x/bnx2x.h | |
parent | fb3bff178e722fe88b5ab02319c9636da0980e25 (diff) |
bnx2x: change type of spq_left to atomic
The field is now accessed from different contexts.
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>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x.h')
-rw-r--r-- | drivers/net/bnx2x/bnx2x.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h index d7b24f9e7939..09fb7ff811d8 100644 --- a/drivers/net/bnx2x/bnx2x.h +++ b/drivers/net/bnx2x/bnx2x.h | |||
@@ -860,7 +860,7 @@ struct bnx2x { | |||
860 | struct eth_spe *spq_prod_bd; | 860 | struct eth_spe *spq_prod_bd; |
861 | struct eth_spe *spq_last_bd; | 861 | struct eth_spe *spq_last_bd; |
862 | __le16 *dsb_sp_prod; | 862 | __le16 *dsb_sp_prod; |
863 | u16 spq_left; /* serialize spq */ | 863 | atomic_t spq_left; /* serialize spq */ |
864 | /* used to synchronize spq accesses */ | 864 | /* used to synchronize spq accesses */ |
865 | spinlock_t spq_lock; | 865 | spinlock_t spq_lock; |
866 | 866 | ||