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.
Unified · Split
| @@ -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 | ||