ipv6: prepare fib6_age() for exception table
authorWei Wang <weiwan@google.com>
Fri, 6 Oct 2017 19:06:01 +0000 (12:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Oct 2017 20:22:57 +0000 (21:22 +0100)
commitc757faa8bfa26a0dd24b41ff783e0da042156887
tree914222d2d46f636145b7055b8c70a871b275071e
parentb16cb459d77800dcb886b5e73e1beafd3d596897
ipv6: prepare fib6_age() for exception table

If all dst cache entries are stored in the exception table under the
main route, we have to go through them during fib6_age() when doing
garbage collecting.
Introduce a new function rt6_age_exception() which goes through all dst
entries in the exception table and remove those entries that are expired.
This function is called in fib6_age() so that all dst caches are also
garbage collected.

Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
include/net/ip6_route.h
net/ipv6/ip6_fib.c
net/ipv6/route.c