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