Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130205
b: refs/heads/master
c: e8b5fc5
h: refs/heads/master
i:
  130203: 90dc6e4
v: v3
  • Loading branch information
Vladislav Zolotarov authored and David S. Miller committed Jan 26, 2009
1 parent aa47fd2 commit 94038e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32ec803348b4d5f1353e1d7feae30880b8b3e342
refs/heads/master: e8b5fc514d1c7637cb4b8f77e7d8ac33ef66130c
17 changes: 12 additions & 5 deletions trunk/drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
#include "bnx2x.h"
#include "bnx2x_init.h"

#define DRV_MODULE_VERSION "1.45.25"
#define DRV_MODULE_RELDATE "2009/01/22"
#define DRV_MODULE_VERSION "1.45.26"
#define DRV_MODULE_RELDATE "2009/01/26"
#define BNX2X_BC_VER 0x040200

/* Time in jiffies before concluding the transmitter is hung */
Expand Down Expand Up @@ -740,8 +740,15 @@ static inline int bnx2x_has_tx_work(struct bnx2x_fastpath *fp)
/* Tell compiler that status block fields can change */
barrier();
tx_cons_sb = le16_to_cpu(*fp->tx_cons_sb);
return ((fp->tx_pkt_prod != tx_cons_sb) ||
(fp->tx_pkt_prod != fp->tx_pkt_cons));
return (fp->tx_pkt_cons != tx_cons_sb);
}

static inline int bnx2x_has_tx_work_unload(struct bnx2x_fastpath *fp)
{
/* Tell compiler that consumer and producer can change */
barrier();
return (fp->tx_pkt_prod != fp->tx_pkt_cons);

}

/* free skb in the packet ring at pos idx
Expand Down Expand Up @@ -6729,7 +6736,7 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode)

cnt = 1000;
smp_rmb();
while (bnx2x_has_tx_work(fp)) {
while (bnx2x_has_tx_work_unload(fp)) {

bnx2x_tx_int(fp, 1000);
if (!cnt) {
Expand Down

0 comments on commit 94038e0

Please sign in to comment.