]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vxlan, gre, geneve: Set a large MTU on ovs-created tunnel devices
authorDavid Wragg <david@weave.works>
Fri, 3 Jun 2016 22:58:15 +0000 (18:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jun 2016 17:18:18 +0000 (10:18 -0700)
commitce9c0dba5bf3ad4a25a9dc202e36e74d904df61d
tree14ca25b6aa9083e1a5f8c0477c9679940e00f6bc
parent51d7c394605bd5d72e76745def0002dd938ec48b
vxlan, gre, geneve: Set a large MTU on ovs-created tunnel devices

[ Upstream commit 7e059158d57b79159eaf1f504825d19866ef2c42 ]

Prior to 4.3, openvswitch tunnel vports (vxlan, gre and geneve) could
transmit vxlan packets of any size, constrained only by the ability to
send out the resulting packets.  4.3 introduced netdevs corresponding
to tunnel vports.  These netdevs have an MTU, which limits the size of
a packet that can be successfully encapsulated.  The default MTU
values are low (1500 or less), which is awkwardly small in the context
of physical networks supporting jumbo frames, and leads to a
conspicuous change in behaviour for userspace.

Instead, set the MTU on openvswitch-created netdevs to be the relevant
maximum (i.e. the maximum IP packet size minus any relevant overhead),
effectively restoring the behaviour prior to 4.3.

Signed-off-by: David Wragg <david@weave.works>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/geneve.c
drivers/net/vxlan.c
include/net/ip_tunnels.h
net/ipv4/ip_gre.c
net/ipv4/ip_tunnel.c
net/openvswitch/vport-vxlan.c