]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f51dbacac94ddfae03fa2689b54b6cbb4202dd0
treee231034def5bb6f9f150093be47ed9f50951bf9a
parent5c7df0d2b0331171f73f2edfcd4fd2ca91630da3
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]