]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6b656ee62f6d235ea426a3bdd72a3df4549e2ad
tree914222d2d46f636145b7055b8c70a871b275071e
parentf6842ce28bcde91f3ce113663c8b2ce36f382a65
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