]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit533a9afd1ee9cdcc23aa98d515ccc1d51ee97fa4
treecc32571d466df92c568e8b879a19fe5b3de30576
parent3f3a02b38493f5f0da734a2cfbd3a7f721fdf321
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