402_bcm63xx_enet_vlan_incoming_fixed.patch 381 B

1234567891011
  1. --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
  2. +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
  3. @@ -1632,7 +1632,7 @@ static int compute_hw_mtu(struct bcm_ene
  4. actual_mtu = mtu;
  5. /* add ethernet header + vlan tag size */
  6. - actual_mtu += VLAN_ETH_HLEN;
  7. + actual_mtu += VLAN_ETH_HLEN + VLAN_HLEN;
  8. if (actual_mtu < 64 || actual_mtu > BCMENET_MAX_MTU)
  9. return -EINVAL;