ipv6: Refactor __ip6_route_redirect
authorDavid Ahern <dsahern@gmail.com>
Tue, 9 Apr 2019 21:41:19 +0000 (14:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 21:24:07 +0000 (14:24 -0700)
commit0b34eb004347308ed0952ddb5b3898a71869ac3c
tree4c67f46492b695373ffde163f26ef2e3c7bb8594
parent0c59d00675874f9ee7a0371ad9d9b69386ea2d03
ipv6: Refactor __ip6_route_redirect

Move the nexthop evaluation of a fib entry to a helper that can be
leveraged for each fib6_nh in a multipath nexthop object.

In the move, 'continue' statements means the helper returns false
(loop should continue) and 'break' means return true (found the entry
of interest).

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