Add self tests for the recently added packet per second rate limiting
feature of the TC policer action[1].
The forwarding selftest (patch 2/2) depends on iproute2 support
for packet per second rate limiting, which has been posted separately[2]
[1] [PATCH v3 net-next 0/3] net/sched: act_police: add support for
packet-per-second policing
https://lore.kernel.org/netdev/[email protected]/
[2] [PATCH iproute2-next] police: add support for packet-per-second rate
limiting
https://lore.kernel.org/netdev/[email protected]/
Baowen Zheng (2):
selftests: tc-testing: add action police selftest for packets per
second
selftests: forwarding: Add tc-police tests for packets per second
tools/testing/selftests/net/forwarding/lib.sh | 9 +++
.../selftests/net/forwarding/tc_police.sh | 56 +++++++++++++++++++
.../tc-testing/tc-tests/actions/police.json | 48 ++++++++++++++++
3 files changed, 113 insertions(+)
--
2.20.1