netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] selftest: add tests for packet per second
@ 2021-03-26 13:09 Simon Horman
  2021-03-26 13:09 ` [PATCH net-next 1/2] selftests: tc-testing: add action police selftest for packets " Simon Horman
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Simon Horman @ 2021-03-26 13:09 UTC (permalink / raw)
  To: David Miller, Jakub Kicinski
  Cc: Jamal Hadi Salim, Cong Wang, Jiri Pirko, netdev, oss-drivers,
	Ido Schimmel, Baowen Zheng, Simon Horman

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/20210312140831.23346-1-simon.horman@netronome.com/

[2] [PATCH iproute2-next] police: add support for packet-per-second rate limiting
    https://lore.kernel.org/netdev/20210326125018.32091-1-simon.horman@netronome.com/

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-29  7:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-26 13:09 [PATCH net-next 0/2] selftest: add tests for packet per second Simon Horman
2021-03-26 13:09 ` [PATCH net-next 1/2] selftests: tc-testing: add action police selftest for packets " Simon Horman
2021-03-28  0:55   ` Jamal Hadi Salim
2021-03-26 13:09 ` [PATCH net-next 2/2] selftests: forwarding: Add tc-police tests " Simon Horman
2021-03-29  7:16   ` Ido Schimmel
2021-03-29  0:50 ` [PATCH net-next 0/2] selftest: add tests for packet " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).