bnx2x: use smp_mb() to keep ordering of read write operations
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 9 Mar 2010 06:55:00 +0000 (06:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Mar 2010 22:47:00 +0000 (15:47 -0700)
commit2d99cf16f42b1979a2c498bb6d09498dbd689978
treea67758700d34a0559f69783a54041a4e94405f03
parentd4a2ac3e802d9f598453a7854d0fdf67371ac2dd
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>
drivers/net/bnx2x_main.c