Skip to contentSkip to conversation

ipv6: allow PMTU exceptions to local routes

PATCH In review Julian Anastasov 4 participants 4 messages Jun 10, 2018 – Jun 11, 2018

Subsystems (4)
lore
Share & tools
lore

Julian Anastasov

author maintainer
#0 lore raw

PATCH 1/1 ipv6: allow PMTU exceptions to local routes

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.

Fixes 45e4fd26683c ("ipv6: Only create RTF_CACHE routes after encountering pmtu exception")
Fixes 7343ff31ebf0 ("ipv6: Don't create clones of host routes.")
---
 net/ipv6/route.c | 3 ---
 1 file changed, 3 deletions(-)

Note: I failed to build 2.6.38 kernel for the test but I think commit 7343ff31ebf0 looks as the one that added the restriction to change PMTU for local IPs.

So, I'm not sure from how long time the issue with local IPVS clients and tunnelling method exists. May be it worked between 2.6.28 and 2.6.37.

net/ipv6/route.c +0 -3
index fb95698..86a0e43 100644
@@ -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;
 
Signature · 1 line
2.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Julian Anastasov

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.

Quoted 8 lines
Fixes 45e4fd26683c ("ipv6: Only create RTF_CACHE routes after encountering pmtu exception")
Fixes 7343ff31ebf0 ("ipv6: Don't create clones of host routes.")
---
 net/ipv6/route.c | 3 ---
 1 file changed, 3 deletions(-)
Acked-by on v1 1/1
#2 lore raw
In reply to Julian Anastasov
Quoted 8 lines · Julian Anastasov

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.

Fixes 45e4fd26683c ("ipv6: Only create RTF_CACHE routes after encountering pmtu exception")
Fixes 7343ff31ebf0 ("ipv6: Don't create clones of host routes.")
maintainer
#3 lore raw
In reply to Julian Anastasov

From: Julian Anastasov <[email protected]>
Date: Mon, 11 Jun 2018 02:02:54 +0300

Quoted 8 lines

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.

Fixes 45e4fd26683c ("ipv6: Only create RTF_CACHE routes after encountering pmtu exception")
Fixes 7343ff31ebf0 ("ipv6: Don't create clones of host routes.")

Applied and queued up for -stable, thanks.