mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Hemendra M. Naik" <hemendranaik@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: davem@davemloft.net, edumazet@google.com, hemendranaik@gmail.com,
	horms@kernel.org, jhs@mojatatu.com, jiri@resnulli.us,
	kuba@kernel.org, linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org, netdev@vger.kernel.org,
	pabeni@redhat.com, shuah@kernel.org, tahiliani@nitk.edu.in,
	vishy0777@gmail.com
Subject: Re: [PATCH net-next v6 2/3] selftests: tc-testing: add fq_pie per-flow class stats test
Date: Wed, 23 Sep 2026 01:56:18 +0530	[thread overview]
Message-ID: <20260922202618.25970-1-hemendranaik@gmail.com> (raw)
In-Reply-To: <179002340887.2160803.8030592378545876774@kernel.org>

Thank you for the review. Replies are inline below.

> Can this case ever pass with a released iproute2? [...] Turning that
> blob into the literal tokens "prob", "delay" and "deficit" requires the
> companion iproute2 change [...] which is not merged. [...] Would it make
> sense to add a 'dependsOn' probe so the case skips when the userspace
> support is absent, or to assert only what current tc prints?
>
> A related question: the pattern hard-codes the exact label text and
> ordering of the not-yet-reviewed userspace formatter. If the iproute2
> side lands with different wording or field order [...] does this
> kernel selftest then break while the kernel itself is unchanged?

We'd like to keep the check as it is, without a dependsOn probe.
There are several cases that were written against, and still assume, 
newer tc wording with no dependsOn guard at all, e.g.:
  - tc-tests/qdiscs/fq.json (commit 3007d8712c9b, "adjust fq test to
    latest iproute2")
  - tc-tests/infra/qdiscs.json (commit 56acc7f51974, "Adapt test's
    output to HFSC's iproute2 printing changes")
  - tc-tests/actions/police.json (commit b7df2e7eaef7, "Adapt tc
    police action tests for Gb rounding changes")
  - tc-tests/actions/bpf.json (commit ac2944abe4d7, "Be compatible
    with newer tc output")

We're doing the same thing here: this test is paired with the
companion iproute2 patch, same as those cases were paired with the tc
versions they were written for.

> Can this case fail intermittently depending on the host environment?
> The assertion needs a backlogged flow at the instant the dump runs
> [...] its exit status is discarded with '|| true'. If ping is not
> installed, or the installed iputils rejects the fractional -i 0.001 /
> -W 0.01 arguments, the fq_pie queue stays empty [...] Would it be
> better to check the ping result, or to enqueue traffic in a way that
> does not depend on neighbour solicitation timing?

We'd like to keep the ping command as it is. The same pattern
('-W 0.01 -i 0.001 ... || true') is already used, unguarded, elsewhere
in this test suite - for example in case a4c3 in
tools/testing/selftests/tc-testing/tc-tests/infra/qdiscs.json. So this
isn't a new risk, it's existing practice..





  reply	other threads:[~2026-09-22 20:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-17 20:42 [PATCH net-next v6 0/3] net/sched: sch_fq_pie: add per-flow class statistics Hemendra M. Naik
2026-09-17 20:42 ` [PATCH net-next v6 1/3] net/sched: sch_fq_pie: add per-flow statistics via class ops Hemendra M. Naik
2026-09-21 20:43   ` netdev-bot+sashiko
2026-09-22 20:20     ` Hemendra M. Naik
2026-09-17 20:42 ` [PATCH net-next v6 2/3] selftests: tc-testing: add fq_pie per-flow class stats test Hemendra M. Naik
2026-09-21 20:43   ` netdev-bot+sashiko
2026-09-22 20:26     ` Hemendra M. Naik [this message]
2026-09-17 20:42 ` [PATCH net-next v6 3/3] net/sched: pie: correct tc_pie_xstats field documentation Hemendra M. Naik
2026-09-21 20:43   ` netdev-bot+sashiko
2026-09-22 20:30     ` Hemendra M. Naik
2026-09-18 22:59 ` [PATCH net-next v6 0/3] net/sched: sch_fq_pie: add per-flow class statistics Jakub Kicinski
2026-09-19  6:26   ` Hemendra M. Naik
2026-09-23  1:04     ` Jakub Kicinski
2026-09-23  4:01       ` Hemendra M. Naik

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=20260922202618.25970-1-hemendranaik@gmail.com \
    --to=hemendranaik@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --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-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    --cc=tahiliani@nitk.edu.in \
    --cc=vishy0777@gmail.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

all inboxes | Powered by JetHome®