[Bridge] Passing vlan tagged packets through linux bridge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > 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 <shemminger at osdl.org>

I don't think the function  br_dev_queue_push_xmit(struct
sk_buff *skb) drops the large tagged packets because the
size limit I found with the tests is 1472 bytes and not 1496
(MTU-4).

--------------------------------------------------------------------
Fulvio Ricciardi
web: http://www.zeroshell.net/eng/
skype: zeroshellnet
Phone: +3908321835630
--------------------------------------
   This Email Was brought to you by
               WebMail
    A Netwin Web Based EMail Client
  http://netwinsite.com/webmail/tag.htm


[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux