]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: Add MACsec VLAN propagation traffic test
authorCosmin Ratiu <cratiu@nvidia.com>
Wed, 8 Apr 2026 11:52:39 +0000 (14:52 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Apr 2026 02:38:42 +0000 (19:38 -0700)
commit26555673bc7888b80d5867618525eb04d4216a24
tree70f1b07bb6e9332925d7b1fc872d1da5be92be10
parentc89f194b6b8eddc905425a4ad702db803f50af47
selftests: Add MACsec VLAN propagation traffic test

Add VLAN filter propagation tests through offloaded MACsec devices via
actual traffic.

The tests create MACsec tunnels with matching SAs on both endpoints,
stack VLANs on top, and verify connectivity with ping. Covered:
- Offloaded MACsec with VLAN (filters propagate to HW)
- Software MACsec with VLAN (no HW filter propagation)
- Offload on/off toggle and verifying traffic still works

On netdevsim this makes use of the VLAN filter debugfs file to actually
validate that filters are applied/removed correctly.
On real hardware the traffic should validate actual VLAN filter
propagation.

Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/20260408115240.1636047-4-cratiu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/config
tools/testing/selftests/drivers/net/lib/py/env.py
tools/testing/selftests/drivers/net/macsec.py