History

net: ethernet: octeon_mgmt: Account for second possible VLAN header

Octeon's input ring-buffer entry has 14 bits-wide size field, so to account for second possible VLAN header max_mtu must be further reduced.

Alexander Sverdlin committed 7 years ago

Commit e4dd5601 parent e0a31261 file · +1 −1Browse files

Unified · Split

drivers/net/ethernet/cavium/octeon/octeon_mgmt.c+1−1
@@ -1499,7 +1499,7 @@ static int octeon_mgmt_probe(struct platform_device *pdev) · 1498 unmodified lines
1499 netdev->ethtool_ops = &octeon_mgmt_ethtool_ops;1499 netdev->ethtool_ops = &octeon_mgmt_ethtool_ops;
1500 1500
1501 netdev->min_mtu = 64 - OCTEON_MGMT_RX_HEADROOM;1501 netdev->min_mtu = 64 - OCTEON_MGMT_RX_HEADROOM;
1502 netdev->max_mtu = 16383 - OCTEON_MGMT_RX_HEADROOM;1502 netdev->max_mtu = 16383 - OCTEON_MGMT_RX_HEADROOM - VLAN_HLEN;
1503 1503
1504 mac = of_get_mac_address(pdev->dev.of_node);1504 mac = of_get_mac_address(pdev->dev.of_node);
1505 1505