| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 2.6.12-rc2 2/3] tg3: Refresh hw index in tg3_rx() |
| From: | "Michael Chan" <mchan@xxxxxxxxxxxx> |
| Date: | Mon, 25 Apr 2005 14:09:11 -0700 |
| Cc: | "Arthur Kepner" <akepner@xxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <1114463061.4917.34.camel@rh4> |
| References: | <1114463061.4917.34.camel@rh4> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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@xxxxxxxxxxxx>
diff -Nru c/drivers/net/tg3.c d/drivers/net/tg3.c
--- c/drivers/net/tg3.c 2005-04-25 12:32:44.000000000 -0700
+++ d/drivers/net/tg3.c 2005-04-25 12:39:46.000000000 -0700
@@ -2802,6 +2802,12 @@
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. */
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2.6.11.7] sch_htb: Drop packet when direct queue is full, Asim Shankar |
|---|---|
| Next by Date: | Re: IPv6 has trouble assigning an interface, David Stevens |
| Previous by Thread: | [PATCH 2.6.11.7] sch_htb: Drop packet when direct queue is full, Asim Shankar |
| Next by Thread: | Re: [PATCH 2.6.12-rc2 3/3] tg3: Fix tg3_restart_ints(), Michael Chan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |