geneve: Relax MTU constraints
authorDavid Wragg <david@weave.works>
Wed, 10 Feb 2016 00:05:57 +0000 (00:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Feb 2016 10:50:03 +0000 (05:50 -0500)
commit55e5bfb53cff286c1c1ff49f51325dc15c7fea63
tree37f478a42c7ab91a8dac7047c2c467acb84ce402
parent72564b59ffc438ea103b0727a921aaddce766728
geneve: Relax MTU constraints

Allow the MTU of geneve devices to be set to large values, in order to
exploit underlying networks with larger frame sizes.

GENEVE does not have a fixed encapsulation overhead (an openvswitch
rule can add variable length options), so there is no relevant maximum
MTU to enforce.  A maximum of IP_MAX_MTU is used instead.
Encapsulated packets that are too big for the underlying network will
get dropped on the floor.

Signed-off-by: David Wragg <david@weave.works>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c