linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs
Xingquan Liu 54704b32b2 selftests/tc-testing: Add DualPI2 GSO backlog accounting test
Add a regression test for DualPI2 GSO backlog accounting when it is
used as a child qdisc of QFQ.

The test sends one UDP GSO datagram through a QFQ class with DualPI2 as
the leaf qdisc. DualPI2 splits the skb into two segments. After the
traffic drains, both QFQ and DualPI2 must report zero backlog and zero
qlen.

On kernels with the broken accounting, QFQ can keep a stale non-zero
qlen after all real packets have been dequeued.

Signed-off-by: Xingquan Liu <b1n@b1n.io>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Victor Nogueira <victor@mojatatu.com>
Link: https://patch.msgid.link/20260619151447.223640-2-b1n@b1n.io
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-06-21 15:16:03 -07:00
..
cake_mq.json selftests/tc-testing: add selftests for cake_mq qdisc 2026-01-13 11:54:30 +01:00
cake.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
cbs.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
choke.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
codel.json selftests/tc-testing: Add qdisc limit trimming tests 2025-05-09 12:34:38 +01:00
drr.json selftests/tc-testing: Add a test case for DRR class with TC_H_ROOT 2025-03-12 12:52:14 -07:00
dualpi2.json selftests/tc-testing: Add DualPI2 GSO backlog accounting test 2026-06-21 15:16:03 -07:00
etf.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
ets.json tc-testing: add a test case for ETS offload 2026-03-20 20:13:14 -07:00
fifo.json selftests/tc-testing: Add a test case for pfifo_head_drop qdisc when limit==0 2025-02-05 18:14:46 -08:00
fq_codel.json selftests/tc-testing: Add qdisc limit trimming tests 2025-05-09 12:34:38 +01:00
fq_pie.json selftests/tc-testing: Add qdisc limit trimming tests 2025-05-09 12:34:38 +01:00
fq.json selftests/tc-testing: Add qdisc limit trimming tests 2025-05-09 12:34:38 +01:00
gred.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
hfsc.json selftests: tc-testing: add test for 'rt' upgrade on hfsc 2023-10-21 11:46:41 +01:00
hhf.json selftests/tc-testing: Add qdisc limit trimming tests 2025-05-09 12:34:38 +01:00
htb.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
ingress.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
mq.json selftests/tc-testing: replace mq with invalid parent ID 2023-06-01 21:40:28 -07:00
mqprio.json selftests/tc-testing: add selftests for mqprio qdisc 2022-09-22 17:34:12 -07:00
multiq.json selftests/tc-testing: add selftests for multiq qdisc 2022-09-22 17:34:12 -07:00
netem.json selftests/tc-testing: Add netem test case exercising loops 2026-05-28 12:26:37 +02:00
pfifo_fast.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
pie.json selftests/tc-testing: Add qdisc limit trimming tests 2025-05-09 12:34:38 +01:00
plug.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
prio.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
qfq.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
red.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
sfb.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
sfq.json selftests/tc-testing: sfq: check perturb timer values 2025-06-16 15:02:03 -07:00
skbprio.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
taprio.json selftests/tc-testing: add taprio test for class dump after child delete 2026-04-27 18:41:36 -07:00
tbf.json selftests/tc-testing: update test definitions for local resources 2023-09-28 09:51:07 +02:00
teql.json selftests/tc-testing: Try to add teql as a child qdisc 2026-01-19 12:06:42 -08:00