From: Gregory Etelson Date: Mon, 5 Jul 2021 09:05:00 +0000 (+0300) Subject: net/mlx5: fix L4 integrity translation X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cdc32d127e68d711d2c072883983e4bcf792fa61;p=dpdk.git 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. Fixes: 79f8952783d0 ("net/mlx5: support integrity flow item") Cc: stable@dpdk.org Signed-off-by: Gregory Etelson Acked-by: Viacheslav Ovsiienko --- diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 0209a3e8e6..4c7eb6cb0e 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -11623,7 +11623,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); } }