]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa147a74116508b9bded7bbea35ab8ef778d671e
treeb70ecc0b84cb9c9db0c4e40ba2af7f12eacdf969
parent3a4e444cb29f3227127de35ee637f397636d1549
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: f770d5650da8 ("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