Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135015
b: refs/heads/master
c: 7961f79
h: refs/heads/master
i:
  135013: 9799f91
  135011: 12a8235
  135007: 03eba02
v: v3
  • Loading branch information
Eilon Greenstein authored and David S. Miller committed Mar 3, 2009
1 parent f4ce1e9 commit 7646728
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 161197853de91eb1eebdde05f13223c377cf3be0
refs/heads/master: 7961f79123604a395dc467c605a94bbaed74df83
11 changes: 4 additions & 7 deletions trunk/drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ static inline u16 bnx2x_tx_avail(struct bnx2x_fastpath *fp)
return (s16)(fp->bp->tx_ring_size) - used;
}

static void bnx2x_tx_int(struct bnx2x_fastpath *fp, int work)
static void bnx2x_tx_int(struct bnx2x_fastpath *fp)
{
struct bnx2x *bp = fp->bp;
struct netdev_queue *txq;
Expand Down Expand Up @@ -908,9 +908,6 @@ static void bnx2x_tx_int(struct bnx2x_fastpath *fp, int work)
bd_cons = bnx2x_free_tx_pkt(bp, fp, pkt_cons);
sw_cons++;
done++;

if (done == work)
break;
}

fp->tx_pkt_cons = sw_cons;
Expand Down Expand Up @@ -4177,7 +4174,7 @@ static void bnx2x_timer(unsigned long data)
struct bnx2x_fastpath *fp = &bp->fp[0];
int rc;

bnx2x_tx_int(fp, 1000);
bnx2x_tx_int(fp);
rc = bnx2x_rx_int(fp, 1000);
}

Expand Down Expand Up @@ -7217,7 +7214,7 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode)
cnt = 1000;
while (bnx2x_has_tx_work_unload(fp)) {

bnx2x_tx_int(fp, 1000);
bnx2x_tx_int(fp);
if (!cnt) {
BNX2X_ERR("timeout waiting for queue[%d]\n",
i);
Expand Down Expand Up @@ -10069,7 +10066,7 @@ static int bnx2x_poll(struct napi_struct *napi, int budget)
bnx2x_update_fpsb_idx(fp);

if (bnx2x_has_tx_work(fp))
bnx2x_tx_int(fp, budget);
bnx2x_tx_int(fp);

if (bnx2x_has_rx_work(fp))
work_done = bnx2x_rx_int(fp, budget);
Expand Down

0 comments on commit 7646728

Please sign in to comment.