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:11:51 +0000 (11:11 -0800)
commit917b3b453b787f5433f5b589ba49f2bbe9221cc9
tree82b64cc877e801e639b8a67e77e7691b40c2e14a
parent06f1a61a87182edc3a6c3a6f6420ab9f2012b2d3
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