aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2020-05-26 12:56:16 -0600
committerDavid S. Miller <davem@davemloft.net>2020-05-26 16:06:07 -0700
commit0b5e2e39739e861fa5fc84ab27a35dbe62a15330 (patch)
treedf60d9026c1034aa6fa281f2d7965e99a5fd4cbe /net/ipv4
parentnexthops: don't modify published nexthop groups (diff)
downloadlinux-dev-0b5e2e39739e861fa5fc84ab27a35dbe62a15330.tar.xz
linux-dev-0b5e2e39739e861fa5fc84ab27a35dbe62a15330.zip
nexthop: Expand nexthop_is_multipath in a few places
I got too fancy consolidating checks on multipath type. The result is that path lookups can access 2 different nh_grp structs as exposed by Nik's torture tests. Expand nexthop_is_multipath within nexthop.h to avoid multiple, nh_grp dereferences and make decisions based on the consistent struct. Only 2 places left using nexthop_is_multipath are within IPv6, both only check that the nexthop is a multipath for a branching decision which are acceptable. 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>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions