]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix MACsec update SecY
authorEmeel Hakim <ehakim@nvidia.com>
Sun, 30 Oct 2022 09:52:42 +0000 (11:52 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Nov 2022 02:14:35 +0000 (18:14 -0800)
commit2a3dbb764c276a5a0e5c48ae562b6f768dd58b4b
treeafe796c5c7645bfa5c4bca4fd990d6688259121b
parentca34492f9183edae697d1c980e1d96f6d3ac8264
net/mlx5e: Fix MACsec update SecY

Currently updating SecY destroys and re-creates RX SA objects,
the re-created RX SA objects are not identical to the destroyed
objects and it disagree on the encryption enabled property which
holds the value false after recreation, this value is not
supported with offload which leads to no traffic after an update.
Fix by recreating an identical objects.

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