Date: Fri, 1 Dec 2006 22:34:25 -0800 (PST) From: kasra kangavari In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1070106378-1165041265=:33495" Message-ID: <361445.33495.qm@web54209.mail.yahoo.com> Subject: Re: [Bridge] Bridge Digest, Vol 40, Issue 1 List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bridge@lists.osdl.org This is a multi-part message in MIME format... --0-1070106378-1165041265=:33495 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline Dear Fulvio I wanna know if your linux box ethernets are 1000 or 100 ? and are you sure about kernels < 2.6.15 that large tagged packets correctly forward ? Regards KasrA bridge-request@lists.osdl.org wrote: Send Bridge mailing list submissions to bridge@lists.osdl.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.osdl.org/mailman/listinfo/bridge or, via email, send a message with subject or body 'help' to bridge-request@lists.osdl.org You can reach the person managing the list at bridge-owner@lists.osdl.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Bridge digest..." Today's Topics: 1. Passing vlan tagged packets through linux bridge (Fulvio Ricciardi) 2. Re: Passing vlan tagged packets through linux bridge (Stephen Hemminger) ---------------------------------------------------------------------- Message: 1 Date: Fri, 01 Dec 2006 18:09:14 +0100 From: "Fulvio Ricciardi" Subject: [Bridge] Passing vlan tagged packets through linux bridge To: bridge@lists.osdl.org Message-ID: <457061ba.3a6.7c77.1170958095@webmailh3.aruba.it> Content-Type: text/plain; charset="iso-8859-1" > Use an Intel pro/100 or pro/1000 driver..they are known to > work with VLANs. > > I guess it's also possible that it's a problem in the > bridging code, so try the latest kernel > as well... I compiled the latest 2.6.19 kernel and tested it with two 3COM 3c905c fast ethernet interfaces which work fine with vlan 802.1q tagging, but when I have added the eth0 and eth1 to br0 the bridge doesn't forward tagged packets larger than 1472 bytes. I remember that with older kernels (<2.6.15) large tagged packets was forwarded. What is the problem? Any chance to have a patch? Thanks in advance for your answers. Best Regards Fulvio Ricciardi -------------------------------------------------------------------- Fulvio Ricciardi web: http://www.zeroshell.net/eng/ skype: zeroshellnet Phone: +3908321835630 ------------------------------ Message: 2 Date: Fri, 1 Dec 2006 10:29:24 -0800 From: Stephen Hemminger Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge To: fulvio.ricciardi@zeroshell.net Cc: bridge@lists.osdl.org Message-ID: <20061201102924.7e1045d2@freekitty> Content-Type: text/plain; charset=US-ASCII On Fri, 01 Dec 2006 18:09:14 +0100 "Fulvio Ricciardi" wrote: > > Use an Intel pro/100 or pro/1000 driver..they are known to > > work with VLANs. > > > > I guess it's also possible that it's a problem in the > > bridging code, so try the latest kernel > > as well... > > I compiled the latest 2.6.19 kernel and tested it with two > 3COM 3c905c fast ethernet interfaces which work fine with > vlan 802.1q tagging, but when I have added the eth0 and eth1 > to br0 the bridge doesn't forward tagged packets larger than > 1472 bytes. I remember that with older kernels (<2.6.15) > large tagged packets was forwarded. > What is the problem? Any chance to have a patch? > Thanks in advance for your answers. > Best Regards > Fulvio Ricciardi > This code might be dropping it, but don't see why because it is already checking for VLAN net/bridge/br_forward.c static inline unsigned packet_length(const struct sk_buff *skb) { return skb->len - (skb->protocol == htons(ETH_P_8021Q) ? VLAN_HLEN : 0); } int br_dev_queue_push_xmit(struct sk_buff *skb) { /* drop mtu oversized packets except gso */ if (packet_length(skb) > skb->dev->mtu && !skb_is_gso(skb)) kfree_skb(skb); -- Stephen Hemminger ------------------------------ _______________________________________________ Bridge mailing list Bridge@lists.osdl.org https://lists.osdl.org/mailman/listinfo/bridge End of Bridge Digest, Vol 40, Issue 1 ************************************* --------------------------------- Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers. --0-1070106378-1165041265=:33495 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline Dear Fulvio

I wanna know if your linux box ethernets are 1000 or 100 ?
and are you sure about kernels < 2.6.15 that large tagged packets correctly forward ?

Regards
KasrA
bridge-request@lists.osdl.org wrote:
Send Bridge mailing list submissions to
bridge@lists.osdl.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.osdl.org/mailman/listinfo/bridge
or, via email, send a message with subject or body 'help' to
bridge-request@lists.osdl.org

You can reach the person managing the list at
bridge-owner@lists.osdl.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bridge digest..."


Today's Topics:

1. Passing vlan tagged packets through linux bridge
(Fulvio Ricciardi)
2. Re: Passing vlan tagged packets through linux bridge
(Stephen Hemminger)


----------------------------------------------------------------------

Message: 1
Date: Fri, 01 Dec 2006 18:09:14 +0100
From: "Fulvio Ricciardi"
Subject: [Bridge] Passing vlan tagged packets through linux bridge
To: bridge@lists.osdl.org
Message-ID: <457061ba.3a6.7c77.1170958095@webmailh3.aruba.it>
Content-Type: text/plain; charset="iso-8859-1"

> Use an Intel pro/100 or pro/1000 driver..they are known to
> work with VLANs.
>
> I guess it's also possible that it's a problem in the
> bridging code, so try the latest kernel
> as well...

I compiled the latest 2.6.19 kernel and tested it with two
3COM 3c905c fast ethernet interfaces which work fine with
vlan 802.1q tagging, but when I have added the eth0 and eth1
to br0 the bridge doesn't forward tagged packets larger than
1472 bytes. I remember that with older kernels (<2.6.15)
large tagged packets was forwarded.
What is the problem? Any chance to have a patch?
Thanks in advance for your answers.
Best Regards
Fulvio Ricciardi

--------------------------------------------------------------------
Fulvio Ricciardi
web: http://www.zeroshell.net/eng/
skype: zeroshellnet
Phone: +3908321835630


------------------------------

Message: 2
Date: Fri, 1 Dec 2006 10:29:24 -0800
From: Stephen Hemminger
Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge
To: fulvio.ricciardi@zeroshell.net
Cc: bridge@lists.osdl.org
Message-ID: <20061201102924.7e1045d2@freekitty>
Content-Type: text/plain; charset=US-ASCII

On Fri, 01 Dec 2006 18:09:14 +0100
"Fulvio Ricciardi" wrote:

> > Use an Intel pro/100 or pro/1000 driver..they are known to
> > work with VLANs.
> >
> > I guess it's also possible that it's a problem in the
> > bridging code, so try the latest kernel
> > as well...
>
> I compiled the latest 2.6.19 kernel and tested it with two
> 3COM 3c905c fast ethernet interfaces which work fine with
> vlan 802.1q tagging, but when I have added the eth0 and eth1
> to br0 the bridge doesn't forward tagged packets larger than
> 1472 bytes. I remember that with older kernels (<2.6.15)
> large tagged packets was forwarded.
> What is the problem? Any chance to have a patch?
> Thanks in advance for your answers.
> Best Regards
> Fulvio Ricciardi
>


This code might be dropping it, but don't see why because it
is already checking for VLAN

net/bridge/br_forward.c

static inline unsigned packet_length(const struct sk_buff *skb)
{
return skb->len - (skb->protocol == htons(ETH_P_8021Q) ? VLAN_HLEN : 0);
}

int br_dev_queue_push_xmit(struct sk_buff *skb)
{
/* drop mtu oversized packets except gso */
if (packet_length(skb) > skb->dev->mtu && !skb_is_gso(skb))
kfree_skb(skb);

--
Stephen Hemminger


------------------------------

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


End of Bridge Digest, Vol 40, Issue 1
*************************************


Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers. --0-1070106378-1165041265=:33495--