net: ethernet: octeon_mgmt: Account for second possible VLAN header
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Fri, 8 Nov 2019 10:00:44 +0000 (10:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 19:18:40 +0000 (11:18 -0800)
commite4dd5608033efe7b6030cde359bfdbaeb73bc22d
treec02b96a9ae264744f771fe8de29b663021fcf690
parente0a312629fefa943534fc46f7bfbe6de3fdaf463
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>
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c