]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Add tc-police tests for packets per second
authorBaowen Zheng <baowen.zheng@corigine.com>
Fri, 26 Mar 2021 13:09:38 +0000 (14:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 00:48:28 +0000 (17:48 -0700)
commit9badfde1d429d1d17d799048a53ff3cc2ca1d170
tree16489985622369179f8283873cf9b7f19db3b642
parentc4eb416a4a6f340e94ba0fdd005b3e1b118daab1
selftests: forwarding: Add tc-police tests for packets per second

Test tc-police action for packets per second.
The test is mainly in scenarios Rx policing and Tx policing.
The test passes with veth pairs ports.

Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh
tools/testing/selftests/net/forwarding/tc_police.sh