lkml.org 
[lkml]   [2001]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Re: [MINOR PROBLEM] RTL8139C: transmit timed out
Hi!

> Jul 12 20:36:43 wiibroe kernel: NETDEV WATCHDOG: eth0: transmit timed out

I had the same problem with linux-2.4.6-ac2, and I found a bug
in the function rtl8139_start_xmit() of 8139too.c.

Attached patch will fix this bug.

Enjoy!
--
Masaru Kawashima <masaruk@gol.com>
--- drivers/net/8139too.c.orig Wed Jul 4 14:34:27 2001
+++ drivers/net/8139too.c Sat Jul 14 02:34:50 2001
@@ -1732,7 +1732,6 @@
RTL_W32_F (TxAddr0 + (entry * 4), dma_addr);
RTL_W32_F (TxStatus0 + (entry * sizeof (u32)),
tp->tx_flag | (skb->len >= ETH_ZLEN ? skb->len : ETH_ZLEN));
- spin_unlock_irq(&tp->lock);

dev->trans_start = jiffies;

@@ -1740,6 +1739,7 @@
mb();
if ((tp->cur_tx - NUM_TX_DESC) == tp->dirty_tx)
netif_stop_queue (dev);
+ spin_unlock_irq(&tp->lock);

DPRINTK ("%s: Queued Tx packet at %p size %u to slot %d.\n",
dev->name, skb->data, skb->len, entry);
\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.086 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site