]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: tc_common: Add hitting check
authorAmit Cohen <amitc@mellanox.com>
Thu, 7 Nov 2019 16:42:19 +0000 (18:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 03:51:40 +0000 (19:51 -0800)
commitc2c55c28c5acfadbeaaf1a69cf2a2cf3bf52917e
tree12e9e13a784e7bf20ba6c509a681dd0871c15dc4
parent347704f2f8476631e2866b95457b1be70610b441
selftests: forwarding: tc_common: Add hitting check

Add an option to check that packets hit the tc filter without providing
the exact number of packets that should hit it.

It is useful while sending many packets in background and checking that
at least one of them hit the tc filter.

Signed-off-by: Amit Cohen <amitc@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/tc_common.sh