OSDN Git Service

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)
commit53b61f29367df398243b7298ad1e5793c289a493
tree16489985622369179f8283873cf9b7f19db3b642
parentc127ffa23e41e6cb2251d5c30e54d60777034caa
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