ibmveth: Fix max MTU limit
authorThomas Falcon <tlfalcon@linux.ibm.com>
Thu, 18 Jun 2020 15:43:46 +0000 (10:43 -0500)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:36:43 +0000 (15:36 -0400)
commit009b3e294a901cb0286ecda179d6e6f0d0ffaa65
tree838af8612c36ddf9b9035eb8814d7afb593f1508
parentf060107ccc97619074faa6ee4cfe43664abcbd82
ibmveth: Fix max MTU limit

[ Upstream commit 5948378b26d89f8aa5eac37629dbd0616ce8d7a7 ]

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: d894be57ca92 ("ethernet: use net core MTU range checking in more drivers")
Fixes: 110447f8269a ("ethernet: fix min/max MTU typos")
Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmveth.c