selftests: fib_tests: Add multipath list receive tests
authorSriram Yagnaraman <sriram.yagnaraman@est.tech>
Thu, 31 Aug 2023 08:03:32 +0000 (10:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Sep 2023 07:11:51 +0000 (08:11 +0100)
commit8ae9efb859c05a54ac92b3336c6ca0597c9c8cdb
tree0d0ff42d9111d8ba67cbbf69794ad5f6cef7d13e
parent8423be8926aa82cd2e28bba5cc96ccb72c7ce6be
selftests: fib_tests: Add multipath list receive tests

The test uses perf stat to count the number of fib:fib_table_lookup
tracepoint hits for IPv4 and the number of fib6:fib6_table_lookup for
IPv6. The measured count is checked to be within 5% of the total number
of packets sent via veth1.

Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_tests.sh