Skip to content

Commit

Permalink
ipv6: allow PMTU exceptions to local routes
Browse files Browse the repository at this point in the history
IPVS setups with local client and remote tunnel server need
to create exception for the local virtual IP. What we do is to
change PMTU from 64KB (on "lo") to 1460 in the common case.

Suggested-by: Martin KaFai Lau <kafai@fb.com>
Fixes: 45e4fd2 ("ipv6: Only create RTF_CACHE routes after encountering pmtu exception")
Fixes: 7343ff3 ("ipv6: Don't create clones of host routes.")
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: David Ahern <dsahern@gmail.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Julian Anastasov authored and davem330 committed Jun 11, 2018
1 parent f0dc7f9 commit 0975764
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -2307,9 +2307,6 @@ static void __ip6_rt_update_pmtu(struct dst_entry *dst, const struct sock *sk,
const struct in6_addr *daddr, *saddr;
struct rt6_info *rt6 = (struct rt6_info *)dst;

if (rt6->rt6i_flags & RTF_LOCAL)
return;

if (dst_metric_locked(dst, RTAX_MTU))
return;

Expand Down

0 comments on commit 0975764

Please sign in to comment.