]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: move expires into rt6_info
authorDavid Ahern <dsahern@gmail.com>
Wed, 18 Apr 2018 00:33:17 +0000 (17:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Apr 2018 03:41:17 +0000 (23:41 -0400)
commit5dde3cd0df2427a67075f113d02ae7696db3577b
tree2f72e7bd6f5b1c31e184191bdf2302a0ea3005e5
parentb61a880ad6abfc932d70c944f92a888f4fc67636
net/ipv6: move expires into rt6_info

Add expires to rt6_info for FIB entries, and add fib6 helpers to
manage it. Data path use of dst.expires remains.

The transition is fairly straightforward: when working with fib entries,
rt->dst.expires is just rt->expires, rt6_clean_expires is replaced with
fib6_clean_expires, rt6_set_expires becomes fib6_set_expires, and
rt6_check_expired becomes fib6_check_expired, where the fib6 versions
are added by this patch.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
net/ipv6/addrconf.c
net/ipv6/ip6_fib.c
net/ipv6/ndisc.c
net/ipv6/route.c