]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:58:30 +0000 (11:58 +0100)
commit0902474c973f20745928b1c4f8502d191ad5b8aa
tree9d18d0a8eeb16d798971d01386b96b74e07a123d
parent51e304025eded717da474e67811f02ffebdd1852
net/mlx5e: Fix macsec ssci attribute handling in offload path

[ Upstream commit e4c780208b49a84374fa17088172198811d32551 ]

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: 10fad55911fd ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c