geneve: Refine MTU limit
commitaeee0e66c6b46cee311be22cb82735763eceb7c3
authorDavid Wragg <david@weave.works>
Thu, 18 Feb 2016 17:43:29 +0000 (18 17:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 18:57:15 +0000 (18 13:57 -0500)
tree15c5724ed408fbc8fbd5e9d54af92eb48f49758b
parent7716682cc58e305e22207d5bb315f26af6b1e243
geneve: Refine MTU limit

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>
drivers/net/geneve.c