summaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_main.c
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-02-12 08:37:25 +0000
committerDavid S. Miller <davem@davemloft.net>2009-02-15 23:31:46 -0800
commit3e5b510eb8c9ea5f762e0a0a9ce59254d6671dce (patch)
tree5fde7ff520a11cfcecafae3302ba4f92a230bb2e /drivers/net/bnx2x_main.c
parent8b3a0f0ba3c6c26330b49db178de3898a54f9f8a (diff)
bnx2x: smp_mb and not just smp_rmb
Signed-off-by: Eilon Greenstein <eilong@broadcom.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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 6bd92199db2..2e95799a0db 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -7173,7 +7173,7 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode)
struct bnx2x_fastpath *fp = &bp->fp[i];
cnt = 1000;
- smp_rmb();
+ smp_mb();
while (bnx2x_has_tx_work_unload(fp)) {
bnx2x_tx_int(fp, 1000);
@@ -7189,7 +7189,7 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode)
}
cnt--;
msleep(1);
- smp_rmb();
+ smp_mb();
}
}
/* Give HW time to discard old tx messages */