Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58401
b: refs/heads/master
c: 275391a
h: refs/heads/master
i:
  58399: c798f33
v: v3
  • Loading branch information
Francois Romieu authored and Jeff Garzik committed Jul 9, 2007
1 parent 818a1a1 commit 843a37b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 07d3f51febdc139c63e95671126fd2791113902e
refs/heads/master: 275391a482c436282dde57beeffc5d61b229fdd2
7 changes: 6 additions & 1 deletion trunk/drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ enum rtl_register_content {
CmdTxEnb = 0x04,
RxBufEmpty = 0x01,

/* TXPoll register p.5 */
HPQ = 0x80, /* Poll cmd on the high prio queue */
NPQ = 0x40, /* Poll cmd on the low prio queue */
FSWInt = 0x01, /* Forced software interrupt */

/* Cfg9346Bits */
Cfg9346_Lock = 0x00,
Cfg9346_Unlock = 0xc0,
Expand Down Expand Up @@ -2405,7 +2410,7 @@ static int rtl8169_start_xmit(struct sk_buff *skb, struct net_device *dev)

smp_wmb();

RTL_W8(TxPoll, 0x40); /* set polling bit */
RTL_W8(TxPoll, NPQ); /* set polling bit */

if (TX_BUFFS_AVAIL(tp) < MAX_SKB_FRAGS) {
netif_stop_queue(dev);
Expand Down

0 comments on commit 843a37b

Please sign in to comment.