Skip to content

Commit 774a2ae

Browse files
dcarattikuba-moo
authored andcommitted
selftests: net/forwarding: test purge of active DWRR classes
Extend sch_ets.sh to add a reproducer for problematic list deletions when active DWRR class are purged by ets_qdisc_change() [1] [2]. [1] https://lore.kernel.org/netdev/e08c7f4a6882f260011909a868311c6e9b54f3e4.1639153474.git.dcaratti@redhat.com/ [2] https://lore.kernel.org/netdev/f3b9bacc73145f265c19ab80785933da5b7cbdec.1754581577.git.dcaratti@redhat.com/ Suggested-by: Victor Nogueira <[email protected]> Signed-off-by: Davide Caratti <[email protected]> Acked-by: Victor Nogueira <[email protected]> Link: https://patch.msgid.link/489497cb781af7389011ca1591fb702a7391f5e7.1755016081.git.dcaratti@redhat.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 87c6efc commit 774a2ae

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tools/testing/selftests/net/forwarding/sch_ets.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ALL_TESTS="
1111
ets_test_strict
1212
ets_test_mixed
1313
ets_test_dwrr
14+
ets_test_plug
1415
classifier_mode
1516
ets_test_strict
1617
ets_test_mixed

tools/testing/selftests/net/forwarding/sch_ets_tests.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,11 @@ ets_test_dwrr()
224224
ets_set_dwrr_two_bands
225225
xfail_on_slow ets_dwrr_test_01
226226
}
227+
228+
ets_test_plug()
229+
{
230+
ets_change_qdisc $put 2 "3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3" "1514 1514"
231+
tc qdisc add dev $put handle 20: parent 10:4 plug
232+
start_traffic_pktsize 100 $h1.10 192.0.2.1 192.0.2.2 00:c1:a0:c1:a0:00 "-c 1"
233+
ets_qdisc_setup $put 2
234+
}

0 commit comments

Comments
 (0)