mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 05:39:42 -04:00
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: 1f53da6764 ("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>
This commit is contained in:
committed by
Saeed Mahameed
parent
75014826d0
commit
37beabe9a8
@@ -89,8 +89,8 @@ struct mlx5e_macsec_rx_sc {
|
||||
};
|
||||
|
||||
struct mlx5e_macsec_umr {
|
||||
u8 __aligned(64) ctx[MLX5_ST_SZ_BYTES(macsec_aso)];
|
||||
dma_addr_t dma_addr;
|
||||
u8 ctx[MLX5_ST_SZ_BYTES(macsec_aso)];
|
||||
u32 mkey;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user