ipv6: Only call rt6_check_neigh for nexthop with gateway
authorDavid Ahern <dsahern@gmail.com>
Tue, 9 Apr 2019 21:41:10 +0000 (14:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 21:24:06 +0000 (14:24 -0700)
commit1ba9a8951794751ea3bcbcc5df700d42d525a130
treea98629571ecba7385d905a7bcbff29f4dc40ef4e
parent62720b12d20aecebc2e74642c37a3dc84717ac7a
ipv6: Only call rt6_check_neigh for nexthop with gateway

Change rt6_check_neigh to take a fib6_nh instead of a fib entry.
Move the check on fib_flags and whether the nexthop has a gateway
up to the one caller.

Remove the inline from the definition as well. Not necessary.

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