summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/patches-2.6.32/070_bcm63xx_enet_vlan_incoming_fixed.patch
blob: 681f203fb7fabf586f89386e16c5017424a2b68f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: linux-2.6.32.9/drivers/net/bcm63xx_enet.c
===================================================================
--- linux-2.6.32.9.orig/drivers/net/bcm63xx_enet.c	2010-02-28 18:18:37.000000000 +0100
+++ linux-2.6.32.9/drivers/net/bcm63xx_enet.c	2010-02-28 18:20:03.000000000 +0100
@@ -1526,7 +1526,7 @@
 	actual_mtu = mtu;
 
 	/* add ethernet header + vlan tag size */
-	actual_mtu += VLAN_ETH_HLEN;
+	actual_mtu += VLAN_ETH_HLEN + VLAN_HLEN;
 
 	if (actual_mtu < 64 || actual_mtu > BCMENET_MAX_MTU)
 		return -EINVAL;