Article View: linux.kernel.netdev
Article #13366Re: [PATCH net-next 3/3] selftests: drv-net: hds: restore HDS settings in ioctl_set_xdp
From: netdev-bot+sashiko
Date: Mon, 09 Nov 2026 18:14
Date: Mon, 09 Nov 2026 18:14
103 lines
11845 bytes
11845 bytes
Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 1
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The fix is incomplete: two sibling tests in
tools/testing/selftests/drivers/net/hds.py still change tcp-data-split…
- [Low] The patch has no Fixes: tag.
--
selftests: drv-net: hds: restore HDS settings in ioctl_set_xdp
This patch makes ioctl_set_xdp() in the drv-net hds.py selftest call
_defer_reset_hds() before it sets tcp-data-split to "unknown". The
original HDS configuration is then restored when the test finishes, the
same way set_xdp() already does it.
> diff --git a/tools/testing/selftests/drivers/net/hds.py b/tools/testing/selftests/drivers/net/hds.py
> index 7f052c3196039..a1ea195743b56 100755
> --- a/tools/testing/selftests/drivers/net/hds.py
> +++ b/tools/testing/selftests/drivers/net/hds.py
> @@ -254,6 +254,7 @@ def ioctl_set_xdp(cfg, netnl) -> None:
> """
> mode = _get_hds_mode(cfg, netnl)
> if mode == 'enabled':
> + _defer_reset_hds(cfg, netnl)
> netnl.rings_set({'header': {'dev-index': cfg.ifindex},
> 'tcp-data-split': 'unknown'})
[Severity: Medium]
Is this fix complete? Two sibling tests in hds.py still change
tcp-data-split, and they defer only a fixed reset to "unknown" instead of
going through _defer_reset_hds():
tools/testing/selftests/drivers/net/hds.py:enabled_set_xdp() {
...
netnl.rings_set({'header': {'dev-index': cfg.ifindex},
'tcp-data-split': 'enabled'})
defer(netnl.rings_set, {'header': {'dev-index': cfg.ifindex},
'tcp-data-split': 'unknown'})
...
}
ioctl_enabled_set_xdp() uses the same pattern.
When "unknown" does not bring back the saved value, _hds_reset() falls
back to setting that value explicitly:
if cur.get('tcp-data-split') == rings['tcp-data-split']:
del arg['tcp-data-split']
else:
# Try the explicit setting
arg['tcp-data-split'] = rings['tcp-data-split']
The fixed resets have no such fallback. If the operator set "enabled" or
"disabled" explicitly, and the driver reports a different value under
"unknown", that setting is lost.
Here is the test order in main():
set_xdp,
enabled_set_xdp,
ioctl,
ioctl_set_xdp,
ioctl_enabled_set_xdp],
In a default full run, enabled_set_xdp() has already left the device at
"unknown" before ioctl_set_xdp() starts. The new _defer_reset_hds() call
therefore only saves that already-reset state. ioctl_enabled_set_xdp()
runs last and leaves the device at "unknown" again.
Doesn't that mean this change only has a visible effect when
ioctl_set_xdp is run by itself with -t?
The previous patch in this series, "selftests: drv-net: hds: perturb
settings via ioctl in ioctl_enabled_set_xdp", edited
ioctl_enabled_set_xdp() but kept its fixed "unknown" reset.
Could enabled_set_xdp() and ioctl_enabled_set_xdp() also call
_defer_reset_hds(cfg, netnl) before they set 'enabled'?
[Severity: Low]
Should this patch carry a Fixes: tag? Commit ee3ae27721fb
("selftests: drv-net: hds: restore hds settings") added _defer_reset_hds()
to set_xdp() and the set_hds_* tests, but not to ioctl_set_xdp().
Something like:
Fixes: ee3ae27721fb ("selftests: drv-net: hds: restore hds settings")
The test itself was added by 29b036be1b0b ("selftests: drv-net: test XDP,
HDS auto and the ioctl path"), which would also be a reasonable target.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261106031208.465456-1-dimitri.daskalakis1%40gmail.com
Technical Details
Message-ID:
<179424805404.994134.17832090759573772957@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359505-linux-kernel-netdev=dewy.ruReferences:
<20261106031208.465456-4-dimitri.daskalakis1@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359505-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 3/3] selftests: drv-net: hds: restore HDS settings in ioctl_set_xdp Date: Mon, 09 Nov 2026 18:14:14 +0000 Organization: Usenet Network Message-ID: <179424805404.994134.17832090759573772957@kernel.org> References: <20261106031208.465456-4-dimitri.daskalakis1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="420346"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Abq4lsn3cbrbkyWlOR55YlpmDs4= sha256:3vNKNaJWXO6PnbZrzBwbuxExlM85/q7mW/6okd8XB48= sha1:Q1NFHN6iqjLrYJTcHv/aHnpllQo= sha256:Ox+Y8AF1juIhVwBEcG9YClbjg2kzcbWDgbLuCdzeG70= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 9443E1138CE; Mon, 9 Nov 2026 21:18:15 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aoghOPoQbQOa; Mon, 9 Nov 2026 21:18:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-359505-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id A06F21138C2; Mon, 9 Nov 2026 21:18:01 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id E01BE30EFA; Mon, 9 Nov 2026 18:14:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794248056; b=Yj70JmJLSNItxm06Q3eJOnL6soM00C2jTz+Mk8lpGjiWEFsLZPQmscRy+L0tAb3b4W9D JWrgRagMWMgAhzMdGn3YU+v8zwRcPmt4TO1Pxw/MrRDIGBOsYMJUJZmF9ndbtWWojH28f 6tfPiKQWIMxWETfANnK0gxUgJ5HYf8ICO+y01M/GRDFms3oNYivFLzfBi+zdSbLpizDru JJUP7oXsBBf26+ilqskqb4j8urkimnELwf2jICLKemA49cQaQowYpMnbTijF8TeygHrj/ TKb/q3oDYl5eL8umomuwDO/Wdn412YDTeifqOJkynI4gNIRljF1VfM0GfmvS+SdYODg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794248056; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=q0MU/i8tHwiM3gpQOp/NrbmNfoXZgmpbodb2O/Vu/ig=; b=LETE6g97GEYnXpMz7r62qMSdze6xDS4NbnZ+i23WoelDhq7z3fGBCNLXT8+OEjtJtYtx 5Cv+KuPx9Gx8XQhCoP0Gq9PBDGBwvqZJACrunJpkJpACtWG8gF5DBuLOaPKOEJXT14oJr EXBoiBfsZ3QAnOLEHaQEM+5mX43eLBLXFVwd+OctTL2R/PKU+0xxnxR0ym5aF51K3Ozou GYUvEVwzzr6JMzDYW4xQde18PQDLwHirYYxmPTydLnroBsV8jUhG/SyaCgLHdeKbdVL8K rN0vKV5s+bqOUrRI2rC1y8sJto9HB/1oQm3A8ydlIa8usx9f/uA3amJMOtiy9o2ZLJA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=L1HCDSQd; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D3AA606A33D; Mon, 9 Nov 2026 18:14:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=L1HCDSQd X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794248055; b=Dfwwl2yZ+1Fww1yfQQz6mf1kZiKx9Lw/xV1r2v8tvzOlId1l6oIymPDQaQprptp9hfbf Igm5WwINFT1mE6h1T+k3tksVzoSKu1PiNB3ZUPVIQGrD2knQIP2eMDJT8lMJFh0CRSKez jMt2rkrjUjw3HgE3vnqQZ8r7cpaPiTeYuc3v2GsaJGTc7ZvXKbkCh769J4rfyCgVh/bkM xf9iXo4XZApcTp47PWJrPbWSgmXGP5klX8CJLa197q3jd7Rpe5ey3u4q7QrVaJrEyLytq T4gYtRsc5yuyrsLAIR31u4u7r0qp2RE7k3Zycg+PqCvyJb7eQmC6aYf4gQR32B/288w== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794248055; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=q0MU/i8tHwiM3gpQOp/NrbmNfoXZgmpbodb2O/Vu/ig=; b=0dAFWyGaHjU87jDHGw/NU9lQK/h0ljA5LhJCR1afeQ7troH3vfZV2NVB2cq5PqOpET07 +OW+q84FP7wZSq1oySwIdv8DyeesjMQsxKfrSu/l95gbbntIRdzsSHl7xHbV3twK9y1kP qkDr4w/PJxA2U0/z+33FL+mXzmrI6dmk9naHtp/8rVCg7j7Gqm9FdgCL7yjUFQd5kylMh GLR/wQ3bJapDHass9UeFQKzt88z2Bv4qlNHW4S/yptaDRXxnlX/A2Un1EcWEocJ3K59lg qfpnAqEgdOyrkRbztFKBGTZmqUyWaZjwItDWGNUcjasAGUTFNNql2HkByu0AtrgmrQw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=L1HCDSQd; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F4D3606A330; Mon, 9 Nov 2026 18:14:15 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AFF91F008A2; Mon, 9 Nov 2026 18:14:14 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794248055; bh=q0MU/i8tHwiM3gpQOp/NrbmNfoXZgmpbodb2O/Vu/ig=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=L1HCDSQdGhj2Bf1cPDdRsDoRgjGXD6ys5mcmp86e7pZxPId+nzY7DSi4GTtF9yFTS vy8oNWFYfWcXmAjHshX3fdmBFimqcq1v3C+ZECutpUwCU38gbi2iQQ3hG1WnTCmcK0 Styfv0rex6Y2rATyDQT9tpSXAPV9VAwhInyeENbDjexV9VofSX020Vhy6MxAnuBw61 S8D46C8X5To/wnpwI/9ABDnV9Etod8wS73QxPtWgZkBPq/ZY9duLzBk4Z4gY4FybGy rVxBtQ7zCTPOym9J0UgS13LCrMMeEse2hUgEju+vUZQOryVdP7f2oJyHrGOvZGKKzE 6WJPNbOLtA1Gw== X-Cc: davem@davemloft.net, andrew+netdev@lunn.ch, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, shuah@kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org X-In-Reply-To: <20261106031208.465456-4-dimitri.daskalakis1@gmail.com> X-sashiko-severity: Medium X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list