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

If we move all cached dst into the exception table under the main route,
current rt6_clean_tohost() will no longer be able to access them.
This commit makes fib6_clean_tohost() to also go through all cached
routes in exception table and removes cached gateway routes to the
passed in gateway.
This is a preparation in order to move all cached routes into the
exception table.

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>
net/ipv6/route.c