]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix macsec ASO context alignment
authorEmeel Hakim <ehakim@nvidia.com>
Wed, 8 Feb 2023 12:25:54 +0000 (14:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:48 +0000 (13:33 +0100)
commitb0a1a4babd36456a3bab3fdf92d84c99c8b2d7de
treed88e6efd347acab32c8642a4c61b76ab07edb29f
parentea5bc06edc72ae024cf368b350655d7ec73de40d
net/mlx5e: Fix macsec ASO context alignment

[ Upstream commit a6738052b4e3c1a03fcfd31592d71d29db2ae390 ]

Currently mlx5e_macsec_umr struct does not satisfy hardware memory
alignment requirement. Hence the result of querying advanced steering
operation (ASO) is not copied to the memory region as expected.

Fix by satisfying hardware memory alignment requirement and move
context to be first field in struct for better readability.

Fixes: 5f0b138ee960 ("net/mlx5e: Create advanced steering operation (ASO) object for MACsec")
Signed-off-by: Emeel Hakim <ehakim@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@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