net/mlx5: fix TCP flag field modification
authorAlexander Kozyrev <akozyrev@nvidia.com>
Fri, 5 Feb 2021 03:03:04 +0000 (03:03 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Sun, 21 Feb 2021 08:31:20 +0000 (09:31 +0100)
Wrong modification field ID is used for TCP flags: the inner
TCP flag field is changing instead of the outermost one.
Use the proper field ID to match the expectations.

Fixes: 641dbe4fb053 ("net/mlx5: support modify field flow action")
Cc: stable@dpdk.org
Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c

index 76696b7..a44291a 100644 (file)
@@ -1653,7 +1653,7 @@ mlx5_flow_field_id_to_modify_info
                break;
        case RTE_FLOW_FIELD_TCP_FLAGS:
                info[idx] = (struct field_modify_info){1, 0,
-                                       MLX5_MODI_IN_TCP_FLAGS};
+                                       MLX5_MODI_OUT_TCP_FLAGS};
                if (mask) {
                        mask[idx] = 0x0000003f;
                        if (width < 6)