Skip to content

Commit f2b6cfd

Browse files
rleonkuba-moo
authored andcommitted
net/mlx5e: Align IPsec ASO result memory to be as required by hardware
Hardware requires an alignment to 64 bytes to return ASO data. Missing this alignment caused to unpredictable results while ASO events were generated. Fixes: 8518d05 ("net/mlx5e: Create Advanced Steering Operation object for IPsec") Reported-by: Emeel Hakim <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Link: https://lore.kernel.org/r/de0302c572b90c9224a72868d4e0d657b6313c4b.1676797613.git.leon@kernel.org Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 05b953a commit f2b6cfd

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/ipsec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ struct mlx5e_ipsec_work {
129129
};
130130

131131
struct mlx5e_ipsec_aso {
132-
u8 ctx[MLX5_ST_SZ_BYTES(ipsec_aso)];
132+
u8 __aligned(64) ctx[MLX5_ST_SZ_BYTES(ipsec_aso)];
133133
dma_addr_t dma_addr;
134134
struct mlx5_aso *aso;
135135
/* Protect ASO WQ access, as it is global to whole IPsec */

0 commit comments

Comments
 (0)