]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9eb41bcd0042f1696f59d8dbea2e29cf870c135c
treedd7bfb604d96ef13f43e6aeb480c320600452503
parentf8aac3b158c42a88caf8b64c203f5d6ffdbd0040
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