]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: use net->rt_genid to check dst validity
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 10 Sep 2012 22:09:46 +0000 (22:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Sep 2012 19:57:03 +0000 (15:57 -0400)
commit6a349a1a9dd04a92e62159f3ef43e8c3324b4591
tree4b42d48f7346850618756ee4c26a179c5f7c7c3b
parenta43cb8810f12dffe4b77d30efdc7e91d9edb2c19
ipv6: use net->rt_genid to check dst validity

IPv6 dst should take care of rt_genid too. When a xfrm policy is inserted or
deleted, all dst should be invalidated.
To force the validation, dst entries should be created with ->obsolete set to
DST_OBSOLETE_FORCE_CHK. This was already the case for all functions calling
ip6_dst_alloc(), except for ip6_rt_copy().

As a consequence, we can remove the specific code in inet6_connection_sock.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
net/ipv6/inet6_connection_sock.c
net/ipv6/route.c