net/mlx5e: Fix macsec ASO context alignment
authorEmeel Hakim <ehakim@nvidia.com>
Wed, 8 Feb 2023 12:25:54 +0000 (14:25 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 15 Mar 2023 22:50:15 +0000 (15:50 -0700)
commit37beabe9a891b92174cd1aafbfa881fe9e05aa87
tree40d54a1441bcca6781bfcde722751e97798d86c0
parent75014826d0826d175aa9e36cd8e118793263e3f4
net/mlx5e: Fix macsec ASO context alignment

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: 1f53da676439 ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c