Re: [PATCH net v7 0/4] Add update_pn flag

From: Sabrina Dubroca
Date: Tue Oct 10 2023 - 04:09:46 EST


2023-10-05, 21:06:32 +0300, Radu Pirea (NXP OSS) wrote:
> Patches extracted from
> https://lore.kernel.org/all/20230928084430.1882670-1-radu-nicolae.pirea@xxxxxxxxxxx/
> Update_pn flag will let the offloaded MACsec implementations to know when
> the PN is updated.
>
> Radu P.
>
> Radu Pirea (NXP OSS) (4):
> net: macsec: indicate next pn update when offloading
> octeontx2-pf: mcs: update PN only when update_pn is true
> net: phy: mscc: macsec: reject PN update requests
> net/mlx5e: macsec: use update_pn flag instead of PN comparation

Thanks Radu! For the series:
Reviewed-by: Sabrina Dubroca <sd@xxxxxxxxxxxxxxx>


While reviewing this, I noticed that octeon can leave the HW in an
inconsistent state during upd_txsa and upd_rxsa: these ops do 2
separate changes that can both fail, and if the 2nd change fails, we
don't roll back the first change. This is an older issue (not
introduced by this patch) and can be looked at later (I don't know
what happens to the HW and why setting the PN would fail, maybe it's
not recoverable at that point).

--
Sabrina