Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 449
b: refs/heads/master
c: 52f6d69
h: refs/heads/master
i:
  447: bbf146e
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Apr 25, 2005
1 parent 6b698c2 commit 550026c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 483ba50bd41d14d5325d6cd9935de86a982d08a2
refs/heads/master: 52f6d697dc0f2c039e8413e780b0f45ddf8161fc
6 changes: 6 additions & 0 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,12 @@ static int tg3_rx(struct tg3 *tp, int budget)
next_pkt_nopost:
sw_idx++;
sw_idx %= TG3_RX_RCB_RING_SIZE(tp);

/* Refresh hw_idx to see if there is new work */
if (sw_idx == hw_idx) {
hw_idx = tp->hw_status->idx[0].rx_producer;
rmb();
}
}

/* ACK the status ring. */
Expand Down

0 comments on commit 550026c

Please sign in to comment.