Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
[BRIDGE]: allow full size vlan packets

+7 -1
+7 -1
net/bridge/br_forward.c
··· 16 #include <linux/kernel.h> 17 #include <linux/netdevice.h> 18 #include <linux/skbuff.h> 19 #include <linux/netfilter_bridge.h> 20 #include "br_private.h" 21 ··· 30 return 1; 31 } 32 33 int br_dev_queue_push_xmit(struct sk_buff *skb) 34 { 35 /* drop mtu oversized packets except tso */ 36 - if (skb->len > skb->dev->mtu && !skb_shinfo(skb)->tso_size) 37 kfree_skb(skb); 38 else { 39 #ifdef CONFIG_BRIDGE_NETFILTER
··· 16 #include <linux/kernel.h> 17 #include <linux/netdevice.h> 18 #include <linux/skbuff.h> 19 + #include <linux/if_vlan.h> 20 #include <linux/netfilter_bridge.h> 21 #include "br_private.h" 22 ··· 29 return 1; 30 } 31 32 + static inline unsigned packet_length(const struct sk_buff *skb) 33 + { 34 + return skb->len - (skb->protocol == htons(ETH_P_8021Q) ? VLAN_HLEN : 0); 35 + } 36 + 37 int br_dev_queue_push_xmit(struct sk_buff *skb) 38 { 39 /* drop mtu oversized packets except tso */ 40 + if (packet_length(skb) > skb->dev->mtu && !skb_shinfo(skb)->tso_size) 41 kfree_skb(skb); 42 else { 43 #ifdef CONFIG_BRIDGE_NETFILTER