projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
483ba50
)
[TG3]: Refresh hw index in tg3_rx()
author
Michael Chan
<mchan@broadcom.com>
Mon, 25 Apr 2005 22:14:32 +0000
(15:14 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 25 Apr 2005 22:14:32 +0000
(15:14 -0700)
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>
drivers/net/tg3.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tg3.c
b/drivers/net/tg3.c
index e53c1dc58d08ccc0c5227a98cebb4d24920c2114..92b0e4975135da3bc7571646152c26a381deef2a 100644
(file)
--- a/
drivers/net/tg3.c
+++ b/
drivers/net/tg3.c
@@
-2802,6
+2802,12
@@
next_pkt:
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. */