Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Alexey Skidanov via B4 Relay
Sun, 15 Nov 2026 13:03
[PATCH net] selftests: drv-net: psp: skip unsupported versions in netkit data test
Author: Alexey Skidanov via B4 Relay
Date: Sun, 15 Nov 2026 13:03
Date: Sun, 15 Nov 2026 13:03
43 lines
12024 bytes
12024 bytes
From: Alexey Skidanov <alexeys@xsightlabs.com>
data_basic_send_netkit_psp_assoc() runs for PSP versions 0-3. The
non-netkit data path already skips versions the device does not
advertise in psp-versions-cap. The netkit path does not, so those
cases fail instead of skipping.
Version 0 stays mandatory. Skip an unadvertised version before opening
the PSP connection.
Fixes: 43cf629700fa ("selftests/net: psp: add dev-assoc data path test")
Signed-off-by: Alexey Skidanov <alexeys@xsightlabs.com>
Signed-off-by: Lior Yizchak <liory@xsightlabs.com>
---
tools/testing/selftests/drivers/net/psp.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/testing/selftests/drivers/net/psp.py b/tools/testing/selftests/drivers/net/psp.py
index c114d2245135..7c8fb2200b39 100755
--- a/tools/testing/selftests/drivers/net/psp.py
+++ b/tools/testing/selftests/drivers/net/psp.py
@@ -728,6 +728,12 @@ def _data_basic_send_netkit_psp_assoc(cfg, version, ipver):
"""
_assoc_nk_guest(cfg)
+ # Version 0 is required by spec, don't let it skip
+ if version:
+ name = cfg.pspnl.consts["version"].entries_by_val[version].name
+ if name not in cfg.psp_info['psp-versions-cap']:
+ raise KsftSkipEx("PSP version not supported", name)
+
# Enter guest namespace (netns) to run PSP test
with NetNSEnter(cfg.netns.name):
cfg.pspnl = PSPFamily()
---
base-commit: aa40afa831ebfe45e40a23721711059f2ac584d4
change-id: 20261115-main-0b37fbe5e1d2
Best regards,
--
Alexey Skidanov <alexeys@xsightlabs.com>
Re: [PATCH net] selftests: drv-net: psp: skip unsupported versions in netkit data test
Author: patchwork-bot+netdevbpf
Date: Wed, 18 Nov 2026 01:40
Date: Wed, 18 Nov 2026 01:40
24 lines
8705 bytes
8705 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 15 Nov 2026 15:03:29 +0200 you wrote:
> From: Alexey Skidanov <alexeys@xsightlabs.com>
>
> data_basic_send_netkit_psp_assoc() runs for PSP versions 0-3. The
> non-netkit data path already skips versions the device does not
> advertise in psp-versions-cap. The netkit path does not, so those
> cases fail instead of skipping.
>
> [...]
Here is the summary with links:
- [net] selftests: drv-net: psp: skip unsupported versions in netkit data test
https://git.kernel.org/netdev/net-next/c/d3826f58a1ed
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads