8211e293bced0a4c32f7ab8d13f2e7b0e8395c4f
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-2.6.38 / 070_bcm63xx_enet_vlan_incoming_fixed.patch
1 --- a/drivers/net/bcm63xx_enet.c
2 +++ b/drivers/net/bcm63xx_enet.c
3 @@ -1515,7 +1515,7 @@ static int compute_hw_mtu(struct bcm_ene
4 actual_mtu = mtu;
5
6 /* add ethernet header + vlan tag size */
7 - actual_mtu += VLAN_ETH_HLEN;
8 + actual_mtu += VLAN_ETH_HLEN + VLAN_HLEN;
9
10 if (actual_mtu < 64 || actual_mtu > BCMENET_MAX_MTU)
11 return -EINVAL;