diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2010-03-09 01:55:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-15 18:47:00 -0400 |
commit | 2d99cf16f42b1979a2c498bb6d09498dbd689978 (patch) | |
tree | a67758700d34a0559f69783a54041a4e94405f03 /drivers/net/bnx2x_main.c | |
parent | d4a2ac3e802d9f598453a7854d0fdf67371ac2dd (diff) |
bnx2x: use smp_mb() to keep ordering of read write operations
Since we want to keep ordering of write to fp->bd_tx_cons and
netif_tx_queue_stopped(txq), what is read of txq->state, we have to use
general memory barrier.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index ed785a30e98b..9fc0f6a7a5e9 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -963,7 +963,7 @@ static int bnx2x_tx_int(struct bnx2x_fastpath *fp) | |||
963 | * start_xmit() will miss it and cause the queue to be stopped | 963 | * start_xmit() will miss it and cause the queue to be stopped |
964 | * forever. | 964 | * forever. |
965 | */ | 965 | */ |
966 | smp_wmb(); | 966 | smp_mb(); |
967 | 967 | ||
968 | /* TBD need a thresh? */ | 968 | /* TBD need a thresh? */ |
969 | if (unlikely(netif_tx_queue_stopped(txq))) { | 969 | if (unlikely(netif_tx_queue_stopped(txq))) { |