]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/tc-testing: Add test for HFSC queue emptying during peek operation
authorCong Wang <xiyou.wangcong@gmail.com>
Thu, 17 Apr 2025 18:47:32 +0000 (11:47 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Apr 2025 00:16:50 +0000 (17:16 -0700)
commit7629d1a04ad2e76709401b655263040486972c2c
tree06c3b2a2a8b47f3ce960a58aba4efe2f4452a81a
parent6ccbda44e2cc3d26fd22af54c650d6d5d801addf
selftests/tc-testing: Add test for HFSC queue emptying during peek operation

Add a selftest to exercise the condition where qdisc implementations
like netem or codel might empty the queue during a peek operation.
This tests the defensive code path in HFSC that checks the queue length
again after peeking to handle this case.

Based on the reproducer from Gerrard, improved by Jamal.

Reported-by: Gerrard Tai <gerrard.tai@starlabs.sg>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Tested-by: Victor Nogueira <victor@mojatatu.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://patch.msgid.link/20250417184732.943057-4-xiyou.wangcong@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/tc-testing/tc-tests/infra/qdiscs.json