aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-4.14/402_bcm63xx_enet_vlan_incoming_fixed.patch
blob: 3604910d395c47e4c281b738b9d50efe00c8a2aa (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -1637,7 +1637,7 @@ static int bcm_enet_change_mtu(struct ne
 		return -EBUSY;
 
 	/* add ethernet header + vlan tag size */
-	actual_mtu += VLAN_ETH_HLEN;
+	actual_mtu += VLAN_ETH_HLEN + VLAN_HLEN;
 
 	/*
 	 * setup maximum size before we get overflow mark in