Ethernet Bridge development
 help / color / mirror / Atom feed
* [Bridge] VLAN headers disappearing
@ 2007-01-30  0:05 Leigh Sharpe
  2007-01-30 21:31 ` Benny Amorsen
  0 siblings, 1 reply; 8+ messages in thread
From: Leigh Sharpe @ 2007-01-30  0:05 UTC (permalink / raw)
  To: bridge

Hi all, 
 I'm having trouble bridging VLANs.
By doing the following:

vconfig add eth1 10
vconfig add eth2 10
brctl addbr br10
brctl addif br10 eth1.10
brctl addif br10 eth2.10
ifconfig eth1.10 up
ifconfig eth2.10 up
ifconfig br10 up

I create a bridge which bridges packets tagged with VLAN ID 10.
Doing 

ebtables -A FORWARD --log -j ACCEPT

Results in lots of log entries in /var/log/messages, as one would expect.
However, 

ebtables -F
ebtables -A FORWARD -p 8021q --log -j ACCEPT

Results in absolutely nothing in /var/log/messages, which would indicate that at some point, the VLAN headers are disappearing from my bridged packets.

Having had somebody else have a look at this to confirm that I had it right, I got this response from them:

>  eth1 -> eth1.10 -> br0 -> eth2.10 -> eth2
>
>This works fine using *untagged* vlan packets.
>
>Using that layout with *tagged* vlan packets, however, reveals what
>seems to be a bug in the Linux bridge code in combination with the vlan
>code.
>
>I was able, in that configuration, to see tagged packets come in on eth1
>and eth1.10, and to see them matched by the ebtables rules on eth1.10.
>
>The *outbound* packets, on eth2, were sent as untagged Ethernet frames;
>something in the bridge or vlan process had stripped the vlan header
>entirely.
>
>I was able to reproduce this issue with a stock Linux 2.6.17 kernel,
>without any of my code involved, so I believe it to be a bug in the
>underlying kernel networking code.
>

So, is this a bug? Or have I got something horribly wrong?
 
Regards,
             Leigh
 
Leigh Sharpe
Network Systems Engineer
Pacific Wireless


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bridge] VLAN headers disappearing
  2007-01-30  0:05 [Bridge] VLAN headers disappearing Leigh Sharpe
@ 2007-01-30 21:31 ` Benny Amorsen
  2007-01-30 21:51   ` Leigh Sharpe
  0 siblings, 1 reply; 8+ messages in thread
From: Benny Amorsen @ 2007-01-30 21:31 UTC (permalink / raw)
  To: bridge

>>>>> "LS" == Leigh Sharpe <lsharpe@pacificwireless.com.au> writes:

LS> Results in lots of log entries in /var/log/messages, as one would
LS> expect. However,

LS> ebtables -F ebtables -A FORWARD -p 8021q --log -j ACCEPT

LS> Results in absolutely nothing in /var/log/messages, which would
LS> indicate that at some point, the VLAN headers are disappearing
LS> from my bridged packets.

Cards with hardware accelerated VLAN's eat the 802.1q headers. It is
very annoying. You can recompile the driver with VLAN acceleration
turned off in most cases, but that is hardly a nice solution.


/Benny



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bridge] VLAN headers disappearing
  2007-01-30 21:31 ` Benny Amorsen
@ 2007-01-30 21:51   ` Leigh Sharpe
  2007-01-30 22:01     ` Benny Amorsen
  0 siblings, 1 reply; 8+ messages in thread
From: Leigh Sharpe @ 2007-01-30 21:51 UTC (permalink / raw)
  To: benny+usenet, bridge

As far as I'm aware, theres no vlan acceleration in the system anywhere. 
Tested on several different machines, all with the same result.

Regards,
             Leigh
 
Leigh Sharpe
Network Systems Engineer
Pacific Wireless
Ph +61 3 9584 8966
Mob 0408 009 502
email lsharpe@pacificwireless.com.au
web www.pacificwireless.com.au

-----Original Message-----
From: Benny Amorsen [mailto:benny+usenet@amorsen.dk] 
Sent: Wednesday, January 31, 2007 8:32 AM
To: bridge@osdl.org
Subject: Re: [Bridge] VLAN headers disappearing

>>>>> "LS" == Leigh Sharpe <lsharpe@pacificwireless.com.au> writes:

LS> Results in lots of log entries in /var/log/messages, as one would
LS> expect. However,

LS> ebtables -F ebtables -A FORWARD -p 8021q --log -j ACCEPT

LS> Results in absolutely nothing in /var/log/messages, which would
LS> indicate that at some point, the VLAN headers are disappearing
LS> from my bridged packets.

Cards with hardware accelerated VLAN's eat the 802.1q headers. It is
very annoying. You can recompile the driver with VLAN acceleration
turned off in most cases, but that is hardly a nice solution.


/Benny


_______________________________________________
Bridge mailing list
Bridge@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/bridge



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bridge] VLAN headers disappearing
  2007-01-30 21:51   ` Leigh Sharpe
@ 2007-01-30 22:01     ` Benny Amorsen
  2007-01-31  4:54       ` Leigh Sharpe
  0 siblings, 1 reply; 8+ messages in thread
From: Benny Amorsen @ 2007-01-30 22:01 UTC (permalink / raw)
  To: bridge

>>>>> "LS" == Leigh Sharpe <lsharpe@pacificwireless.com.au> writes:

LS> As far as I'm aware, theres no vlan acceleration in the system
LS> anywhere. Tested on several different machines, all with the same
LS> result.

If your system is using an even remotely modern card, it will have
VLAN acceleration.


/Benny






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bridge] VLAN headers disappearing
  2007-01-30 22:01     ` Benny Amorsen
@ 2007-01-31  4:54       ` Leigh Sharpe
  2007-01-31  8:07         ` Benny Amorsen
  2007-01-31 18:43         ` Andy Gospodarek
  0 siblings, 2 replies; 8+ messages in thread
From: Leigh Sharpe @ 2007-01-31  4:54 UTC (permalink / raw)
  To: benny+usenet, bridge

So, 
Any idea how to turn it off? Using an e1000 driver. 


Regards,
             Leigh
 
Leigh Sharpe
Network Systems Engineer
Pacific Wireless
Ph +61 3 9584 8966
Mob 0408 009 502
email lsharpe@pacificwireless.com.au
web www.pacificwireless.com.au

-----Original Message-----
From: Benny Amorsen [mailto:benny+usenet@amorsen.dk] 
Sent: Wednesday, January 31, 2007 9:02 AM
To: bridge@osdl.org
Subject: Re: [Bridge] VLAN headers disappearing

>>>>> "LS" == Leigh Sharpe <lsharpe@pacificwireless.com.au> writes:

LS> As far as I'm aware, theres no vlan acceleration in the system
LS> anywhere. Tested on several different machines, all with the same
LS> result.

If your system is using an even remotely modern card, it will have
VLAN acceleration.


/Benny





_______________________________________________
Bridge mailing list
Bridge@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/bridge



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bridge] VLAN headers disappearing
  2007-01-31  4:54       ` Leigh Sharpe
@ 2007-01-31  8:07         ` Benny Amorsen
  2007-01-31 18:43         ` Andy Gospodarek
  1 sibling, 0 replies; 8+ messages in thread
From: Benny Amorsen @ 2007-01-31  8:07 UTC (permalink / raw)
  To: bridge

>>>>> "LS" == Leigh Sharpe <lsharpe@pacificwireless.com.au> writes:

LS> So, Any idea how to turn it off? Using an e1000 driver.

You really should stop top-posting, it is quite annoying. Anyway, as I
said in the first reply, you can probably recompile the driver with
VLAN acceleration turned off.


/Benny



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bridge] VLAN headers disappearing
  2007-01-31  4:54       ` Leigh Sharpe
  2007-01-31  8:07         ` Benny Amorsen
@ 2007-01-31 18:43         ` Andy Gospodarek
  2007-01-31 20:42           ` Andy Gospodarek
  1 sibling, 1 reply; 8+ messages in thread
From: Andy Gospodarek @ 2007-01-31 18:43 UTC (permalink / raw)
  To: Leigh Sharpe; +Cc: bridge, benny+usenet

On 1/30/07, Leigh Sharpe <lsharpe@pacificwireless.com.au> wrote:
> So,
> Any idea how to turn it off? Using an e1000 driver.
>
>
> Regards,
>              Leigh
>


I think there were some changes 'recently' that might deal with this
better.  Have you tried any kernels later than 2.6.17?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bridge] VLAN headers disappearing
  2007-01-31 18:43         ` Andy Gospodarek
@ 2007-01-31 20:42           ` Andy Gospodarek
  0 siblings, 0 replies; 8+ messages in thread
From: Andy Gospodarek @ 2007-01-31 20:42 UTC (permalink / raw)
  To: Leigh Sharpe; +Cc: bridge, benny+usenet

On 1/31/07, Andy Gospodarek <andy@greyhouse.net> wrote:
> On 1/30/07, Leigh Sharpe <lsharpe@pacificwireless.com.au> wrote:
> > So,
> > Any idea how to turn it off? Using an e1000 driver.
> >
> >
> > Regards,
> >              Leigh
> >
>
>
> I think there were some changes 'recently' that might deal with this
> better.  Have you tried any kernels later than 2.6.17?
>

Disregard this comment.

There was a patch posted to this list a while back but it never made
it in for reasons that are obvious in the thread:

http://lists.osdl.org/pipermail/bridge/2006-September/001450.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-01-31 20:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-30  0:05 [Bridge] VLAN headers disappearing Leigh Sharpe
2007-01-30 21:31 ` Benny Amorsen
2007-01-30 21:51   ` Leigh Sharpe
2007-01-30 22:01     ` Benny Amorsen
2007-01-31  4:54       ` Leigh Sharpe
2007-01-31  8:07         ` Benny Amorsen
2007-01-31 18:43         ` Andy Gospodarek
2007-01-31 20:42           ` Andy Gospodarek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox