datapath: geneve: Refine MTU limit.
authorDavid Wragg <david@weave.works>
Thu, 18 Feb 2016 17:43:29 +0000 (17:43 +0000)
committerJoe Stringer <joe@ovn.org>
Fri, 19 Feb 2016 19:12:46 +0000 (11:12 -0800)
commit27e81473df0ee9f0c06db6c3bed5b8b09d3fa1b5
tree23bcf4771752918bef6065e15c0eecd153c8ad3e
parent7ace430b951b9258fefc335ebad5b2add68341ff
datapath: geneve: Refine MTU limit.

Upstream commit:
    Calculate the maximum MTU taking into account the size of headers
    involved in GENEVE encapsulation, as for other tunnel types.

    Changes in v3:
    - Correct comment style
    Changes in v2:
    - Conform more closely to ip_tunnel_change_mtu
    - Exclude GENEVE options from max MTU calculation

Signed-off-by: David Wragg <david@weave.works>
Acked-by: Jesse Gross <jesse@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Upstream: aeee0e66c6b4 ("geneve: Refine MTU limit")
Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Jesse Gross <jesse@kernel.org>
datapath/linux/compat/geneve.c