get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/55778/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 55778,
    "url": "http://patches.dpdk.org/api/patches/55778/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/6cae8c9c217c3abdf06f36b60a05c8e4c01703ab.1561994563.git.dekelp@mellanox.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<6cae8c9c217c3abdf06f36b60a05c8e4c01703ab.1561994563.git.dekelp@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/6cae8c9c217c3abdf06f36b60a05c8e4c01703ab.1561994563.git.dekelp@mellanox.com",
    "date": "2019-07-01T15:43:11",
    "name": "[v9,3/3] net/mlx5: update modify header using Direct Verbs",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f5829589f9d549d4f50210da0b7c7e67df59ace8",
    "submitter": {
        "id": 1082,
        "url": "http://patches.dpdk.org/api/people/1082/?format=api",
        "name": "Dekel Peled",
        "email": "dekelp@mellanox.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/6cae8c9c217c3abdf06f36b60a05c8e4c01703ab.1561994563.git.dekelp@mellanox.com/mbox/",
    "series": [
        {
            "id": 5256,
            "url": "http://patches.dpdk.org/api/series/5256/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5256",
            "date": "2019-07-01T15:43:08",
            "name": "add actions to modify header fields",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/5256/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55778/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55778/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 487D31B9FD;\n\tMon,  1 Jul 2019 17:45:40 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id D45951B9FD\n\tfor <dev@dpdk.org>; Mon,  1 Jul 2019 17:45:38 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE2 (envelope-from\n\tdekelp@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 1 Jul 2019 18:45:33 +0300",
            "from mtl-vdi-280.wap.labs.mlnx. (mtl-vdi-280.wap.labs.mlnx\n\t[10.128.130.87])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x61FieEr028876;\n\tMon, 1 Jul 2019 18:45:33 +0300"
        ],
        "From": "Dekel Peled <dekelp@mellanox.com>",
        "To": "adrien.mazarguil@6wind.com, wenzhuo.lu@intel.com, jingjing.wu@intel.com, \n\tbernard.iremonger@intel.com, yskoh@mellanox.com, shahafs@mellanox.com,\n\tviacheslavo@mellanox.com, arybchenko@solarflare.com",
        "Cc": "dev@dpdk.org, orika@mellanox.com",
        "Date": "Mon,  1 Jul 2019 18:43:11 +0300",
        "Message-Id": "<6cae8c9c217c3abdf06f36b60a05c8e4c01703ab.1561994563.git.dekelp@mellanox.com>",
        "X-Mailer": "git-send-email 1.7.1",
        "In-Reply-To": "<cover.1561994563.git.dekelp@mellanox.com>",
        "References": "<1553177917-43297-1-git-send-email-dekelp@mellanox.com>\n\t<cover.1561994563.git.dekelp@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v9 3/3] net/mlx5: update modify header using\n\tDirect Verbs",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch implements additional actions of packet header\nmodifications.\n\nAdd actions:\n- INC_TCP_SEQ - Increase sequence number in the outermost TCP header.\n- DEC_TCP_SEQ - Decrease sequence number in the outermost TCP header.\n- INC_TCP_ACK - Increase acknowledgment number in the outermost TCP\n\t\theader.\n- DEC_TCP_ACK - Decrease acknowledgment number in the outermost TCP\n\t\theader.\n\nOriginal work by Xiaoyu Min.\n\nSigned-off-by: Dekel Peled <dekelp@mellanox.com>\n---\n doc/guides/rel_notes/release_19_08.rst |   6 +\n drivers/net/mlx5/mlx5_flow.h           |  10 +-\n drivers/net/mlx5/mlx5_flow_dv.c        | 237 +++++++++++++++++++++++++++++++++\n drivers/net/mlx5/mlx5_prm.h            |  12 ++\n 4 files changed, 264 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/doc/guides/rel_notes/release_19_08.rst b/doc/guides/rel_notes/release_19_08.rst\nindex 3da2667..85a208d 100644\n--- a/doc/guides/rel_notes/release_19_08.rst\n+++ b/doc/guides/rel_notes/release_19_08.rst\n@@ -99,6 +99,12 @@ New Features\n   Updated ``librte_telemetry`` to fetch the global metrics from the\n   ``librte_metrics`` library.\n \n+* **Updated Mellanox mlx5 driver.**\n+\n+  Updated Mellanox mlx5 driver with new features and improvements, including:\n+\n+  * Updated the packet header modification feature. Added support of TCP header\n+    sequence number and acknowledgment number modification.\n \n Removed Items\n -------------\ndiff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h\nindex b665420..dc4a56a 100644\n--- a/drivers/net/mlx5/mlx5_flow.h\n+++ b/drivers/net/mlx5/mlx5_flow.h\n@@ -114,6 +114,10 @@\n #define MLX5_FLOW_ACTION_NVGRE_DECAP (1u << 25)\n #define MLX5_FLOW_ACTION_RAW_ENCAP (1u << 26)\n #define MLX5_FLOW_ACTION_RAW_DECAP (1u << 27)\n+#define MLX5_FLOW_ACTION_INC_TCP_SEQ (1u << 28)\n+#define MLX5_FLOW_ACTION_DEC_TCP_SEQ (1u << 29)\n+#define MLX5_FLOW_ACTION_INC_TCP_ACK (1u << 30)\n+#define MLX5_FLOW_ACTION_DEC_TCP_ACK (1u << 31)\n \n #define MLX5_FLOW_FATE_ACTIONS \\\n \t(MLX5_FLOW_ACTION_DROP | MLX5_FLOW_ACTION_QUEUE | \\\n@@ -140,7 +144,11 @@\n \t\t\t\t      MLX5_FLOW_ACTION_SET_TTL | \\\n \t\t\t\t      MLX5_FLOW_ACTION_DEC_TTL | \\\n \t\t\t\t      MLX5_FLOW_ACTION_SET_MAC_SRC | \\\n-\t\t\t\t      MLX5_FLOW_ACTION_SET_MAC_DST)\n+\t\t\t\t      MLX5_FLOW_ACTION_SET_MAC_DST | \\\n+\t\t\t\t      MLX5_FLOW_ACTION_INC_TCP_SEQ | \\\n+\t\t\t\t      MLX5_FLOW_ACTION_DEC_TCP_SEQ | \\\n+\t\t\t\t      MLX5_FLOW_ACTION_INC_TCP_ACK | \\\n+\t\t\t\t      MLX5_FLOW_ACTION_DEC_TCP_ACK)\n \n #ifndef IPPROTO_MPLS\n #define IPPROTO_MPLS 137\ndiff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c\nindex 933ad0b..8f64182 100644\n--- a/drivers/net/mlx5/mlx5_flow_dv.c\n+++ b/drivers/net/mlx5/mlx5_flow_dv.c\n@@ -136,6 +136,8 @@ struct field_modify_info modify_udp[] = {\n struct field_modify_info modify_tcp[] = {\n \t{2, 0, MLX5_MODI_OUT_TCP_SPORT},\n \t{2, 2, MLX5_MODI_OUT_TCP_DPORT},\n+\t{4, 4, MLX5_MODI_OUT_TCP_SEQ_NUM},\n+\t{4, 8, MLX5_MODI_OUT_TCP_ACK_NUM},\n \t{0, 0, 0},\n };\n \n@@ -561,6 +563,96 @@ struct field_modify_info modify_tcp[] = {\n }\n \n /**\n+ * Convert modify-header increment/decrement TCP Sequence number\n+ * to DV specification.\n+ *\n+ * @param[in,out] resource\n+ *   Pointer to the modify-header resource.\n+ * @param[in] action\n+ *   Pointer to action specification.\n+ * @param[out] error\n+ *   Pointer to the error structure.\n+ *\n+ * @return\n+ *   0 on success, a negative errno value otherwise and rte_errno is set.\n+ */\n+static int\n+flow_dv_convert_action_modify_tcp_seq\n+\t\t\t(struct mlx5_flow_dv_modify_hdr_resource *resource,\n+\t\t\t const struct rte_flow_action *action,\n+\t\t\t struct rte_flow_error *error)\n+{\n+\tconst rte_be32_t *conf = (const rte_be32_t *)(action->conf);\n+\tuint64_t value = rte_be_to_cpu_32(*conf);\n+\tstruct rte_flow_item item;\n+\tstruct rte_flow_item_tcp tcp;\n+\tstruct rte_flow_item_tcp tcp_mask;\n+\n+\tmemset(&tcp, 0, sizeof(tcp));\n+\tmemset(&tcp_mask, 0, sizeof(tcp_mask));\n+\tif (action->type == RTE_FLOW_ACTION_TYPE_DEC_TCP_SEQ)\n+\t\t/*\n+\t\t * The HW has no decrement operation, only increment operation.\n+\t\t * To simulate decrement X from Y using increment operation\n+\t\t * we need to add UINT32_MAX X times to Y.\n+\t\t * Each adding of UINT32_MAX decrements Y by 1.\n+\t\t */\n+\t\tvalue *= UINT32_MAX;\n+\ttcp.hdr.sent_seq = rte_cpu_to_be_32((uint32_t)value);\n+\ttcp_mask.hdr.sent_seq = RTE_BE32(UINT32_MAX);\n+\titem.type = RTE_FLOW_ITEM_TYPE_TCP;\n+\titem.spec = &tcp;\n+\titem.mask = &tcp_mask;\n+\treturn flow_dv_convert_modify_action(&item, modify_tcp, resource,\n+\t\t\t\t\t     MLX5_MODIFICATION_TYPE_ADD, error);\n+}\n+\n+/**\n+ * Convert modify-header increment/decrement TCP Acknowledgment number\n+ * to DV specification.\n+ *\n+ * @param[in,out] resource\n+ *   Pointer to the modify-header resource.\n+ * @param[in] action\n+ *   Pointer to action specification.\n+ * @param[out] error\n+ *   Pointer to the error structure.\n+ *\n+ * @return\n+ *   0 on success, a negative errno value otherwise and rte_errno is set.\n+ */\n+static int\n+flow_dv_convert_action_modify_tcp_ack\n+\t\t\t(struct mlx5_flow_dv_modify_hdr_resource *resource,\n+\t\t\t const struct rte_flow_action *action,\n+\t\t\t struct rte_flow_error *error)\n+{\n+\tconst rte_be32_t *conf = (const rte_be32_t *)(action->conf);\n+\tuint64_t value = rte_be_to_cpu_32(*conf);\n+\tstruct rte_flow_item item;\n+\tstruct rte_flow_item_tcp tcp;\n+\tstruct rte_flow_item_tcp tcp_mask;\n+\n+\tmemset(&tcp, 0, sizeof(tcp));\n+\tmemset(&tcp_mask, 0, sizeof(tcp_mask));\n+\tif (action->type == RTE_FLOW_ACTION_TYPE_DEC_TCP_ACK)\n+\t\t/*\n+\t\t * The HW has no decrement operation, only increment operation.\n+\t\t * To simulate decrement X from Y using increment operation\n+\t\t * we need to add UINT32_MAX X times to Y.\n+\t\t * Each adding of UINT32_MAX decrements Y by 1.\n+\t\t */\n+\t\tvalue *= UINT32_MAX;\n+\ttcp.hdr.recv_ack = rte_cpu_to_be_32((uint32_t)value);\n+\ttcp_mask.hdr.recv_ack = RTE_BE32(UINT32_MAX);\n+\titem.type = RTE_FLOW_ITEM_TYPE_TCP;\n+\titem.spec = &tcp;\n+\titem.mask = &tcp_mask;\n+\treturn flow_dv_convert_modify_action(&item, modify_tcp, resource,\n+\t\t\t\t\t     MLX5_MODIFICATION_TYPE_ADD, error);\n+}\n+\n+/**\n  * Validate META item.\n  *\n  * @param[in] dev\n@@ -1668,6 +1760,96 @@ struct field_modify_info modify_tcp[] = {\n }\n \n /**\n+ * Validate the modify-header actions of increment/decrement\n+ * TCP Sequence-number.\n+ *\n+ * @param[in] action_flags\n+ *   Holds the actions detected until now.\n+ * @param[in] action\n+ *   Pointer to the modify action.\n+ * @param[in] item_flags\n+ *   Holds the items detected.\n+ * @param[out] error\n+ *   Pointer to error structure.\n+ *\n+ * @return\n+ *   0 on success, a negative errno value otherwise and rte_errno is set.\n+ */\n+static int\n+flow_dv_validate_action_modify_tcp_seq(const uint64_t action_flags,\n+\t\t\t\t       const struct rte_flow_action *action,\n+\t\t\t\t       const uint64_t item_flags,\n+\t\t\t\t       struct rte_flow_error *error)\n+{\n+\tint ret = 0;\n+\n+\tret = flow_dv_validate_action_modify_hdr(action_flags, action, error);\n+\tif (!ret) {\n+\t\tif (!(item_flags & MLX5_FLOW_LAYER_OUTER_L4_TCP))\n+\t\t\treturn rte_flow_error_set(error, EINVAL,\n+\t\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t\t  NULL, \"no TCP item in\"\n+\t\t\t\t\t\t  \" pattern\");\n+\t\tif ((action->type == RTE_FLOW_ACTION_TYPE_INC_TCP_SEQ &&\n+\t\t\t(action_flags & MLX5_FLOW_ACTION_DEC_TCP_SEQ)) ||\n+\t\t    (action->type == RTE_FLOW_ACTION_TYPE_DEC_TCP_SEQ &&\n+\t\t\t(action_flags & MLX5_FLOW_ACTION_INC_TCP_SEQ)))\n+\t\t\treturn rte_flow_error_set(error, EINVAL,\n+\t\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t\t  NULL,\n+\t\t\t\t\t\t  \"cannot decrease and increase\"\n+\t\t\t\t\t\t  \" TCP sequence number\"\n+\t\t\t\t\t\t  \" at the same time\");\n+\t}\n+\treturn ret;\n+}\n+\n+/**\n+ * Validate the modify-header actions of increment/decrement\n+ * TCP Acknowledgment number.\n+ *\n+ * @param[in] action_flags\n+ *   Holds the actions detected until now.\n+ * @param[in] action\n+ *   Pointer to the modify action.\n+ * @param[in] item_flags\n+ *   Holds the items detected.\n+ * @param[out] error\n+ *   Pointer to error structure.\n+ *\n+ * @return\n+ *   0 on success, a negative errno value otherwise and rte_errno is set.\n+ */\n+static int\n+flow_dv_validate_action_modify_tcp_ack(const uint64_t action_flags,\n+\t\t\t\t       const struct rte_flow_action *action,\n+\t\t\t\t       const uint64_t item_flags,\n+\t\t\t\t       struct rte_flow_error *error)\n+{\n+\tint ret = 0;\n+\n+\tret = flow_dv_validate_action_modify_hdr(action_flags, action, error);\n+\tif (!ret) {\n+\t\tif (!(item_flags & MLX5_FLOW_LAYER_OUTER_L4_TCP))\n+\t\t\treturn rte_flow_error_set(error, EINVAL,\n+\t\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t\t  NULL, \"no TCP item in\"\n+\t\t\t\t\t\t  \" pattern\");\n+\t\tif ((action->type == RTE_FLOW_ACTION_TYPE_INC_TCP_ACK &&\n+\t\t\t(action_flags & MLX5_FLOW_ACTION_DEC_TCP_ACK)) ||\n+\t\t    (action->type == RTE_FLOW_ACTION_TYPE_DEC_TCP_ACK &&\n+\t\t\t(action_flags & MLX5_FLOW_ACTION_INC_TCP_ACK)))\n+\t\t\treturn rte_flow_error_set(error, EINVAL,\n+\t\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t\t  NULL,\n+\t\t\t\t\t\t  \"cannot decrease and increase\"\n+\t\t\t\t\t\t  \" TCP acknowledgment number\"\n+\t\t\t\t\t\t  \" at the same time\");\n+\t}\n+\treturn ret;\n+}\n+\n+/**\n  * Validate the modify-header TTL actions.\n  *\n  * @param[in] action_flags\n@@ -2416,6 +2598,40 @@ struct field_modify_info modify_tcp[] = {\n \t\t\t++actions_n;\n \t\t\taction_flags |= MLX5_FLOW_ACTION_JUMP;\n \t\t\tbreak;\n+\t\tcase RTE_FLOW_ACTION_TYPE_INC_TCP_SEQ:\n+\t\tcase RTE_FLOW_ACTION_TYPE_DEC_TCP_SEQ:\n+\t\t\tret = flow_dv_validate_action_modify_tcp_seq\n+\t\t\t\t\t\t\t\t(action_flags,\n+\t\t\t\t\t\t\t\t actions,\n+\t\t\t\t\t\t\t\t item_flags,\n+\t\t\t\t\t\t\t\t error);\n+\t\t\tif (ret < 0)\n+\t\t\t\treturn ret;\n+\t\t\t/* Count all modify-header actions as one action. */\n+\t\t\tif (!(action_flags & MLX5_FLOW_MODIFY_HDR_ACTIONS))\n+\t\t\t\t++actions_n;\n+\t\t\taction_flags |= actions->type ==\n+\t\t\t\t\tRTE_FLOW_ACTION_TYPE_INC_TCP_SEQ ?\n+\t\t\t\t\t\tMLX5_FLOW_ACTION_INC_TCP_SEQ :\n+\t\t\t\t\t\tMLX5_FLOW_ACTION_DEC_TCP_SEQ;\n+\t\t\tbreak;\n+\t\tcase RTE_FLOW_ACTION_TYPE_INC_TCP_ACK:\n+\t\tcase RTE_FLOW_ACTION_TYPE_DEC_TCP_ACK:\n+\t\t\tret = flow_dv_validate_action_modify_tcp_ack\n+\t\t\t\t\t\t\t\t(action_flags,\n+\t\t\t\t\t\t\t\t actions,\n+\t\t\t\t\t\t\t\t item_flags,\n+\t\t\t\t\t\t\t\t error);\n+\t\t\tif (ret < 0)\n+\t\t\t\treturn ret;\n+\t\t\t/* Count all modify-header actions as one action. */\n+\t\t\tif (!(action_flags & MLX5_FLOW_MODIFY_HDR_ACTIONS))\n+\t\t\t\t++actions_n;\n+\t\t\taction_flags |= actions->type ==\n+\t\t\t\t\tRTE_FLOW_ACTION_TYPE_INC_TCP_ACK ?\n+\t\t\t\t\t\tMLX5_FLOW_ACTION_INC_TCP_ACK :\n+\t\t\t\t\t\tMLX5_FLOW_ACTION_DEC_TCP_ACK;\n+\t\t\tbreak;\n \t\tdefault:\n \t\t\treturn rte_flow_error_set(error, ENOTSUP,\n \t\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n@@ -3895,6 +4111,27 @@ struct field_modify_info modify_tcp[] = {\n \t\t\t\treturn -rte_errno;\n \t\t\taction_flags |= MLX5_FLOW_ACTION_SET_TTL;\n \t\t\tbreak;\n+\t\tcase RTE_FLOW_ACTION_TYPE_INC_TCP_SEQ:\n+\t\tcase RTE_FLOW_ACTION_TYPE_DEC_TCP_SEQ:\n+\t\t\tif (flow_dv_convert_action_modify_tcp_seq(&res, actions,\n+\t\t\t\t\t\t\t\t  error))\n+\t\t\t\treturn -rte_errno;\n+\t\t\taction_flags |= actions->type ==\n+\t\t\t\t\tRTE_FLOW_ACTION_TYPE_INC_TCP_SEQ ?\n+\t\t\t\t\tMLX5_FLOW_ACTION_INC_TCP_SEQ :\n+\t\t\t\t\tMLX5_FLOW_ACTION_DEC_TCP_SEQ;\n+\t\t\tbreak;\n+\n+\t\tcase RTE_FLOW_ACTION_TYPE_INC_TCP_ACK:\n+\t\tcase RTE_FLOW_ACTION_TYPE_DEC_TCP_ACK:\n+\t\t\tif (flow_dv_convert_action_modify_tcp_ack(&res, actions,\n+\t\t\t\t\t\t\t\t  error))\n+\t\t\t\treturn -rte_errno;\n+\t\t\taction_flags |= actions->type ==\n+\t\t\t\t\tRTE_FLOW_ACTION_TYPE_INC_TCP_ACK ?\n+\t\t\t\t\tMLX5_FLOW_ACTION_INC_TCP_ACK :\n+\t\t\t\t\tMLX5_FLOW_ACTION_DEC_TCP_ACK;\n+\t\t\tbreak;\n \t\tcase RTE_FLOW_ACTION_TYPE_END:\n \t\t\tactions_end = true;\n \t\t\tif (action_flags & MLX5_FLOW_MODIFY_HDR_ACTIONS) {\ndiff --git a/drivers/net/mlx5/mlx5_prm.h b/drivers/net/mlx5/mlx5_prm.h\nindex 1a19958..7482383 100644\n--- a/drivers/net/mlx5/mlx5_prm.h\n+++ b/drivers/net/mlx5/mlx5_prm.h\n@@ -347,6 +347,18 @@ enum mlx5_modification_field {\n \tMLX5_MODI_IN_IPV6_HOPLIMIT,\n \tMLX5_MODI_META_DATA_REG_A,\n \tMLX5_MODI_META_DATA_REG_B = 0x50,\n+\tMLX5_MODI_META_REG_C_0,\n+\tMLX5_MODI_META_REG_C_1,\n+\tMLX5_MODI_META_REG_C_2,\n+\tMLX5_MODI_META_REG_C_3,\n+\tMLX5_MODI_META_REG_C_4,\n+\tMLX5_MODI_META_REG_C_5,\n+\tMLX5_MODI_META_REG_C_6,\n+\tMLX5_MODI_META_REG_C_7,\n+\tMLX5_MODI_OUT_TCP_SEQ_NUM,\n+\tMLX5_MODI_IN_TCP_SEQ_NUM,\n+\tMLX5_MODI_OUT_TCP_ACK_NUM,\n+\tMLX5_MODI_IN_TCP_ACK_NUM = 0x5C,\n };\n \n /* Modification sub command. */\n",
    "prefixes": [
        "v9",
        "3/3"
    ]
}