selftests: forwarding: Add resilient hashing test
authorIdo Schimmel <idosch@nvidia.com>
Fri, 12 Mar 2021 16:50:24 +0000 (17:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Mar 2021 01:44:10 +0000 (17:44 -0800)
commit386e3792b52a4d815aefb30d8c049484dce7bdd2
treee231034def5bb6f9f150093be47ed9f50951bf9a
parent557205f47dc47afeaf80707845cda8ec79ea4cb0
selftests: forwarding: Add resilient hashing test

Verify that IPv4 and IPv6 multipath forwarding works correctly with
resilient nexthop groups and with different weights.

Test that when the idle timer is not zero, the resilient groups are not
rebalanced - because the nexthop buckets are considered active - and the
initial weights (1:1) are used.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh [new file with mode: 0755]