]> 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)
commitabbbec8f86f1b81ded35f9ad1c1aa095f73453ae
treeafe796c5c7645bfa5c4bca4fd990d6688259121b
parent9b4ca83a743e6593387760e0635a7ae027d39560
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: ac9b9008c66d ("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