]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Only create RTF_CACHE routes after encountering pmtu exception
authorMartin KaFai Lau <kafai@fb.com>
Sat, 23 May 2015 03:56:00 +0000 (20:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 17:25:33 +0000 (13:25 -0400)
commit0c8dfdb319ffecbf1541cca877fd651969dd0831
tree9393590b3d79a26cf18cd11ac2b2d7f7c34a61e5
parent02a53d75209930d7941d38766ad94b9e55e54835
ipv6: Only create RTF_CACHE routes after encountering pmtu exception

This patch creates a RTF_CACHE routes only after encountering a pmtu
exception.

After ip6_rt_update_pmtu() has inserted the RTF_CACHE route to the fib6
tree, the rt->rt6i_node->fn_sernum is bumped which will fail the
ip6_dst_check() and trigger a relookup.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/ipv6/ip6_fib.c
net/ipv6/route.c