Patch "selftests/tc-testing: Fix Error: Specified qdisc kind is unknown." has been added to the 6.3-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests/tc-testing: Fix Error: Specified qdisc kind is unknown.

to the 6.3-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-tc-testing-fix-error-specified-qdisc-kind-.patch
and it can be found in the queue-6.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ec81cd50e7b1846dbc74d73dd3a6f7381ec2d4d2
Author: Vlad Buslov <vladbu@xxxxxxxxxx>
Date:   Mon Jun 12 09:57:09 2023 +0200

    selftests/tc-testing: Fix Error: Specified qdisc kind is unknown.
    
    [ Upstream commit aef6e908b54200d04f2d77dab31509fcff2e60ae ]
    
    All TEQL tests assume that sch_teql module is loaded. Load module in tdc.sh
    before running qdisc tests.
    
    Fixes following example error when running tests via tdc.sh for all TEQL
    tests:
    
     # $ sudo ./tdc.py -d eth2 -e 84a0
     #  -- ns/SubPlugin.__init__
     # Test 84a0: Create TEQL with default setting
     # exit: 2
     # exit: 0
     # Error: Specified qdisc kind is unknown.
     #
     # -----> teardown stage *** Could not execute: "$TC qdisc del dev $DUMMY handle 1: root"
     #
     # -----> teardown stage *** Error message: "Error: Invalid handle.
     # "
     # returncode 2; expected [0]
     #
     # -----> teardown stage *** Aborting test run.
     #
     # <_io.BufferedReader name=3> *** stdout ***
     #
     # <_io.BufferedReader name=5> *** stderr ***
     # "-----> teardown stage" did not complete successfully
     # Exception <class '__main__.PluginMgrTestFail'> ('teardown', 'Error: Specified qdisc kind is unknown.\n', '"-----> teardown stage" did not complete successfully') (caught in test_runner, running test 2 84a0 Create TEQL with default setting stage teardown)
     # ---------------
     # traceback
     #   File "/images/src/linux/tools/testing/selftests/tc-testing/./tdc.py", line 495, in test_runner
     #     res = run_one_test(pm, args, index, tidx)
     #   File "/images/src/linux/tools/testing/selftests/tc-testing/./tdc.py", line 434, in run_one_test
     #     prepare_env(args, pm, 'teardown', '-----> teardown stage', tidx['teardown'], procout)
     #   File "/images/src/linux/tools/testing/selftests/tc-testing/./tdc.py", line 245, in prepare_env
     #     raise PluginMgrTestFail(
     # ---------------
     # accumulated output for this test:
     # Error: Specified qdisc kind is unknown.
     #
     # ---------------
     #
     # All test results:
     #
     # 1..1
     # ok 1 84a0 - Create TEQL with default setting # skipped - "-----> teardown stage" did not complete successfully
    
    Fixes: cc62fbe114c9 ("selftests/tc-testing: add selftests for teql qdisc")
    Signed-off-by: Vlad Buslov <vladbu@xxxxxxxxxx>
    Reviewed-by: Victor Nogueira <victor@xxxxxxxxxxxx>
    Reviewed-by: Pedro Tammela <pctammela@xxxxxxxxxxxx>
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/tc-testing/tdc.sh b/tools/testing/selftests/tc-testing/tdc.sh
index afb0cd86fa3df..eb357bd7923c0 100755
--- a/tools/testing/selftests/tc-testing/tdc.sh
+++ b/tools/testing/selftests/tc-testing/tdc.sh
@@ -2,5 +2,6 @@
 # SPDX-License-Identifier: GPL-2.0
 
 modprobe netdevsim
+modprobe sch_teql
 ./tdc.py -c actions --nobuildebpf
 ./tdc.py -c qdisc



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux