]> 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)
commit94ffd6e0c7dbcffbcded79e283aefbee3499af96
treeafe796c5c7645bfa5c4bca4fd990d6688259121b
parentd20a56b0eb006096a023a59efccb27a277b38344
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: 5a39816a75e5 ("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