On Thu, Nov 16, 2023 at 9:34 PM Willem de Bruijn willemdebruijn.kernel@gmail.com wrote:
From: Willem de Bruijn willemb@google.com
Commit 29f834aa326e ("net_sched: sch_fq: add 3 bands and WRR scheduling") introduces multiple traffic bands, and per-band maximum packet count.
Per-band limits ensures that packets in one class cannot fill the entire qdisc and so cause DoS to the traffic in the other classes.
Verify this behavior:
- set the limit to 10 per band
- send 20 pkts on band A: verify that 10 are queued, 10 dropped
- send 20 pkts on band A: verify that 0 are queued, 20 dropped
- send 20 pkts on band B: verify that 10 are queued, 10 dropped
...
Signed-off-by: Willem de Bruijn willemb@google.com
Thanks Willem for upstreaming this test.
Reviewed-by: Eric Dumazet edumazet@google.com