Thread (7 messages) 7 messages, 3 authors, 2003-10-30

Re: [RFT] merged 8139too NAPI

From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Date: 2003-10-21 13:35:11

Stephen Hemminger [off-list ref] writes:
quoted hunk ↗ jump to hunk
+	spin_lock_bh(&tp->rx_lock);
 	/* disable Tx ASAP, if not already */
 	tmp8 = RTL_R8 (ChipCmd);
 	if (tmp8 & CmdTxEnb)
@@ -1679,6 +1682,7 @@
 
 	/* ...and finally, reset everything */
 	rtl8139_hw_start (dev);
+	spin_unlock_bh(&tp->rx_lock);
->tx_timeout is on timer softirq context. So softirq was disabled already.
Or Is this for future changes?
+	/* Check uncommon events with one test. */
+	if (unlikely(status & (PCIErr | PCSTimeout | RxUnderrun | RxOverflow)))
+		rtl8139_weird_interrupt (dev, tp, ioaddr,
+					 status, link_changed);
I couldn't find this on previous email, rtl8139_weird_interrupt was changing. 

	if (unlikely(status & (PCIErr|PCSTimeout|RxUnderrun|RxErr|RxFIFOOver)))
		rtl8139_weird_interrupt(dev, tp, ioaddr, status, link_changed);

It should check the above status.
-- 
OGAWA Hirofumi [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help