]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: start fib6 gc on RTF_CACHE dst creation
authorPaolo Abeni <pabeni@redhat.com>
Thu, 19 Oct 2017 14:07:10 +0000 (16:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Oct 2017 00:39:10 +0000 (01:39 +0100)
commit7df2f46b061ba8af25d22ba44a6dd9e44f5affea
tree911b97bd3e6644635452914a71405f3aca1055e6
parent3cdca4d409c3cf6cb508cb1fde7d47b7c8285150
ipv6: start fib6 gc on RTF_CACHE dst creation

After the commit f06c6a9c328d ("ipv6: hook up exception table
to store dst cache"), the fib6 gc is not started after the
creation of a RTF_CACHE via a redirect or pmtu update, since
fib6_add() isn't invoked anymore for such dsts.

We need the fib6 gc to run periodically to clean the RTF_CACHE,
or the dst will stay there forever.

Fix it by explicitly calling fib6_force_start_gc() on successful
exception creation. gc_args->more accounting will ensure that
the gc timer will run for whatever time needed to properly
clean the table.

v2 -> v3:
 - clarified the commit message

Fixes: f06c6a9c328d ("ipv6: hook up exception table to store dst cache")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Wei Wang <weiwan@google.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c