]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:16 +0000 (13:33 +0200)
commit48aa76befde920bef78a6d47a1343b37740e926e
tree8ff2d33e8dc501b442a87da580147fc21b6376af
parent9ee5eb16e1ea648d2351546f0967b7d225f57a82
net/mlx5e: Fix macsec ASO context alignment

BugLink: https://bugs.launchpad.net/bugs/2016876
[ Upstream commit 37beabe9a891b92174cd1aafbfa881fe9e05aa87 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c