datapath: Set a large MTU on tunnel devices.
authorDavid Wragg <david@weave.works>
Wed, 10 Feb 2016 00:05:58 +0000 (00:05 +0000)
committerJoe Stringer <joe@ovn.org>
Fri, 19 Feb 2016 19:12:45 +0000 (11:12 -0800)
commit7ace430b951b9258fefc335ebad5b2add68341ff
tree0ba51a389e6bff9d9e9a945ef2107b38c941c25f
parentc074a6d7536168a9901e460a7ecadbf2333095f3
datapath: Set a large MTU on tunnel devices.

Upstream commit:
    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>
Upstream: 7e059158d57b ("vxlan, gre, geneve: Set a large MTU on ovs-created
tunnel devices")
Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Jesse Gross <jesse@kernel.org>
acinclude.m4
datapath/linux/compat/geneve.c
datapath/linux/compat/include/net/ip_tunnels.h
datapath/linux/compat/ip_gre.c
datapath/linux/compat/ip_tunnel.c
datapath/linux/compat/vxlan.c
datapath/vport-vxlan.c