]> git.baikalelectronics.ru Git - kernel.git/commit
ibmveth: Fix max MTU limit
authorThomas Falcon <tlfalcon@linux.ibm.com>
Thu, 18 Jun 2020 15:43:46 +0000 (10:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Jun 2020 03:21:46 +0000 (20:21 -0700)
commit2b9baf6b8c07e2295d6605f30a2226a1191f4c9d
tree6347e773c9793b07a47c464ee61fad787ca97726
parentbec15329b235b1e3e7d7e80be64c40c801b65df5
ibmveth: Fix max MTU limit

The max MTU limit defined for ibmveth is not accounting for
virtual ethernet buffer overhead, which is twenty-two additional
bytes set aside for the ethernet header and eight additional bytes
of an opaque handle reserved for use by the hypervisor. Update the
max MTU to reflect this overhead.

Fixes: 8f5b18ec5447 ("ethernet: use net core MTU range checking in more drivers")
Fixes: f225541a0205 ("ethernet: fix min/max MTU typos")
Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmveth.c