ipv6: Refactor ip6_route_del for cached routes
authorDavid Ahern <dsahern@gmail.com>
Thu, 23 May 2019 03:28:00 +0000 (20:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2019 20:26:44 +0000 (13:26 -0700)
commit0fa6efc54780412c3fbd6f6e61a5dfb4ca9bb59c
treeb92bf370a2f8db1ac26fae30d4113e4e4bbea24a
parent1cf844c747d5424abe76f7b599c00b1ac17d3fce
ipv6: Refactor ip6_route_del for cached routes

Move the removal of cached routes to a helper, ip6_del_cached_rt, that
can be invoked per nexthop. Rename the existig ip6_del_cached_rt to
__ip6_del_cached_rt since it is called by ip6_del_cached_rt.

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