OSDN Git Service

ipv6: Be smarter with null_entry handling in ip6_pol_route_lookup
authorDavid Ahern <dsahern@gmail.com>
Tue, 9 Apr 2019 21:41:16 +0000 (14:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 21:24:06 +0000 (14:24 -0700)
commitaf52a52cbabd8751154483dc8e6685a28746970f
treedd7bfb604d96ef13f43e6aeb480c320600452503
parent30c15f033847c519bae4a3dc23320e1fbee868eb
ipv6: Be smarter with null_entry handling in ip6_pol_route_lookup

Clean up the fib6_null_entry handling in ip6_pol_route_lookup.
rt6_device_match can return fib6_null_entry, but fib6_multipath_select
can not. Consolidate the fib6_null_entry handling and on the final
null_entry check set rt and goto out - no need to defer to a second
check after rt6_find_cached_rt.

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