Show a patch.

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

{
    "id": 42959,
    "url": "http://patches.dpdk.org/api/patches/42959/",
    "web_url": "http://patches.dpdk.org/patch/42959/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<44069f47c18613ad644867a4c230666d71c79a6f.1531387413.git.nelio.laranjeiro@6wind.com>",
    "date": "2018-07-12T09:30:58",
    "name": "[v4,12/21] net/mlx5: add mark/flag flow action",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9efcaa22b826b68184e9e06f261d60b29053033c",
    "submitter": {
        "id": 243,
        "url": "http://patches.dpdk.org/api/people/243/",
        "name": "Nélio Laranjeiro",
        "email": "nelio.laranjeiro@6wind.com"
    },
    "delegate": {
        "id": 6624,
        "url": "http://patches.dpdk.org/api/users/6624/",
        "username": "shahafs",
        "first_name": "Shahaf",
        "last_name": "Shuler",
        "email": "shahafs@mellanox.com"
    },
    "mbox": "http://patches.dpdk.org/patch/42959/mbox/",
    "series": [
        {
            "id": 544,
            "url": "http://patches.dpdk.org/api/series/544/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=544",
            "date": "2018-07-12T09:30:46",
            "name": "net/mlx5: flow rework",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/544/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42959/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/42959/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<cover.1531387413.git.nelio.laranjeiro@6wind.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.18.0",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D4E111B612;\n\tThu, 12 Jul 2018 11:31:55 +0200 (CEST)",
            "from mail-wr1-f66.google.com (mail-wr1-f66.google.com\n\t[209.85.221.66]) by dpdk.org (Postfix) with ESMTP id E45AF1B594\n\tfor <dev@dpdk.org>; Thu, 12 Jul 2018 11:31:35 +0200 (CEST)",
            "by mail-wr1-f66.google.com with SMTP id j5-v6so14438033wrr.8\n\tfor <dev@dpdk.org>; Thu, 12 Jul 2018 02:31:35 -0700 (PDT)",
            "from laranjeiro-vm.dev.6wind.com\n\t(host.78.145.23.62.rev.coltfrance.com. [62.23.145.78])\n\tby smtp.gmail.com with ESMTPSA id\n\ts2-v6sm18717603wrn.75.2018.07.12.02.31.34\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 12 Jul 2018 02:31:34 -0700 (PDT)"
        ],
        "References": "<cover.1531293415.git.nelio.laranjeiro@6wind.com>\n\t<cover.1531387413.git.nelio.laranjeiro@6wind.com>",
        "X-Google-Smtp-Source": "AAOMgpdIWSS7gIVj22QrY13Uu625dxTY99FzIF2ywsRyET87IUifVM+lOfnFtekKS6Ypnrhkp3E3Lg==",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=2N6UF0VlrXGpqPdx49vr0DqIOEveiJ9cJzfO9DU/uDk=;\n\tb=jv9dK8780uOkblIN0oh70FFanK6Q/VXBiIsozbbclbM4Bm/f3MWsqvD1mH07psg2ke\n\txHdTIzrxsAz8Sx86K5yW7ZApNZjDsf2//PurOT0LTkTL+M6Cs7N5XLGIrpCtnRn467hh\n\tBPy46ZRKYMeNTUPoCZa3xCLC/U+8Z+erw7UccUakE/zC41c5J/bLPdK+dTlFi0Wx6EGu\n\tZnMLle3Hnom7G98OCAfv3EO3ZRDmJqSVcz5Iwl9A71LUTsOnLJaROB2Rdj8R7aZCJQO3\n\tiUQ6q7LC81ebIYlAf3Fy1xbv8Us3PoGCS8zIDJ43e+/6doxKLUu0F4jqJDhFXkzyW0Zs\n\tEYAA==",
        "X-BeenThere": "dev@dpdk.org",
        "X-Received": "by 2002:adf:bb08:: with SMTP id\n\tr8-v6mr1075706wrg.244.1531387895211; \n\tThu, 12 Jul 2018 02:31:35 -0700 (PDT)",
        "Message-Id": "<44069f47c18613ad644867a4c230666d71c79a6f.1531387413.git.nelio.laranjeiro@6wind.com>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=2N6UF0VlrXGpqPdx49vr0DqIOEveiJ9cJzfO9DU/uDk=;\n\tb=EWy4OB0p2iMr9/aEfA8ZtQdt8WzRZJR3pRyT4hOHMtoMlw+di06akUU23uhCF0Tl1S\n\ta4FEhzbbyzXx+9HNQ7vpRf4AsEtAsCmlhlc85d0jl60pIPvcb99ISLntMpHBGPjQaAdx\n\tbt0HAGV8JZo4EqkEf+Pj6R0VqOfPd2zjINh9SRaqKO9uWiE2KVohpQuNLOeEJ0+57wMs\n\tiOQMWPcLtQc9sMP4ukWy4JXQM14efjurQGZzfpy09K/5vLx0GPXx2fVFmNSLhHS+jE6h\n\t0rTh6Ioblx8qBgmdrCJ+bKmF4DTHo+o5TyYx1O4WdzOlXGWwDmQlRf8wkDJXO13FUyry\n\tTMbQ==",
        "Delivered-To": "patchwork@dpdk.org",
        "Precedence": "list",
        "From": "Nelio Laranjeiro <nelio.laranjeiro@6wind.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@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>",
        "To": "dev@dpdk.org,\n\tYongseok Koh <yskoh@mellanox.com>",
        "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>",
        "Date": "Thu, 12 Jul 2018 11:30:58 +0200",
        "X-Gm-Message-State": "AOUpUlFhKzGYEiZYD1QhAfBoRJZNIfW86TYQ+HdjdZ7kpT8gd4AQQumh\n\t9wAf66kkWcioYQCNSIhupT946CoYkw==",
        "Cc": "Adrien Mazarguil <adrien.mazarguil@6wind.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v4 12/21] net/mlx5: add mark/flag flow action"
    },
    "content": "Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>\nAcked-by: Yongseok Koh <yskoh@mellanox.com>\n---\n drivers/net/mlx5/mlx5_flow.c | 252 +++++++++++++++++++++++++++++++++++\n drivers/net/mlx5/mlx5_rxtx.h |   1 +\n 2 files changed, 253 insertions(+)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c\nindex f646eee01..1280db486 100644\n--- a/drivers/net/mlx5/mlx5_flow.c\n+++ b/drivers/net/mlx5/mlx5_flow.c\n@@ -52,6 +52,10 @@ extern const struct eth_dev_ops mlx5_dev_ops_isolate;\n #define MLX5_FLOW_FATE_DROP (1u << 0)\n #define MLX5_FLOW_FATE_QUEUE (1u << 1)\n \n+/* Modify a packet. */\n+#define MLX5_FLOW_MOD_FLAG (1u << 0)\n+#define MLX5_FLOW_MOD_MARK (1u << 1)\n+\n /* possible L3 layers protocols filtering. */\n #define MLX5_IP_PROTOCOL_TCP 6\n #define MLX5_IP_PROTOCOL_UDP 17\n@@ -75,6 +79,8 @@ struct rte_flow {\n \tuint32_t l3_protocol_en:1; /**< Protocol filtering requested. */\n \tuint32_t layers;\n \t/**< Bit-fields of present layers see MLX5_FLOW_LAYER_*. */\n+\tuint32_t modifier;\n+\t/**< Bit-fields of present modifier see MLX5_FLOW_MOD_*. */\n \tuint32_t fate;\n \t/**< Bit-fields of present fate see MLX5_FLOW_FATE_*. */\n \tuint8_t l3_protocol; /**< valid when l3_protocol_en is set. */\n@@ -984,6 +990,12 @@ mlx5_flow_action_drop(const struct rte_flow_action *action,\n \t\t\t\t\t  action,\n \t\t\t\t\t  \"multiple fate actions are not\"\n \t\t\t\t\t  \" supported\");\n+\tif (flow->modifier & (MLX5_FLOW_MOD_FLAG | MLX5_FLOW_MOD_MARK))\n+\t\treturn rte_flow_error_set(error, ENOTSUP,\n+\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t  action,\n+\t\t\t\t\t  \"drop is not compatible with\"\n+\t\t\t\t\t  \" flag/mark action\");\n \tif (size < flow_size)\n \t\tmlx5_flow_spec_verbs_add(flow, &drop, size);\n \tflow->fate |= MLX5_FLOW_FATE_DROP;\n@@ -1036,6 +1048,161 @@ mlx5_flow_action_queue(struct rte_eth_dev *dev,\n \treturn 0;\n }\n \n+/**\n+ * Convert the @p action into a Verbs specification after ensuring the NIC\n+ * will understand and process it correctly.\n+ * If the necessary size for the conversion is greater than the @p flow_size,\n+ * nothing is written in @p flow, the validation is still performed.\n+ *\n+ * @param[in] action\n+ *   Action configuration.\n+ * @param[in, out] flow\n+ *   Pointer to flow structure.\n+ * @param[in] flow_size\n+ *   Size in bytes of the available space in @p flow, if too small, nothing is\n+ *   written.\n+ * @param[out] error\n+ *   Pointer to error structure.\n+ *\n+ * @return\n+ *   On success the number of bytes consumed/necessary, if the returned value\n+ *   is lesser or equal to @p flow_size, the @p action has fully been\n+ *   converted, otherwise another call with this returned memory size should\n+ *   be done.\n+ *   On error, a negative errno value is returned and rte_errno is set.\n+ */\n+static int\n+mlx5_flow_action_flag(const struct rte_flow_action *action,\n+\t\t      struct rte_flow *flow, const size_t flow_size,\n+\t\t      struct rte_flow_error *error)\n+{\n+\tunsigned int size = sizeof(struct ibv_flow_spec_action_tag);\n+\tstruct ibv_flow_spec_action_tag tag = {\n+\t\t.type = IBV_FLOW_SPEC_ACTION_TAG,\n+\t\t.size = size,\n+\t\t.tag_id = mlx5_flow_mark_set(MLX5_FLOW_MARK_DEFAULT),\n+\t};\n+\n+\tif (flow->modifier & MLX5_FLOW_MOD_FLAG)\n+\t\treturn rte_flow_error_set(error, ENOTSUP,\n+\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t  action,\n+\t\t\t\t\t  \"flag action already present\");\n+\tif (flow->fate & MLX5_FLOW_FATE_DROP)\n+\t\treturn rte_flow_error_set(error, ENOTSUP,\n+\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t  action,\n+\t\t\t\t\t  \"flag is not compatible with drop\"\n+\t\t\t\t\t  \" action\");\n+\tif (flow->modifier & MLX5_FLOW_MOD_MARK)\n+\t\treturn 0;\n+\tflow->modifier |= MLX5_FLOW_MOD_FLAG;\n+\tif (size <= flow_size)\n+\t\tmlx5_flow_spec_verbs_add(flow, &tag, size);\n+\treturn size;\n+}\n+\n+/**\n+ * Update verbs specification to modify the flag to mark.\n+ *\n+ * @param[in, out] flow\n+ *   Pointer to the rte_flow structure.\n+ * @param[in] mark_id\n+ *   Mark identifier to replace the flag.\n+ */\n+static void\n+mlx5_flow_verbs_mark_update(struct rte_flow *flow, uint32_t mark_id)\n+{\n+\tstruct ibv_spec_header *hdr;\n+\tint i;\n+\n+\t/* Update Verbs specification. */\n+\thdr = (struct ibv_spec_header *)flow->verbs.specs;\n+\tif (!hdr)\n+\t\treturn;\n+\tfor (i = 0; i != flow->verbs.attr->num_of_specs; ++i) {\n+\t\tif (hdr->type == IBV_FLOW_SPEC_ACTION_TAG) {\n+\t\t\tstruct ibv_flow_spec_action_tag *t =\n+\t\t\t\t(struct ibv_flow_spec_action_tag *)hdr;\n+\n+\t\t\tt->tag_id = mlx5_flow_mark_set(mark_id);\n+\t\t}\n+\t\thdr = (struct ibv_spec_header *)((uintptr_t)hdr + hdr->size);\n+\t}\n+}\n+\n+/**\n+ * Convert the @p action into @p flow (or by updating the already present\n+ * Flag Verbs specification) after ensuring the NIC will understand and\n+ * process it correctly.\n+ * If the necessary size for the conversion is greater than the @p flow_size,\n+ * nothing is written in @p flow, the validation is still performed.\n+ *\n+ * @param[in] action\n+ *   Action configuration.\n+ * @param[in, out] flow\n+ *   Pointer to flow structure.\n+ * @param[in] flow_size\n+ *   Size in bytes of the available space in @p flow, if too small, nothing is\n+ *   written.\n+ * @param[out] error\n+ *   Pointer to error structure.\n+ *\n+ * @return\n+ *   On success the number of bytes consumed/necessary, if the returned value\n+ *   is lesser or equal to @p flow_size, the @p action has fully been\n+ *   converted, otherwise another call with this returned memory size should\n+ *   be done.\n+ *   On error, a negative errno value is returned and rte_errno is set.\n+ */\n+static int\n+mlx5_flow_action_mark(const struct rte_flow_action *action,\n+\t\t      struct rte_flow *flow, const size_t flow_size,\n+\t\t      struct rte_flow_error *error)\n+{\n+\tconst struct rte_flow_action_mark *mark = action->conf;\n+\tunsigned int size = sizeof(struct ibv_flow_spec_action_tag);\n+\tstruct ibv_flow_spec_action_tag tag = {\n+\t\t.type = IBV_FLOW_SPEC_ACTION_TAG,\n+\t\t.size = size,\n+\t};\n+\n+\tif (!mark)\n+\t\treturn rte_flow_error_set(error, EINVAL,\n+\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t  action,\n+\t\t\t\t\t  \"configuration cannot be null\");\n+\tif (mark->id >= MLX5_FLOW_MARK_MAX)\n+\t\treturn rte_flow_error_set(error, EINVAL,\n+\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION_CONF,\n+\t\t\t\t\t  &mark->id,\n+\t\t\t\t\t  \"mark id must in 0 <= id < \"\n+\t\t\t\t\t  RTE_STR(MLX5_FLOW_MARK_MAX));\n+\tif (flow->modifier & MLX5_FLOW_MOD_MARK)\n+\t\treturn rte_flow_error_set(error, ENOTSUP,\n+\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t  action,\n+\t\t\t\t\t  \"mark action already present\");\n+\tif (flow->fate & MLX5_FLOW_FATE_DROP)\n+\t\treturn rte_flow_error_set(error, ENOTSUP,\n+\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t  action,\n+\t\t\t\t\t  \"mark is not compatible with drop\"\n+\t\t\t\t\t  \" action\");\n+\tif (flow->modifier & MLX5_FLOW_MOD_FLAG) {\n+\t\tmlx5_flow_verbs_mark_update(flow, mark->id);\n+\t\tsize = 0; /**< Only an update is done in the specification. */\n+\t} else {\n+\t\ttag.tag_id = mlx5_flow_mark_set(mark->id);\n+\t\tif (size <= flow_size) {\n+\t\t\ttag.tag_id = mlx5_flow_mark_set(mark->id);\n+\t\t\tmlx5_flow_spec_verbs_add(flow, &tag, size);\n+\t\t}\n+\t}\n+\tflow->modifier |= MLX5_FLOW_MOD_MARK;\n+\treturn size;\n+}\n+\n /**\n  * Convert the @p action into @p flow after ensuring the NIC will understand\n  * and process it correctly.\n@@ -1077,6 +1244,14 @@ mlx5_flow_actions(struct rte_eth_dev *dev,\n \t\tswitch (actions->type) {\n \t\tcase RTE_FLOW_ACTION_TYPE_VOID:\n \t\t\tbreak;\n+\t\tcase RTE_FLOW_ACTION_TYPE_FLAG:\n+\t\t\tret = mlx5_flow_action_flag(actions, flow, remain,\n+\t\t\t\t\t\t    error);\n+\t\t\tbreak;\n+\t\tcase RTE_FLOW_ACTION_TYPE_MARK:\n+\t\t\tret = mlx5_flow_action_mark(actions, flow, remain,\n+\t\t\t\t\t\t    error);\n+\t\t\tbreak;\n \t\tcase RTE_FLOW_ACTION_TYPE_DROP:\n \t\t\tret = mlx5_flow_action_drop(actions, flow, remain,\n \t\t\t\t\t\t    error);\n@@ -1170,6 +1345,79 @@ mlx5_flow_merge(struct rte_eth_dev *dev, struct rte_flow *flow,\n \treturn size;\n }\n \n+/**\n+ * Mark the Rx queues mark flag if the flow has a mark or flag modifier.\n+ *\n+ * @param[in] dev\n+ *   Pointer to Ethernet device.\n+ * @param[in] flow\n+ *   Pointer to flow structure.\n+ */\n+static void\n+mlx5_flow_rxq_mark_set(struct rte_eth_dev *dev, struct rte_flow *flow)\n+{\n+\tstruct priv *priv = dev->data->dev_private;\n+\n+\tif (flow->modifier & (MLX5_FLOW_MOD_FLAG | MLX5_FLOW_MOD_MARK)) {\n+\t\tstruct mlx5_rxq_ctrl *rxq_ctrl =\n+\t\t\tcontainer_of((*priv->rxqs)[flow->queue],\n+\t\t\t\t     struct mlx5_rxq_ctrl, rxq);\n+\n+\t\trxq_ctrl->rxq.mark = 1;\n+\t\trxq_ctrl->flow_mark_n++;\n+\t}\n+}\n+\n+/**\n+ * Clear the Rx queue mark associated with the @p flow if no other flow uses\n+ * it with a mark request.\n+ *\n+ * @param dev\n+ *   Pointer to Ethernet device.\n+ * @param[in] flow\n+ *   Pointer to the flow.\n+ */\n+static void\n+mlx5_flow_rxq_mark_trim(struct rte_eth_dev *dev, struct rte_flow *flow)\n+{\n+\tstruct priv *priv = dev->data->dev_private;\n+\n+\tif (flow->modifier & (MLX5_FLOW_MOD_FLAG | MLX5_FLOW_MOD_MARK)) {\n+\t\tstruct mlx5_rxq_ctrl *rxq_ctrl =\n+\t\t\tcontainer_of((*priv->rxqs)[flow->queue],\n+\t\t\t\t     struct mlx5_rxq_ctrl, rxq);\n+\n+\t\trxq_ctrl->flow_mark_n--;\n+\t\trxq_ctrl->rxq.mark = !!rxq_ctrl->flow_mark_n;\n+\t}\n+}\n+\n+/**\n+ * Clear the mark bit in all Rx queues.\n+ *\n+ * @param dev\n+ *   Pointer to Ethernet device.\n+ */\n+static void\n+mlx5_flow_rxq_mark_clear(struct rte_eth_dev *dev)\n+{\n+\tstruct priv *priv = dev->data->dev_private;\n+\tunsigned int i;\n+\tunsigned int idx;\n+\n+\tfor (idx = 0, i = 0; idx != priv->rxqs_n; ++i) {\n+\t\tstruct mlx5_rxq_ctrl *rxq_ctrl;\n+\n+\t\tif (!(*priv->rxqs)[idx])\n+\t\t\tcontinue;\n+\t\trxq_ctrl = container_of((*priv->rxqs)[idx],\n+\t\t\t\t\tstruct mlx5_rxq_ctrl, rxq);\n+\t\trxq_ctrl->flow_mark_n = 0;\n+\t\trxq_ctrl->rxq.mark = 0;\n+\t\t++idx;\n+\t}\n+}\n+\n /**\n  * Validate a flow supported by the NIC.\n  *\n@@ -1329,6 +1577,7 @@ mlx5_flow_list_create(struct rte_eth_dev *dev,\n \t\tif (ret < 0)\n \t\t\tgoto error;\n \t}\n+\tmlx5_flow_rxq_mark_set(dev, flow);\n \tTAILQ_INSERT_TAIL(list, flow, next);\n \treturn flow;\n error:\n@@ -1373,6 +1622,7 @@ mlx5_flow_list_destroy(struct rte_eth_dev *dev, struct mlx5_flows *list,\n {\n \tmlx5_flow_remove(dev, flow);\n \tTAILQ_REMOVE(list, flow, next);\n+\tmlx5_flow_rxq_mark_trim(dev, flow);\n \trte_free(flow);\n }\n \n@@ -1410,6 +1660,7 @@ mlx5_flow_stop(struct rte_eth_dev *dev, struct mlx5_flows *list)\n \n \tTAILQ_FOREACH_REVERSE(flow, list, mlx5_flows, next)\n \t\tmlx5_flow_remove(dev, flow);\n+\tmlx5_flow_rxq_mark_clear(dev);\n }\n \n /**\n@@ -1434,6 +1685,7 @@ mlx5_flow_start(struct rte_eth_dev *dev, struct mlx5_flows *list)\n \t\tret = mlx5_flow_apply(dev, flow, &error);\n \t\tif (ret < 0)\n \t\t\tgoto error;\n+\t\tmlx5_flow_rxq_mark_set(dev, flow);\n \t}\n \treturn 0;\n error:\ndiff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h\nindex 708fdd4fa..99b769d8a 100644\n--- a/drivers/net/mlx5/mlx5_rxtx.h\n+++ b/drivers/net/mlx5/mlx5_rxtx.h\n@@ -138,6 +138,7 @@ struct mlx5_rxq_ctrl {\n \tunsigned int socket; /* CPU socket ID for allocations. */\n \tunsigned int irq:1; /* Whether IRQ is enabled. */\n \tuint16_t idx; /* Queue index. */\n+\tuint32_t flow_mark_n; /* Number of Mark/Flag flows using this Queue. */\n };\n \n /* Indirection table. */\n",
    "prefixes": [
        "v4",
        "12/21"
    ]
}