net/mlx5e: Fix macsec ssci attribute handling in offload path
authorEmeel Hakim <ehakim@nvidia.com>
Wed, 14 Dec 2022 14:34:13 +0000 (16:34 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 Jan 2023 06:08:36 +0000 (22:08 -0800)
commitf5e1ed04aa2ea665a796f0109091ca3f2b01024a
treecc0eaf2569bf8e88eac79bd68355eda566782acf
parentcd4f186dc110a0f0b3484048b8ecd42ee006ca6d
net/mlx5e: Fix macsec ssci attribute handling in offload path

Currently when macsec offload is set with extended packet number (epn)
enabled, the driver wrongly deduce the short secure channel identifier
(ssci) from the salt instead of the stand alone ssci attribute as it
should, consequently creating a mismatch between the kernel and driver's
ssci values.
Fix by using the ssci value from the relevant attribute.

Fixes: 4411a6c0abd3 ("net/mlx5e: Support MACsec offload extended packet number (EPN)")
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