selftests: net: Add test cases for nexthop groups with invalid neighbors
authorBenjamin Poirier <bpoirier@nvidia.com>
Wed, 19 Jul 2023 13:57:27 +0000 (13:57 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Jul 2023 03:23:20 +0000 (20:23 -0700)
commitc7e95bbda82207ae81095dfa8d09ef1d6519a63d
tree4da7bcbc76c9a1727ade2934ed1859aa82828c1b
parent75f5f04c7bd2163044f80d5f7bea6b79edc288fa
selftests: net: Add test cases for nexthop groups with invalid neighbors

Add test cases for hash threshold (multipath) nexthop groups with invalid
neighbors. Check that a nexthop with invalid neighbor is not selected when
there is another nexthop with a valid neighbor. Check that there is no
crash when there is no nexthop with a valid neighbor.

The first test fails before the previous commit in this series.

Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20230719-nh_select-v2-4-04383e89f868@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/fib_nexthops.sh