macsec: Add support for VLAN filtering in offload mode
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
V4 from the cover letter
- Migrated nsim-only macsec tests to Python, usable against real hw.
- Ran these tests against both nsim and mlx5 devs.
- Gave up on nsim patches since the tests no longer use them.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | selftests: Migrate nsim-only MACsec tests to Pythontools/ tools/ tools/ +2 more | +128 | 0 replies | |
| 2/3 | selftests: Add MACsec VLAN propagation traffic testtools/ tools/ | +127 | 0 replies | |
| 3/3 | macsec: Support VLAN-filtering lower devicesdrivers/ | +39 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] macsec: Add support for VLAN filtering in offload mode
This short series adds support for VLANs in macsec devices when offload mode is enabled. This allows VLAN netdevs on top of macsec netdevs to function, which accidentally used to be the case in the past, but was broken. This series adds back proper support.
As part of this, the existing nsim-only macsec offload tests were translated to Python so they can run against real HW and new traffic-based tests were added for VLAN filter propagation, since there's currently no uAPI to check VLAN filters.
V4:
- Migrated nsim-only macsec tests to Python, usable against real hw.
- Ran these tests against both nsim and mlx5 devs.
- Gave up on nsim patches since the tests no longer use them.
V3: https://lore.kernel.org/netdev/[email protected]/t/#u
- Moved back to net.
- Added proper rollback support for VLAN filters in case of failure.
- Added VLAN as a requirement for the new macsec tests.
V2: https://lore.kernel.org/netdev/[email protected]/
- Sent to net-next instead of net because of apparent complexity.
- Changed VLAN filtering to only function in offload mode.
- Added tests.
V1: https://lore.kernel.org/netdev/[email protected]/
Cosmin Ratiu (3):
selftests: Migrate nsim-only MACsec tests to Python
selftests: Add MACsec VLAN propagation traffic test
macsec: Support VLAN-filtering lower devices
drivers/net/macsec.c | 44 +++++- tools/testing/selftests/drivers/net/Makefile | 6 + .../selftests/drivers/net/macsec_api.py | 103 ++++++++++++++ .../selftests/drivers/net/macsec_lib.py | 20 +++ .../selftests/drivers/net/macsec_traffic.py | 126 ++++++++++++++++++ .../selftests/drivers/net/netdevsim/Makefile | 1 - .../drivers/net/netdevsim/macsec-offload.sh | 117 ---------------- 7 files changed, 294 insertions(+), 123 deletions(-) create mode 100755 tools/testing/selftests/drivers/net/macsec_api.py create mode 100644 tools/testing/selftests/drivers/net/macsec_lib.py create mode 100755 tools/testing/selftests/drivers/net/macsec_traffic.py delete mode 100755 tools/testing/selftests/drivers/net/netdevsim/macsec-offload.sh
Signature · 1 line
2.43.0