diff options
author | Michael Chan <mchan@broadcom.com> | 2005-04-25 18:14:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-04-25 18:14:32 -0400 |
commit | 52f6d697dc0f2c039e8413e780b0f45ddf8161fc (patch) | |
tree | 41e9c7d722b4cd83ed2f6d5c0ae13581e309ec75 | |
parent | 483ba50bd41d14d5325d6cd9935de86a982d08a2 (diff) |
[TG3]: Refresh hw index in tg3_rx()
This patch refreshes the hw rx producer in tg3_rx() so that additional
work posted by the hardware can be processed.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/tg3.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index e53c1dc58d08..92b0e4975135 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -2802,6 +2802,12 @@ next_pkt: | |||
2802 | next_pkt_nopost: | 2802 | next_pkt_nopost: |
2803 | sw_idx++; | 2803 | sw_idx++; |
2804 | sw_idx %= TG3_RX_RCB_RING_SIZE(tp); | 2804 | sw_idx %= TG3_RX_RCB_RING_SIZE(tp); |
2805 | |||
2806 | /* Refresh hw_idx to see if there is new work */ | ||
2807 | if (sw_idx == hw_idx) { | ||
2808 | hw_idx = tp->hw_status->idx[0].rx_producer; | ||
2809 | rmb(); | ||
2810 | } | ||
2805 | } | 2811 | } |
2806 | 2812 | ||
2807 | /* ACK the status ring. */ | 2813 | /* ACK the status ring. */ |