diff options
author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | 2019-11-08 11:00:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-08 20:18:40 +0100 |
commit | e4dd5608033efe7b6030cde359bfdbaeb73bc22d (patch) | |
tree | c02b96a9ae264744f771fe8de29b663021fcf690 /drivers | |
parent | ipv4: Fix table id reference in fib_sync_down_addr (diff) | |
download | linux-e4dd5608033efe7b6030cde359bfdbaeb73bc22d.tar.xz linux-e4dd5608033efe7b6030cde359bfdbaeb73bc22d.zip |
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.
Fixes: 109cc16526c6d ("ethernet/cavium: use core min/max MTU checking")
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/cavium/octeon/octeon_mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c index 0e5de88fd6e8..cdd7e5da4a74 100644 --- a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c +++ b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c @@ -1499,7 +1499,7 @@ static int octeon_mgmt_probe(struct platform_device *pdev) netdev->ethtool_ops = &octeon_mgmt_ethtool_ops; netdev->min_mtu = 64 - OCTEON_MGMT_RX_HEADROOM; - netdev->max_mtu = 16383 - OCTEON_MGMT_RX_HEADROOM; + netdev->max_mtu = 16383 - OCTEON_MGMT_RX_HEADROOM - VLAN_HLEN; mac = of_get_mac_address(pdev->dev.of_node); |