[brcm63xx] add support for 2.6.32, dropped the SPI patch for now
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-2.6.32 / 070_bcm63xx_enet_vlan_incoming_fixed.patch
1 Index: linux-2.6.32.9/drivers/net/bcm63xx_enet.c
2 ===================================================================
3 --- linux-2.6.32.9.orig/drivers/net/bcm63xx_enet.c 2010-02-28 18:18:37.000000000 +0100
4 +++ linux-2.6.32.9/drivers/net/bcm63xx_enet.c 2010-02-28 18:20:03.000000000 +0100
5 @@ -1526,7 +1526,7 @@
6 actual_mtu = mtu;
7
8 /* add ethernet header + vlan tag size */
9 - actual_mtu += VLAN_ETH_HLEN;
10 + actual_mtu += VLAN_ETH_HLEN + VLAN_HLEN;
11
12 if (actual_mtu < 64 || actual_mtu > BCMENET_MAX_MTU)
13 return -EINVAL;