From: Peter Buckingham <peter@pantasys.com>
To: jyri.poldre@artecdesign.ee
Cc: linux-kernel@vger.kernel.org
Subject: Re: Ethernet driver link state propagation to ip stack
Date: Fri, 14 Jan 2005 10:54:21 -0800 [thread overview]
Message-ID: <41E8155D.3020802@pantasys.com> (raw)
In-Reply-To: <JJEGJLLALGANNBPNAIMMOEGLDGAA.jyri.poldre@artecdesign.ee>
Hi Juri,
Jüri Põldre wrote:
> I am experiencing issues with connecting two network adapters to the same
> subnet, eg.
I recently had similar problems (specifically with the e1000 driver).
When one hang goes down a send to the other interface will hang. This
was when we were using the same socket to send on both interfaces, what
resulted is that the socket buffer would fill up and cause the send to
block. If you aren't using the same socket to send out on both
interfaces you should be fine. the rather large hack that i used to get
this to work on my system is below. basically it will not enqueue a
packet when the interface is down. this may well do nasty things to tcp...
peter
---
--- linux-2.6.8-24.3/net/core/dev.c
+++ linux-2.6.8-24.3/net/core/dev.c
@@ -1379,6 +1379,11 @@
#ifdef CONFIG_NET_CLS_ACT
skb->tc_verd = SET_TC_AT(skb->tc_verd,AT_EGRESS);
#endif
+ if (!netif_carrier_ok(dev)) {
+ rc = NET_XMIT_DROP;
+ goto out_kfree_skb;
+ }
+
if (q->enqueue) {
/* Grab device queue */
spin_lock(&dev->queue_lock);
next prev parent reply other threads:[~2005-01-14 18:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-14 16:42 Ethernet driver link state propagation to ip stack Jüri Põldre
2005-01-14 18:54 ` Peter Buckingham [this message]
2005-01-15 5:14 ` Paul Jakma
2005-01-14 19:44 ` Ben Greear
2005-01-15 12:10 ` Paul Jakma
2005-01-15 12:17 ` Amir Guindehi
2005-01-17 6:49 ` Stefan Seyfried
2005-01-17 10:03 ` Mark Watts
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41E8155D.3020802@pantasys.com \
--to=peter@pantasys.com \
--cc=jyri.poldre@artecdesign.ee \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox