]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: sched: u32: Add test case for systematic hnode IDR leaks
authorAlexandre Ferrieux <alexandre.ferrieux@gmail.com>
Wed, 13 Nov 2024 10:04:28 +0000 (11:04 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 14 Nov 2024 10:39:17 +0000 (11:39 +0100)
commitca34aceb322bfcd6ab498884f1805ee12f983259
tree83f14ce4aa250f4bc827aea348bfdac4948191b7
parentf8d670b1ae90cb1c5a18a4698c264e96dedc762c
net: sched: u32: Add test case for systematic hnode IDR leaks

Add a tdc test case to exercise the just-fixed systematic leak of
IDR entries in u32 hnode disposal. Given the IDR in question is
confined to the range [1..0x7FF], it is sufficient to create/delete
the same filter 2048 times to fill it up and get a nonzero exit
status from "tc filter add".

Signed-off-by: Alexandre Ferrieux <alexandre.ferrieux@orange.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Victor Nogueira <victor@mojatatu.com>
Link: https://patch.msgid.link/20241113100428.360460-1-alexandre.ferrieux@orange.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/tc-testing/tc-tests/filters/u32.json