]> git.dujemihanovic.xyz Git - linux.git/commitdiff
selftests/tc-testing: Fix cannot create /sys/bus/netdevsim/new_device: Directory...
authorLi Zhijian <zhijianx.li@intel.com>
Fri, 3 Dec 2021 02:53:23 +0000 (10:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Dec 2021 11:46:41 +0000 (11:46 +0000)
Install netdevsim to provide /sys/bus/netdevsim/new_device interface.

It helps to fix:
 # ok 97 9a7d - Change ETS strict band without quantum # skipped - skipped - previous setup failed 11 ce7d
 #
 #
 # -----> prepare stage *** Could not execute: "echo "1 1 4" > /sys/bus/netdevsim/new_device"
 #
 # -----> prepare stage *** Error message: "/bin/sh: 1: cannot create /sys/bus/netdevsim/new_device: Directory nonexistent
 # "
 #
 # -----> prepare stage *** Aborting test run.
 #
 #
 # <_io.BufferedReader name=5> *** stdout ***
 #

Signed-off-by: Li Zhijian <zhijianx.li@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/config
tools/testing/selftests/tc-testing/tdc.sh

index b1cd7efa451279ca5bfe0a23842680cc04b594d2..a3239d5e40c79e9683b0626f7666d25e0f169260 100644 (file)
@@ -61,6 +61,7 @@ CONFIG_NET_SCH_FIFO=y
 CONFIG_NET_SCH_ETS=m
 CONFIG_NET_SCH_RED=m
 CONFIG_NET_SCH_FQ_PIE=m
+CONFIG_NETDEVSIM=m
 
 #
 ## Network testing
index 7fe38c76db4473db3a85d3a3750c8d852a3ca284..afb0cd86fa3df17777d54e19328da3197b7ae9a9 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 
+modprobe netdevsim
 ./tdc.py -c actions --nobuildebpf
 ./tdc.py -c qdisc