aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm63xx/patches-5.4/402_bcm63xx_enet_vlan_incoming_fixed.patch
blob: bd0c4cfc3f7a853d95ec11d1a84266284bb24ccb (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
@@ -1630,7 +1630,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