aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-02-12 03:37:25 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-16 02:31:46 -0500
commit3e5b510eb8c9ea5f762e0a0a9ce59254d6671dce (patch)
tree5fde7ff520a11cfcecafae3302ba4f92a230bb2e /drivers/net
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')
-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 6bd92199db21..2e95799a0db2 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)
7173 struct bnx2x_fastpath *fp = &bp->fp[i]; 7173 struct bnx2x_fastpath *fp = &bp->fp[i];
7174 7174
7175 cnt = 1000; 7175 cnt = 1000;
7176 smp_rmb(); 7176 smp_mb();
7177 while (bnx2x_has_tx_work_unload(fp)) { 7177 while (bnx2x_has_tx_work_unload(fp)) {
7178 7178
7179 bnx2x_tx_int(fp, 1000); 7179 bnx2x_tx_int(fp, 1000);
@@ -7189,7 +7189,7 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode)
7189 } 7189 }
7190 cnt--; 7190 cnt--;
7191 msleep(1); 7191 msleep(1);
7192 smp_rmb(); 7192 smp_mb();
7193 } 7193 }
7194 } 7194 }
7195 /* Give HW time to discard old tx messages */ 7195 /* Give HW time to discard old tx messages */