[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20141030.192115.918754566952396661.davem@davemloft.net>
Date: Thu, 30 Oct 2014 19:21:15 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: nicolas.cavallari@...en-communications.fr
Cc: kuznet@....inr.ac.ru, jmorris@...ei.org, yoshfuji@...ux-ipv6.org,
kaber@...sh.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH RESEND v2] ipv4: Do not cache routing failures due to
disabled forwarding.
From: Nicolas Cavallari <nicolas.cavallari@...en-communications.fr>
Date: Thu, 30 Oct 2014 10:09:53 +0100
> If we cache them, the kernel will reuse them, independently of
> whether forwarding is enabled or not. Which means that if forwarding is
> disabled on the input interface where the first routing request comes
> from, then that unreachable result will be cached and reused for
> other interfaces, even if forwarding is enabled on them. The opposite
> is also true.
>
> This can be verified with two interfaces A and B and an output interface
> C, where B has forwarding enabled, but not A and trying
> ip route get $dst iif A from $src && ip route get $dst iif B from $src
>
> Signed-off-by: Nicolas Cavallari <nicolas.cavallari@...en-communications.fr>
> Reviewed-by: Julian Anastasov <ja@....bg>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists