Skip to content

Commit 37beabe

Browse files
Emeel HakimSaeed Mahameed
authored andcommitted
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: 1f53da6 ("net/mlx5e: Create advanced steering operation (ASO) object for MACsec") Signed-off-by: Emeel Hakim <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 7501482 commit 37beabe

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en_accel

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ struct mlx5e_macsec_rx_sc {
8989
};
9090

9191
struct mlx5e_macsec_umr {
92+
u8 __aligned(64) ctx[MLX5_ST_SZ_BYTES(macsec_aso)];
9293
dma_addr_t dma_addr;
93-
u8 ctx[MLX5_ST_SZ_BYTES(macsec_aso)];
9494
u32 mkey;
9595
};
9696

0 commit comments

Comments
 (0)