* [PATCH] net/core: Allow tagged VLAN packets to flow through VETH devices.
@ 2010-10-15 18:35 Ben Greear
2010-10-21 11:07 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ben Greear @ 2010-10-15 18:35 UTC (permalink / raw)
To: netdev; +Cc: Ben Greear
When there are VLANs on a VETH device, the packets being transmitted
through the VETH device may be 4 bytes bigger than MTU. A check
in dev_forward_skb did not take this into account and so dropped
these packets.
This patch is needed at least as far back as 2.6.34.7 and should
be considered for -stable.
Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 7f52603... 9fa308b... M net/core/dev.c
net/core/dev.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/core/dev.c b/net/core/dev.c
index 7f52603..9fa308b 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1485,7 +1485,7 @@ int dev_forward_skb(struct net_device *dev, struct sk_buff *skb)
nf_reset(skb);
if (!(dev->flags & IFF_UP) ||
- (skb->len > (dev->mtu + dev->hard_header_len))) {
+ (skb->len > (dev->mtu + dev->hard_header_len + VLAN_HLEN))) {
kfree_skb(skb);
return NET_RX_DROP;
}
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net/core: Allow tagged VLAN packets to flow through VETH devices.
2010-10-15 18:35 [PATCH] net/core: Allow tagged VLAN packets to flow through VETH devices Ben Greear
@ 2010-10-21 11:07 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-10-21 11:07 UTC (permalink / raw)
To: greearb; +Cc: netdev
From: Ben Greear <greearb@candelatech.com>
Date: Fri, 15 Oct 2010 11:35:05 -0700
> When there are VLANs on a VETH device, the packets being transmitted
> through the VETH device may be 4 bytes bigger than MTU. A check
> in dev_forward_skb did not take this into account and so dropped
> these packets.
>
> This patch is needed at least as far back as 2.6.34.7 and should
> be considered for -stable.
>
> Signed-off-by: Ben Greear <greearb@candelatech.com>
Applied, although a check of the vlan-capable netdev flag
might be appropriate to add.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-21 11:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15 18:35 [PATCH] net/core: Allow tagged VLAN packets to flow through VETH devices Ben Greear
2010-10-21 11:07 ` David Miller
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).