From: Eric Dumazet <eric.dumazet@gmail.com>
To: Gertjan Hofman <gertjan_hofman@yahoo.com>
Cc: netdev@vger.kernel.org
Subject: Re: VLAN and ARP failure on tg3 drivers
Date: Fri, 23 Oct 2009 07:23:07 +0200 [thread overview]
Message-ID: <4AE13DBB.9010101@gmail.com> (raw)
In-Reply-To: <93821.71108.qm@web32607.mail.mud.yahoo.com>
Gertjan Hofman a écrit :
> Dear Kernel developers,
>
> A couple of weeks ago we tried to migrate from a 2.6.24 kernel to a 2.6.29 kernel and noticed our VLAN application no longer works. The problem is easy to replicate:
>
> 1. connect 2 PC's with a cross-over cable
> 2. set up a fixed IP address to both PC's (say 192.168.0.[1,2])
> 3. create a vlan: vconfig add eth0 0.
> 4. set IP addresses on the VLAN devices (say 192.168.1.[1,2])
> 5. try ping one machine from the other.
>
> I tried to dig into the problem by using un-patched kernel.org kernels with Ubuntu .config files. Kernels up to 2.6.26 work fine, kernels after and including 2.6.27 fail. The problem is that ARP messages are being dropped. If the ARP table is updated by hand on each machine, the communication across the VLAN works fine.
>
> At first I thought the kernel VLAN code was the problem (we had an earlier issue with a regression in 2.6.24) but it looks like the problem is actually with the tg3 driver. Our system uses Broadcom ethernet chips. I tried the same experiments with combination of boards that have Broadcom and none-Broadcom and the only time I see it fail is with the tg3 driver loaded.
>
> Snooping with WireShark shows that a ARP request from the non-Broadcom machine is seen and even answered, but never appears back on the network. If the Broadcom machine orginates the ARP message, it never arrives at the destination. I tried lowering the size of the MTU to 1492 as well as giving each VLAN device a different MAC. No deal.
>
> I tried to look at tg3 patch changes from 2.6.26 to 2.6.27 but I am not familiar enough with the Git system to extract the appropiate changes. I am a bit surprised that I am not seeing any references to this on the web, the combination of >2.6.27 kernels, Broadcom and VLAN cant be that uncommon.
>
> I would be happy to provide more information and to try tests if any one can suggest them.
>
> Sincerely,
>
> Gertjan
Hello Gertjan
I'll take a look at this problem and try to reproduce it, but I use VLAN + tg3 +
bonding without noticing a regression yet.
Only difference is I use "ip link add link" command to setup VLANS, not vconfig,
a bit deprecated.
Could you try something like this setup
ip link set eth1 up
ip link add link eth1 vlan.103 type vlan id 103
ip addr add 192.168.20.110/24 dev vlan.103
ip link set vlan.103 up
next prev parent reply other threads:[~2009-10-23 5:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 4:52 VLAN and ARP failure on tg3 drivers Gertjan Hofman
2009-10-23 5:23 ` Eric Dumazet [this message]
2009-10-23 9:12 ` Benny Amorsen
2009-10-23 21:35 ` Matt Carlson
-- strict thread matches above, loose matches on Subject: below --
2009-10-26 4:30 Gertjan Hofman
2009-10-26 8:20 ` Benny Amorsen
2009-10-26 8:54 ` Eric Dumazet
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=4AE13DBB.9010101@gmail.com \
--to=eric.dumazet@gmail.com \
--cc=gertjan_hofman@yahoo.com \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).