Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: tc-testing: add one test for flushing explicitly created chain

Add the test for additional reference to chains that are explicitly
created by RTM_NEWCHAIN message.

The test result:

1..1
ok 1 c2b4 - soft lockup alarm will be not generated after delete the prio 0
filter of the chain

This is a follow up to commit c9a82bec02c3 ("net/sched: cls_api: Fix lockup on flushing explicitly created chain").

Signed-off-by: Mingshuai Ren <renmingshuai@huawei.com>
Acked-by: Pedro Tammela <pctammela@mojatatu.com>
Acked-by: Victor Nogueira <victor@mojatatu.com>
Link: https://lore.kernel.org/r/20230620014939.2034054-1-renmingshuai@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

renmingshuai and committed by
Jakub Kicinski
ca4fa874 1ca09f57

+25
+25
tools/testing/selftests/tc-testing/tc-tests/infra/filter.json
··· 1 + [ 2 + { 3 + "id": "c2b4", 4 + "name": "soft lockup alarm will be not generated after delete the prio 0 filter of the chain", 5 + "category": [ 6 + "filter", 7 + "chain" 8 + ], 9 + "setup": [ 10 + "$IP link add dev $DUMMY type dummy || /bin/true", 11 + "$TC qdisc add dev $DUMMY root handle 1: htb default 1", 12 + "$TC chain add dev $DUMMY", 13 + "$TC filter del dev $DUMMY chain 0 parent 1: prio 0" 14 + ], 15 + "cmdUnderTest": "$TC filter add dev $DUMMY chain 0 parent 1:", 16 + "expExitCode": "2", 17 + "verifyCmd": "$TC chain ls dev $DUMMY", 18 + "matchPattern": "chain parent 1: chain 0", 19 + "matchCount": "1", 20 + "teardown": [ 21 + "$TC qdisc del dev $DUMMY root handle 1: htb default 1", 22 + "$IP link del dev $DUMMY type dummy" 23 + ] 24 + } 25 + ]