ipv4/6: use core net MTU range checking
authorJarod Wilson <[email protected]>
Thu, 20 Oct 2016 17:55:24 +0000 (13:55 -0400)
committerDavid S. Miller <[email protected]>
Thu, 20 Oct 2016 18:51:10 +0000 (14:51 -0400)
commitb96f9afee4eb5229c80afa3d97ccf725fb1b89a6
tree620fee35d81bca34bc7c117ba4bc65ab28f360b0
parent46b3ef4cdf6f84c35eeacfd4c19839e0067fcfdd
ipv4/6: use core net MTU range checking

ipv4/ip_tunnel:
- min_mtu = 68, max_mtu = 0xFFF8 - dev->hard_header_len - t_hlen
- preserve all ndo_change_mtu checks for now to prevent regressions

ipv6/ip6_tunnel:
- min_mtu = 68, max_mtu = 0xFFF8 - dev->hard_header_len
- preserve all ndo_change_mtu checks for now to prevent regressions

ipv6/ip6_vti:
- min_mtu = 1280, max_mtu = 65535
- remove redundant vti6_change_mtu

ipv6/sit:
- min_mtu = 1280, max_mtu = 0xFFF8 - t_hlen
- remove redundant ipip6_tunnel_change_mtu

CC: [email protected]
CC: "David S. Miller" <[email protected]>
CC: Alexey Kuznetsov <[email protected]>
CC: James Morris <[email protected]>
CC: Hideaki YOSHIFUJI <[email protected]>
CC: Patrick McHardy <[email protected]>
Signed-off-by: Jarod Wilson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv4/ip_tunnel.c
net/ipv6/ip6_tunnel.c
net/ipv6/ip6_vti.c
net/ipv6/sit.c