ipv4: nexthop version of fib_info_nh_uses_dev
authorDavid Ahern <dsahern@gmail.com>
Tue, 26 May 2020 18:56:18 +0000 (12:56 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2020 23:06:07 +0000 (16:06 -0700)
commit1fd1c768f3624a5e66766e7b4ddb9b607cd834a5
treeb70ecc0b84cb9c9db0c4e40ba2af7f12eacdf969
parentaf7888ad9edbd8ba7f6449d1c27ce281ad4b26fd
ipv4: nexthop version of fib_info_nh_uses_dev

Similar to the last path, need to fix fib_info_nh_uses_dev for
external nexthops to avoid referencing multiple nh_grp structs.
Move the device check in fib_info_nh_uses_dev to a helper and
create a nexthop version that is called if the fib_info uses an
external nexthop.

Fixes: 430a049190de ("nexthop: Add support for nexthop groups")
Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
include/net/nexthop.h
net/ipv4/fib_frontend.c