]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: MACsec, fix Tx SA active field update
authorRaed Salem <raeds@nvidia.com>
Tue, 8 Nov 2022 12:30:33 +0000 (14:30 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 24 Nov 2022 08:03:23 +0000 (00:03 -0800)
commit643ea885753674b34ba854c106fea01972d757ee
treee9585804a13a5db4181e5bbb896c740b70b8fbd1
parentfb2ada326698b737691dc5771d575ad386ff2a28
net/mlx5e: MACsec, fix Tx SA active field update

Currently during update Tx security association (SA) flow, the Tx SA
active state is updated only if the Tx SA in question is the same SA
that the MACsec interface is using for Tx,in consequence when the
MACsec interface chose to work with this Tx SA later, where this SA
for example should have been updated to active state and it was not,
the relevant Tx SA HW context won't be installed, hence the MACSec
flow won't be offloaded.

Fix by update Tx SA active state as part of update flow regardless
whether the SA in question is the same Tx SA used by the MACsec
interface.

Fixes: 28edf3532713 ("net/mlx5: Add MACsec offload Tx command support")
Signed-off-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Emeel Hakim <ehakim@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c