Skip to contentSkip to conversation

net/mlx5e: Align IPsec ASO result memory to be as required by hardware

PATCH Applied Leon Romanovsky 2 participants 2 messages Feb 19, 2023 – Feb 21, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5e: Align IPsec ASO result memory to be as required by hardware

From: Leon Romanovsky <[email protected]>

Hardware requires an alignment to 64 bytes to return ASO data. Missing this alignment caused to unpredictable results while ASO events were generated.

Fixes 8518d05b8f9a ("net/mlx5e: Create Advanced Steering Operation object for IPsec")
---
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h +1 -1
index ddd7be05f18f..12f044330639 100644
@@ -129,7 +129,7 @@ struct mlx5e_ipsec_work {
 };
 
 struct mlx5e_ipsec_aso {
-	u8 ctx[MLX5_ST_SZ_BYTES(ipsec_aso)];
+	u8 __aligned(64) ctx[MLX5_ST_SZ_BYTES(ipsec_aso)];
 	dma_addr_t dma_addr;
 	struct mlx5_aso *aso;
 	/* Protect ASO WQ access, as it is global to whole IPsec */
Signature · 1 line
2.39.2
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Sun, 19 Feb 2023 11:09:10 +0200 you wrote:

From: Leon Romanovsky <[email protected]>

Hardware requires an alignment to 64 bytes to return ASO data. Missing this alignment caused to unpredictable results while ASO events were generated.

Fixes 8518d05b8f9a ("net/mlx5e: Create Advanced Steering Operation object for IPsec")

[...]

Here is the summary with links:
- [net-next] net/mlx5e: Align IPsec ASO result memory to be as required by hardware

    https://git.kernel.org/netdev/net-next/c/f2b6cfda76d2

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html