selftests: fib_nexthops: Test large scale nexthop flushing
authorIdo Schimmel <idosch@nvidia.com>
Fri, 16 Apr 2021 15:55:35 +0000 (18:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Apr 2021 22:20:34 +0000 (15:20 -0700)
commitbf5eb67dc80a75e0756269084b087c06f0360b78
tree88e81aa6a5ae89f4deb0f71177ca939fbcc3b052
parent9e46fb656fdb40baec33a8942743d81a40f30fd3
selftests: fib_nexthops: Test large scale nexthop flushing

Test that all the nexthops are flushed when a multi-part nexthop dump is
required for the flushing.

Without previous patch:

 # ./fib_nexthops.sh
 TEST: Large scale nexthop flushing                                  [FAIL]

With previous patch:

 # ./fib_nexthops.sh
 TEST: Large scale nexthop flushing                                  [ OK ]

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_nexthops.sh