]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc40554989487bbe74f09df95da9b2ee62071d822
treec02b96a9ae264744f771fe8de29b663021fcf690
parentd6cfeac33f77ba297986c51bfb2c7a7db6bc7ac7
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: 0961687ffd17f ("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