Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: willemdebruijn.kernel@gmail.com
Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org,
	edumazet@google.com, pabeni@redhat.com, horms@kernel.org,
	andrew+netdev@lunn.ch, willemb@google.com
Subject: Re: [PATCH net-next v8 5/6] selftests: drv-net: in so_txtime tell apart sw from hw pacing
Date: Fri, 04 Sep 2026 00:19:45 +0000	[thread overview]
Message-ID: <178848118595.4131868.12345570677231457601@kernel.org> (raw)
In-Reply-To: <20260902181747.2483351-6-willemdebruijn.kernel@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider:

Critical: 0 · High: 0 · Medium: 0 · Low: 1

- [Low] Claim: the new '-H' mode (cfg_verify_hw_offload) added to
  tools/testing/selftests/drivers/net/so_txtime.c is dead code because…

--

selftests: drv-net: in so_txtime tell apart sw from hw pacing

This adds an optional '-H' mode to so_txtime.c that enables
SO_TIMESTAMPING with SOF_TIMESTAMPING_TX_SOFTWARE, measures the software
transmit delay reported on the error queue, and flags software pacing when
the delay is too large or timestamps are missing. It also extends the error
queue receive deadline by cfg_variance_us and reorders the getopt string
and usage text alphabetically.

No regressions to report on this one.

The one thing that came up during review was whether the new '-H' path is
reachable at this point in the series:

> diff --git a/tools/testing/selftests/drivers/net/so_txtime.c b/tools/testing/selftests/drivers/net/so_txtime.c
> index f6f3253ed174..9ebe9f91227c 100644
> --- a/tools/testing/selftests/drivers/net/so_txtime.c
> +++ b/tools/testing/selftests/drivers/net/so_txtime.c

[ ... ]

> @@ -251,12 +286,20 @@ static void recv_errqueue_msgs(int fdt)
> +	if (cfg_verify_hw_offload && num_ts != cfg_num_pkt) {
> +		fprintf(stderr, "missing timestamps: expected %d, got %d\n",
> +			cfg_num_pkt, num_ts);
> +		if (!cfg_machine_slow)
> +			errors++;
> +	}
>  }

[ ... ]

> @@ -488,21 +548,24 @@ static void parse_opts(int argc, char **argv)
> +		case 'H':
> +			cfg_verify_hw_offload = true;
> +			break;

Nothing in the tree passes '-H' as of this commit, so setsockopt_txtimestamping(),
do_recv_errqueue_timestamping() and the new "missing timestamps" check in
recv_errqueue_msgs() are not exercised yet. That is resolved later in the same
series: the following patch adds test_so_txtime_fq_mono_hw() and
test_so_txtime_pfifofast_mono_hw() to so_txtime.py, both of which pass '-H' in
args_tx and are registered in main()'s ksft_run() list, and args_tx is placed
before the payload operand in cmd_tx so getopt() picks the flag up. So no
action needed here.

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260902181747.2483351-1-willemdebruijn.kernel%40gmail.com

  reply	other threads:[~2026-09-04  0:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02 18:17 [PATCH net-next v8 0/6] hardware pacing offload Willem de Bruijn
2026-09-02 18:17 ` [PATCH net-next v8 1/6] net: rtnetlink: add pacing_offload_horizon attribute to net_device Willem de Bruijn
2026-09-04  0:19   ` netdev-bot+sashiko
2026-09-02 18:17 ` [PATCH net-next v8 2/6] net_sched: sch_fq: clear past skb->tstamp if offloading pacing Willem de Bruijn
2026-09-02 18:17 ` [PATCH net-next v8 3/6] idpf: support pacing offload Willem de Bruijn
2026-09-04  0:19   ` netdev-bot+sashiko
2026-09-02 18:17 ` [PATCH net-next v8 4/6] selftests: drv-net: refactor so_txtime errqueue handling Willem de Bruijn
2026-09-04  0:19   ` netdev-bot+sashiko
2026-09-02 18:17 ` [PATCH net-next v8 5/6] selftests: drv-net: in so_txtime tell apart sw from hw pacing Willem de Bruijn
2026-09-04  0:19   ` netdev-bot+sashiko [this message]
2026-09-02 18:17 ` [PATCH net-next v8 6/6] selftests: drv-net: extend so_txtime with hw offload Willem de Bruijn
2026-09-04  0:19   ` netdev-bot+sashiko

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=178848118595.4131868.12345570677231457601@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=willemb@google.com \
    --cc=willemdebruijn.kernel@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