From: Hangbin Liu <hangbin.liu@linux.dev>
To: Ivan Vecera <ivecera@redhat.com>
Cc: netdev@vger.kernel.org, Jamal Hadi Salim <jhs@mojatatu.com>,
Jiri Pirko <jiri@resnulli.us>, Shuah Khan <shuah@kernel.org>,
Victor Nogueira <victor@mojatatu.com>,
Jakub Kicinski <kuba@kernel.org>,
"open list:KERNEL SELFTEST FRAMEWORK"
<linux-kselftest@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net] selftests: tc-testing: use $IP in hfsc test 8c39 setup
Date: Fri, 16 Oct 2026 10:43:35 +0800 [thread overview]
Message-ID: <atGPVzNYUlKY0ekD@fedora> (raw)
In-Reply-To: <20261014121414.2373985-1-ivecera@redhat.com>
On Wed, Oct 14, 2026 at 02:14:12PM +0200, Ivan Vecera wrote:
> Test 8c39 brings up lo with a bare "ip" command. nsPlugin runs it as
> "$IP netns exec <ns> ip ...", and as tdc runs commands with an empty
> environment, "ip netns exec" searches only the default execvp() path
> (/bin:/usr/bin). On systems that install ip only in /sbin, like Fedora,
> the setup fails:
>
> # ./tdc.py -e 8c39
> Test 8c39: HFSC classify walk still reaches leaf after lateral drift
> -----> prepare stage *** Could not execute: "ip link set lo up"
> -----> prepare stage *** Error message: "exec of "ip" failed: No such file or directory
>
> Use $IP like all other tdc tests do.
>
> Fixes: 1e24c4f2ee44 ("selftests: tc-testing: add a lateral-drift hfsc classify-walk test")
> Signed-off-by: Ivan Vecera <ivecera@redhat.com>
> ---
> tools/testing/selftests/tc-testing/tc-tests/qdiscs/hfsc.json | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/hfsc.json b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/hfsc.json
> index 4f6bbb8b57f9..557730eef055 100644
> --- a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/hfsc.json
> +++ b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/hfsc.json
> @@ -181,7 +181,7 @@
> "requires": "nsPlugin"
> },
> "setup": [
> - "ip link set lo up",
> + "$IP link set lo up",
> "$TC qdisc add dev lo handle 1: root hfsc default 30",
> "$TC class add dev lo parent 1: classid 1:1 hfsc rt m2 100kbit",
> "$TC class add dev lo parent 1:1 classid 1:10 hfsc rt m2 50kbit",
> --
> 2.56.0
>
Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn>
prev parent reply other threads:[~2026-10-16 2:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 12:14 [PATCH net] selftests: tc-testing: use $IP in hfsc test 8c39 setup Ivan Vecera
2026-10-14 21:24 ` Victor Nogueira
2026-10-16 2:43 ` Hangbin Liu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=atGPVzNYUlKY0ekD@fedora \
--to=hangbin.liu@linux.dev \
--cc=ivecera@redhat.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=victor@mojatatu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox