Skip to content

net: macsec: remove the preparation phase when offloading operations

Antoine Tenart netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesApplied 7/7

Patches in v1 All 7 applied

#Subject and filesSizeRepliesApplied
1/7net: phy: mscc: macsec: make the prepare phase a noopdrivers/net/phy/mscc/mscc_macsec.c+55 -490 repliesApplied
2/7net: atlantic: macsec: make the prepare phase a noopdrivers/net/ethernet/aquantia/atlantic/aq_macsec.c+45 -450 repliesApplied
3/7net: macsec: remove the prepare phase when offloadingdrivers/net/macsec.c+0 -130 repliesApplied
4/7net: phy: mscc: macsec: remove checks on the prepare phasedrivers/net/phy/mscc/mscc_macsec.c+0 -410 repliesApplied
5/7net: atlantic: macsec: remove checks on the prepare phasedrivers/net/ethernet/aquantia/atlantic/aq_macsec.c+0 -570 repliesApplied
6/7net/mlx5e: macsec: remove checks on the prepare phasedrivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c+0 -360 repliesApplied
7/7net: macsec: remove the prepare flag from the MACsec offloading contextdrivers/net/macsec.c include/net/macsec.h+0 -30 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/7] net: macsec: remove the preparation phase when offloading operations

Hello,

It was reported[1] the 2-step phase offloading of MACsec operations did not fit well and device drivers were mostly ignoring the first phase (preparation). In addition the s/w fallback in case h/w rejected an operation, which could have taken advantage of this design, never was implemented and it's probably not a good idea anyway (at least unconditionnally). So let's remove this logic which only makes the code more complex for no advantage, before there are too many drivers providing MACsec offloading.

This series removes the first phase (preparation) of the MACsec h/w offloading. The modifications are split per-driver and in a way that makes bissection working with logical steps; but I can squash some patches if needed.

This was tested on the MSCC PHY but not on the Altantic nor mlx5e NICs.

Thanks,
Antoine

[1] https://lore.kernel.org/all/166322893264.61080.12133865599607623050@kwain/T/

Antoine Tenart (7):
net: phy: mscc: macsec: make the prepare phase a noop
net: atlantic: macsec: make the prepare phase a noop
net: macsec: remove the prepare phase when offloading
net: phy: mscc: macsec: remove checks on the prepare phase
net: atlantic: macsec: remove checks on the prepare phase net/mlx5e: macsec: remove checks on the prepare phase
net: macsec: remove the prepare flag from the MACsec offloading
context

 .../ethernet/aquantia/atlantic/aq_macsec.c    |  57 ---------
 .../mellanox/mlx5/core/en_accel/macsec.c      |  36 ------
 drivers/net/macsec.c                          |  14 ---
 drivers/net/phy/mscc/mscc_macsec.c            | 113 ++++++------------
 include/net/macsec.h                          |   2 -
 5 files changed, 39 insertions(+), 183 deletions(-)
Signature · 1 line
2.37.3