All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] ipv6: allow PMTU exceptions to local routes
@ 2018-06-10 23:02 Julian Anastasov
  2018-06-11 13:55 ` David Ahern
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Julian Anastasov @ 2018-06-10 23:02 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Martin KaFai Lau, kernel-team, lvs-devel

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: 45e4fd26683c ("ipv6: Only create RTF_CACHE routes after encountering pmtu exception")
Fixes: 7343ff31ebf0 ("ipv6: Don't create clones of host routes.")
Signed-off-by: Julian Anastasov <ja@ssi.bg>
---
 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.

diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index fb95698..86a0e43 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -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;
 
-- 
2.9.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net] ipv6: allow PMTU exceptions to local routes
  2018-06-10 23:02 [PATCH net] ipv6: allow PMTU exceptions to local routes Julian Anastasov
@ 2018-06-11 13:55 ` David Ahern
  2018-06-11 16:07   ` Martin KaFai Lau
  2018-06-11 21:17 ` David Miller
  2 siblings, 0 replies; 5+ messages in thread
From: David Ahern @ 2018-06-11 13:55 UTC (permalink / raw)
  To: Julian Anastasov, David Miller
  Cc: netdev, Martin KaFai Lau, kernel-team, lvs-devel

On 6/10/18 5:02 PM, Julian Anastasov wrote:
> 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: 45e4fd26683c ("ipv6: Only create RTF_CACHE routes after encountering pmtu exception")
> Fixes: 7343ff31ebf0 ("ipv6: Don't create clones of host routes.")
> Signed-off-by: Julian Anastasov <ja@ssi.bg>
> ---
>  net/ipv6/route.c | 3 ---
>  1 file changed, 3 deletions(-)
> 

Acked-by: David Ahern <dsahern@gmail.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] ipv6: allow PMTU exceptions to local routes
  2018-06-10 23:02 [PATCH net] ipv6: allow PMTU exceptions to local routes Julian Anastasov
@ 2018-06-11 16:07   ` Martin KaFai Lau
  2018-06-11 16:07   ` Martin KaFai Lau
  2018-06-11 21:17 ` David Miller
  2 siblings, 0 replies; 5+ messages in thread
From: Martin KaFai Lau @ 2018-06-11 16:07 UTC (permalink / raw)
  To: Julian Anastasov; +Cc: David Miller, netdev, kernel-team, lvs-devel

On Mon, Jun 11, 2018 at 02:02:54AM +0300, Julian Anastasov wrote:
> 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: 45e4fd26683c ("ipv6: Only create RTF_CACHE routes after encountering pmtu exception")
> Fixes: 7343ff31ebf0 ("ipv6: Don't create clones of host routes.")
> Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Martin KaFai Lau <kafai@fb.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] ipv6: allow PMTU exceptions to local routes
@ 2018-06-11 16:07   ` Martin KaFai Lau
  0 siblings, 0 replies; 5+ messages in thread
From: Martin KaFai Lau @ 2018-06-11 16:07 UTC (permalink / raw)
  To: Julian Anastasov; +Cc: David Miller, netdev, kernel-team, lvs-devel

On Mon, Jun 11, 2018 at 02:02:54AM +0300, Julian Anastasov wrote:
> 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: 45e4fd26683c ("ipv6: Only create RTF_CACHE routes after encountering pmtu exception")
> Fixes: 7343ff31ebf0 ("ipv6: Don't create clones of host routes.")
> Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Martin KaFai Lau <kafai@fb.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] ipv6: allow PMTU exceptions to local routes
  2018-06-10 23:02 [PATCH net] ipv6: allow PMTU exceptions to local routes Julian Anastasov
  2018-06-11 13:55 ` David Ahern
  2018-06-11 16:07   ` Martin KaFai Lau
@ 2018-06-11 21:17 ` David Miller
  2 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2018-06-11 21:17 UTC (permalink / raw)
  To: ja; +Cc: netdev, kafai, kernel-team, lvs-devel

From: Julian Anastasov <ja@ssi.bg>
Date: Mon, 11 Jun 2018 02:02:54 +0300

> 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: 45e4fd26683c ("ipv6: Only create RTF_CACHE routes after encountering pmtu exception")
> Fixes: 7343ff31ebf0 ("ipv6: Don't create clones of host routes.")
> Signed-off-by: Julian Anastasov <ja@ssi.bg>

Applied and queued up for -stable, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-11 21:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-10 23:02 [PATCH net] ipv6: allow PMTU exceptions to local routes Julian Anastasov
2018-06-11 13:55 ` David Ahern
2018-06-11 16:07 ` Martin KaFai Lau
2018-06-11 16:07   ` Martin KaFai Lau
2018-06-11 21:17 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.