vxlan: Relax MTU constraints
authorDavid Wragg <david@weave.works>
Wed, 10 Feb 2016 00:05:55 +0000 (00:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Feb 2016 10:50:03 +0000 (05:50 -0500)
commit72564b59ffc438ea103b0727a921aaddce766728
treecc32571d466df92c568e8b879a19fe5b3de30576
parent461547f3158978c180d74484d58e82be9b8e7357
vxlan: Relax MTU constraints

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>
drivers/net/vxlan.c