From: Stephen Hemminger <shemminger@vyatta.com>
To: Adam Osuchowski <Adam.Osuchowski@polsl.pl>
Cc: bridge@linuxfoundation.org
Subject: Re: [Bridge] 802.1q packets
Date: Tue, 22 Jul 2008 14:59:20 -0700 [thread overview]
Message-ID: <20080722145920.4a8e0cbe@extreme> (raw)
In-Reply-To: <20080722193546.6b8b4567@polsl.pl>
On Tue, 22 Jul 2008 21:35:46 +0200
Adam Osuchowski <Adam.Osuchowski@polsl.pl> wrote:
> Fulvio Ricciardi wrote:
> > Thanks for the patch
>
> This patch has one shortcoming. Better version (with PPPoE support as well)
> is here:
>
> https://lists.linux-foundation.org/pipermail/bridge/2007-May/005447.html
>
> > that I hope developers will include it in the vanilla Kernel
> > as soon as possible.
>
> Don't be under the illusion that it will be done quickly (if at all).
> I have been waiting for that since I reported bug.
>
Problem has been fixed since 2.6.17 (over 2 yrs ago).
Look before you whine.
------------------------------------------------------
commit 85ca719e5756d79ea0f10c469e3762462ac45e22
Author: Stephen Hemminger <shemminger@osdl.org>
Date: Wed Apr 26 02:39:19 2006 -0700
[BRIDGE]: allow full size vlan packets
Need to allow for VLAN header when bridging.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c
index 2d24fb4..56f3aa4 100644
--- a/net/bridge/br_forward.c
+++ b/net/bridge/br_forward.c
@@ -16,6 +16,7 @@
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
+#include <linux/if_vlan.h>
#include <linux/netfilter_bridge.h>
#include "br_private.h"
@@ -29,10 +30,15 @@ static inline int should_deliver(const struct net_bridge_port *p,
return 1;
}
+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 tso */
- if (skb->len > skb->dev->mtu && !skb_shinfo(skb)->tso_size)
+ if (packet_length(skb) > skb->dev->mtu && !skb_shinfo(skb)->tso_size)
kfree_skb(skb);
else {
#ifdef CONFIG_BRIDGE_NETFILTER
next prev parent reply other threads:[~2008-07-22 21:59 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-22 17:40 [Bridge] 802.1q packets Fulvio Ricciardi
2008-07-22 19:35 ` Adam Osuchowski
2008-07-22 21:59 ` Stephen Hemminger [this message]
2008-07-23 3:51 ` richardvoigt
2008-09-20 20:47 ` Adam Osuchowski
-- strict thread matches above, loose matches on Subject: below --
2008-06-30 17:07 Fulvio Ricciardi
2008-06-30 22:42 ` richardvoigt
2008-07-01 15:10 ` Patrick McHardy
2009-03-17 14:58 ` Saikiran Madugula
2009-03-17 16:26 ` Saikiran Madugula
2008-06-30 16:58 Fulvio Ricciardi
2008-06-30 5:53 Leigh Sharpe
2008-06-28 21:17 Fulvio Ricciardi
2008-06-29 0:08 ` richardvoigt
2008-06-28 19:50 Fulvio Ricciardi
2008-06-28 21:06 ` richardvoigt
2008-06-28 12:07 Fulvio Ricciardi
2008-06-28 18:31 ` Stephen Hemminger
2008-06-28 4:56 Fulvio Ricciardi
2008-07-22 11:09 ` Adam Osuchowski
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=20080722145920.4a8e0cbe@extreme \
--to=shemminger@vyatta.com \
--cc=Adam.Osuchowski@polsl.pl \
--cc=bridge@linuxfoundation.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