Skip to contentSkip to conversation

selftests: drv-net: psp: skip unsupported versions in netkit data test

PATCH Applied Alexey Skidanov 3 participants 3 messages Nov 15 – Nov 18

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: drv-net: psp: skip unsupported versions in netkit data test

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")
---
 tools/testing/selftests/drivers/net/psp.py | 6 ++++++
 1 file changed, 6 insertions(+)
tools/testing/selftests/drivers/net/psp.py +6 -0
index c114d2245135..7c8fb2200b39 100755
@@ -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,

Signature · 1 line
Alexey Skidanov <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · On Sun, Nov 15, 2026 at 5:03 AM Alexey Skidanov via B4 Relay…

From: Alexey Skidanov <[email protected]>

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.

Quoted 7 lines

Version 0 stays mandatory. Skip an unadvertised version before opening the PSP connection.

Fixes 43cf629700fa ("selftests/net: psp: add dev-assoc data path test")

---

Quoted 30 lines
 tools/testing/selftests/drivers/net/psp.py | 6 ++++++
 1 file changed, 6 insertions(+)
tools/testing/selftests/drivers/net/psp.py +6 -1
index c114d2245135..7c8fb2200b39 100755
@@ -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 <[email protected]>

#2 lore raw
In reply to Alexey Skidanov
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Sun, 15 Nov 2026 15:03:29 +0200 you wrote:

From: Alexey Skidanov <[email protected]>

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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html