OSDN Git Service

net: add large ecmp group nexthop tests
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 27 May 2020 16:41:42 +0000 (12:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 18:38:43 +0000 (11:38 -0700)
commit5a1b72cebc774ec68854dab59c6838d795ee9370
treeebe30dbe89f1a1e40b0a7b0cdc6b0337547a9f8c
parentf99c0646ef83076dba88255c42482d1b4325f890
net: add large ecmp group nexthop tests

Add a couple large ecmp group nexthop selftests to cover
the remnant fixed by d69100b8eee27c2d60ee52df76e0b80a8d492d34.

The tests create 100 x32 ecmp groups of ipv4 and ipv6 and then
dump them. On kernels without the fix, they will fail due
to data remnant during the dump.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_nexthops.sh