]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: Migrate nsim-only MACsec tests to Python
authorCosmin Ratiu <cratiu@nvidia.com>
Wed, 8 Apr 2026 11:52:37 +0000 (14:52 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Apr 2026 02:38:41 +0000 (19:38 -0700)
commite1ab601bb23006e2710359c0fba27342f8887aec
treeb1a515b56d9cbef2cf69c96762e6155f9e67160a
parenteb216e422044f5523da038136ce0f2abcc6a75bc
selftests: Migrate nsim-only MACsec tests to Python

Move MACsec offload API and ethtool feature tests from
tools/testing/selftests/drivers/net/netdevsim/macsec-offload.sh to
tools/testing/selftests/drivers/net/macsec.py using the NetDrvEnv
framework so tests can run against both netdevsim (default) and real
hardware (NETIF=ethX). As some real hardware requires MACsec to use
encryption, add that to the tests.

Netdevsim-specific limit checks (max SecY, max RX SC) were moved into
separate test cases to avoid failures on real hardware.

Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/20260408115240.1636047-2-cratiu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/Makefile
tools/testing/selftests/drivers/net/config
tools/testing/selftests/drivers/net/macsec.py [new file with mode: 0755]
tools/testing/selftests/drivers/net/netdevsim/Makefile
tools/testing/selftests/drivers/net/netdevsim/macsec-offload.sh [deleted file]