linux-mips
[Top] [All Lists]

[PATCH] au1000_tx_timeout and promiscuous mode

To: linux-mips@linux-mips.org
Subject: [PATCH] au1000_tx_timeout and promiscuous mode
From: "elmar gerdes" <elmar.gerdes@engel-kg.com>
Date: Fri, 17 Mar 2006 02:02:27 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.2.1i
hi folks,

I have seen several tx_timeouts on my two Au15xx-based boards
 - myCable XXS1500, Rev.B, Au1500-based, and
 - Kurz NVB, Au1550-based, not in kernel-tree.
 
I am running these boards in bridging mode and under kernel 2.6.16-rc6.
the timeout also appears under earlier versions, and it appears when I
cause high network load (rcp big files through the bridge).

the tx_timeout function does the re-init, but it does not re-establish
the promiscuous mode (which is set when bridging).

the patch I attached does this with a call to set_rx_mode(), and it also
introduces calls to netdev_priv(), which should be used according to
Rubini et.al. "Linux Device Drivers", 3rd edition, o-reilly.

on the 2.6.1x systems, the timeout appears after some 5 seconds, under
2.4.31 I thought it did not appear, but after half an hour of full load
I've seen it there, too.  now this makes me wonder why it takes only a
few seconds to have a tx timeout under 2.6 and half an hour under 2.4.
any ideas?

would anybody apply the patch to the official sources?  should some
timeout constant be changed to reduce the number of timeouts under 2.6?

regard,
        elmar

Attachment: au1000_eth.c.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>