net/mlx5: fix L4 integrity translation
PATCH 1/1 net/mlx5: fix L4 integrity translation
MLX5 PMD supports L3 and L4 integrity bits.
L4 checksum-ok bit was not translated correctly. The patch updates the l4_csum_ok integrity bit translation.
--- drivers/net/mlx5/mlx5_flow_dv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow_dv.c +1 -1
@@ -11584,7 +11584,7 @@ flow_dv_translate_integrity_l4(const struct rte_flow_item_integrity *mask, }else if (mask->l4_csum_ok) {MLX5_SET (fte_match_set_lyr_2_4, headers_m, l4_checksum_ok, mask->l4_csum_ok); -MLX5_SET (fte_match_set_lyr_2_4, headers_v, ipv4_checksum_ok, +MLX5_SET (fte_match_set_lyr_2_4, headers_v, l4_checksum_ok, value->l4_csum_ok); } }
Signature · 1 line
2.31.1
Hi,
Quoted 9 lines
-----Original Message-----
From: Gregory Etelson <[email protected]>
Sent: Monday, July 5, 2021 12:05 PM
To: [email protected]
Cc: Gregory Etelson <[email protected]>; Matan Azrad <[email protected]>; Raslan Darawsheh <[email protected]>; Slava Ovsiienko <[email protected]>; Shahaf Shuler <[email protected]>
Subject: [PATCH] net/mlx5: fix L4 integrity translation
Quoted 5 lines
MLX5 PMD supports L3 and L4 integrity bits.
L4 checksum-ok bit was not translated correctly. The patch updates thel4_csum_okintegrity bit translation.Fixes 79f8952783d0 ("net/mlx5: support integrity flow item")
Added missing Cc: [email protected]
Quoted 3 lines
Signed-off-by Gregory Etelson <[email protected]>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh