diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-12-25 09:45:12 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-02 20:36:14 +0300 |
commit | 2fa771be953a17f8e0a9c39103464c2574444c62 (patch) | |
tree | 524c2182f1844a51abcf58e321094fc97f93edbc /drivers/clocksource/timer-nps.c | |
parent | 52a589d51f1008f62569bf89e95b26221ee76690 (diff) | |
download | linux-2fa771be953a17f8e0a9c39103464c2574444c62.tar.xz |
ip6_tunnel: allow ip6gre dev mtu to be set below 1280
Commit 582442d6d5bc ("ipv6: Allow the MTU of ipip6 tunnel to be set
below 1280") fixed a mtu setting issue. It works for ipip6 tunnel.
But ip6gre dev updates the mtu also with ip6_tnl_change_mtu. Since
the inner packet over ip6gre can be ipv4 and it's mtu should also
be allowed to set below 1280, the same issue also exists on ip6gre.
This patch is to fix it by simply changing to check if parms.proto
is IPPROTO_IPV6 in ip6_tnl_change_mtu instead, to make ip6gre to
go to 'else' branch.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/clocksource/timer-nps.c')
0 files changed, 0 insertions, 0 deletions