diff options
author | Ben Greear <greearb@candelatech.com> | 2010-10-21 07:06:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-21 07:06:29 -0400 |
commit | d2ed817766987fd05e69b7da65d4861b38f1aa2a (patch) | |
tree | 0ae70ffb3eb107a8d28a53e1ef6e9dc3591a19c1 /net/core | |
parent | d836b31e164e15a5f366199f4ee757c6be7dc91e (diff) |
net/core: Allow tagged VLAN packets to flow through VETH devices.
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | 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 660dd41aaaa6..8e07109cc0ef 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) | |||
1485 | nf_reset(skb); | 1485 | nf_reset(skb); |
1486 | 1486 | ||
1487 | if (!(dev->flags & IFF_UP) || | 1487 | if (!(dev->flags & IFF_UP) || |
1488 | (skb->len > (dev->mtu + dev->hard_header_len))) { | 1488 | (skb->len > (dev->mtu + dev->hard_header_len + VLAN_HLEN))) { |
1489 | kfree_skb(skb); | 1489 | kfree_skb(skb); |
1490 | return NET_RX_DROP; | 1490 | return NET_RX_DROP; |
1491 | } | 1491 | } |