]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vxlan: Relax MTU constraints
authorDavid Wragg <david@weave.works>
Fri, 3 Jun 2016 22:58:13 +0000 (18:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jun 2016 17:18:17 +0000 (10:18 -0700)
commit3dc443059897b8a2fa3e3b18f794ee31c0063730
tree555907108e23515328ddf7af3102f2d7a0998037
parent4d82f395bb0597a3aba23387406e2c07332d6ae9
vxlan: Relax MTU constraints

[ Upstream commit 72564b59ffc438ea103b0727a921aaddce766728 ]

Allow the MTU of vxlan devices without an underlying device to be set
to larger values (up to a maximum based on IP packet limits and vxlan
overhead).

Previously, their MTUs could not be set to higher than the
conventional ethernet value of 1500.  This is a very arbitrary value
in the context of vxlan, and prevented vxlan devices from being able
to take advantage of jumbo frames etc.

The default MTU remains 1500, for compatibility.

Signed-off-by: David Wragg <david@weave.works>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vxlan.c