get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45236,
    "url": "https://patches.dpdk.org/api/patches/45236/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180924194951.18650-11-yskoh@mellanox.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20180924194951.18650-11-yskoh@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180924194951.18650-11-yskoh@mellanox.com",
    "date": "2018-09-24T19:50:24",
    "name": "[v2,10/11] net/mlx5: add Direct Verbs final functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "61dad709ecd6bda71d4dbd74c00ea7e95e08b9a3",
    "submitter": {
        "id": 636,
        "url": "https://patches.dpdk.org/api/people/636/?format=api",
        "name": "Yongseok Koh",
        "email": "yskoh@mellanox.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180924194951.18650-11-yskoh@mellanox.com/mbox/",
    "series": [
        {
            "id": 1473,
            "url": "https://patches.dpdk.org/api/series/1473/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1473",
            "date": "2018-09-24T19:50:04",
            "name": "net/mlx5: add Direct Verbs flow driver support",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/1473/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/45236/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/45236/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 EF5151B179;\n\tMon, 24 Sep 2018 21:50:37 +0200 (CEST)",
            "from EUR01-HE1-obe.outbound.protection.outlook.com\n\t(mail-he1eur01on0069.outbound.protection.outlook.com [104.47.0.69])\n\tby dpdk.org (Postfix) with ESMTP id 05B301B12C\n\tfor <dev@dpdk.org>; Mon, 24 Sep 2018 21:50:27 +0200 (CEST)",
            "from DB3PR0502MB3980.eurprd05.prod.outlook.com (52.134.72.27) by\n\tDB3PR0502MB3963.eurprd05.prod.outlook.com (52.134.72.22) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\t15.20.1164.20; Mon, 24 Sep 2018 19:50:25 +0000",
            "from DB3PR0502MB3980.eurprd05.prod.outlook.com\n\t([fe80::1cb0:661b:ecab:6045]) by\n\tDB3PR0502MB3980.eurprd05.prod.outlook.com\n\t([fe80::1cb0:661b:ecab:6045%2]) with mapi id 15.20.1164.017;\n\tMon, 24 Sep 2018 19:50:25 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com;\n\ts=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=sUaZ7n4NnlZWtb5rDyQCm/sF7MksgNI4fk2gvaFj+sw=;\n\tb=Biee2OheRp1sGwAngfzwe6P9vPZR2IRSnekrGjGKViy2MRG1mh5Pmmspjwe+c2s2HOXPsgEDi6QesrDnTnj6ErKcNNmYqkny8iVwRXypg8HSI+j7L28MxWhcK6Q4gKlNOBhtLePf9jD2FUXwQpcncI/6b5f1mKO3mMjAjJdY/CI=",
        "From": "Yongseok Koh <yskoh@mellanox.com>",
        "To": "Thomas Monjalon <thomas@monjalon.net>,\n\tShahaf Shuler <shahafs@mellanox.com>",
        "CC": "\"dev@dpdk.org\" <dev@dpdk.org>, Ori Kam <orika@mellanox.com>",
        "Thread-Topic": "[PATCH v2 10/11] net/mlx5: add Direct Verbs final functions",
        "Thread-Index": "AQHUVD/VD93IXdUCr0SuUl6/n085jw==",
        "Date": "Mon, 24 Sep 2018 19:50:24 +0000",
        "Message-ID": "<20180924194951.18650-11-yskoh@mellanox.com>",
        "References": "<20180919064814.21645-1-yskoh@mellanox.com>\n\t<20180924194951.18650-1-yskoh@mellanox.com>",
        "In-Reply-To": "<20180924194951.18650-1-yskoh@mellanox.com>",
        "Accept-Language": "en-US",
        "Content-Language": "en-US",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "x-clientproxiedby": "BN6PR2001CA0039.namprd20.prod.outlook.com\n\t(2603:10b6:405:16::25) To DB3PR0502MB3980.eurprd05.prod.outlook.com\n\t(2603:10a6:8:10::27)",
        "authentication-results": "spf=none (sender IP is )\n\tsmtp.mailfrom=yskoh@mellanox.com; ",
        "x-ms-exchange-messagesentrepresentingtype": "1",
        "x-originating-ip": "[209.116.155.178]",
        "x-ms-publictraffictype": "Email",
        "x-microsoft-exchange-diagnostics": "1; DB3PR0502MB3963;\n\t6:GvqRqPzJFa0CgbypaKSUJ6Vb/4GWJdps6jKs+1l9nWxFuclkz26VWvxtYgM3sgeVCo93QLz5xg68cgHav5yXv3trw/uLxBl1oFOOQv7wfclnziOoGj4dxFBEn76X9eolvAB6TzecpPq9j8qTI8Q86QndL9PhKI2oYwKflmEnZA50SGEhgmcTzV0glp2QwFSQEC4IPSu2OTm5k/kbrWdzXpwD0wMZcYzkWWAN90VB59HSzKWEolAW+lFYXHRGtKWlqitpLnKPuQOhW/l5GKyR20aU6nfoaCgaw+RdDz2+wPtxBznTYV7o/PUkJcrjdkDfazzwZI1j9itUU5dOwYhxuHt3G1LrfrhISWI6FrOamF7Wr67IPQXsGozbPcwNFqec8Bu5cEWX6u0e324fZjcWqBARyDwqmeoOWcUrCdyvIffW823ywxKPUt814gnWafhx/pt47wXECdM8sI0QcdEW8g==;\n\t5:dHC1jvV5xJ9NIki5Fw65Z6u95J1Y9DyMrxPzwjprKadyLzba1KrHDd5ryEqNdhmOurQ6l9sxRsS3YVfARLqxwBrfyTKIguoMlOtUJAw26Ok6RpqNTsA8/12pQi8A6FLSaW2QIDT9cl5r3D3ZBd9ae8wgjLuqiucrS6BZ8+he4cI=;\n\t7:oRZtzK8eLEX4XmvWbsjhPHnt4rWoCuEkdpmBd97hQ3SJW+ywlgP09nS2Sl/n0qBq/ggmoTkYp9a365DtoTI9uBKTXablo3E9hJr5bWrjY5yT9pbpDOMQJqS41Xbru+xFH7t52whCei6fYeBav5k5KHM8AxGcPDG9JcsK0d9REs4hLIcsHNfqBEGm3zPJHwe923gzmlmpOXRRmZE/Tu/omoOkgtGaFik91dJj+UMULUNoxO4SWO3vfQDnpHm03XbC",
        "x-ms-office365-filtering-correlation-id": "95cb2656-f67d-41a7-f78b-08d62256f82a",
        "x-ms-office365-filtering-ht": "Tenant",
        "x-microsoft-antispam": "BCL:0; PCL:0;\n\tRULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);\n\tSRVR:DB3PR0502MB3963; ",
        "x-ms-traffictypediagnostic": "DB3PR0502MB3963:",
        "x-ld-processed": "a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr",
        "x-microsoft-antispam-prvs": "<DB3PR0502MB396398E10A21DC64EDCE5A18C3170@DB3PR0502MB3963.eurprd05.prod.outlook.com>",
        "x-exchange-antispam-report-test": "UriScan:;",
        "x-ms-exchange-senderadcheck": "1",
        "x-exchange-antispam-report-cfa-test": "BCL:0; PCL:0;\n\tRULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699051);\n\tSRVR:DB3PR0502MB3963; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0502MB3963; ",
        "x-forefront-prvs": "0805EC9467",
        "x-forefront-antispam-report": "SFV:NSPM;\n\tSFS:(10009020)(1496009)(39860400002)(376002)(346002)(136003)(396003)(366004)(189003)(199004)(71190400001)(71200400001)(2906002)(97736004)(6486002)(107886003)(105586002)(8676002)(81156014)(8936002)(6636002)(81166006)(106356001)(53936002)(6512007)(6436002)(68736007)(2900100001)(5660300001)(66066001)(52116002)(478600001)(5250100002)(316002)(76176011)(386003)(6506007)(1076002)(14454004)(6116002)(54906003)(110136005)(99286004)(3846002)(26005)(7736002)(256004)(476003)(446003)(14444005)(36756003)(86362001)(102836004)(2616005)(305945005)(186003)(25786009)(486006)(11346002)(4326008)(575784001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3963;\n\tH:DB3PR0502MB3980.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; \n\tPTR:InfoNoRecords; MX:1; A:1; ",
        "received-spf": "None (protection.outlook.com: mellanox.com does not designate\n\tpermitted sender hosts)",
        "x-microsoft-antispam-message-info": "j96z+GNyD+PfM65yP19qizaX7xK0pX+fnlxX2ydMaf4Ew9xx18bR5JDEV/dOI6pR8hgmMyu4QkRdlvktUM8eSNnL9sl4pj+T5E4YVw+LSK1eWd554Fs9QEZIpRqeifTZEp6MHil+sB4id23UqRMoO/ONhXEsyIVwBWulxdvA6R2SlbkUuFFsBs12W4Xa/yzDC1m//i/nMNzvheU62fOhuY/++45XekDjJ+JZD8a9K+nDwMKJdmPpdmh/wWIdmlcqBsndslbxkFd9YNZBnFwdWa77OrM8V11U+Ff8C8OtV69B+rGwuPbLVKX/3JqN/T69yLHc3aecY20bJsyI/S9TtEThmQtALz+/XODKil4MRS8=",
        "spamdiagnosticoutput": "1:99",
        "spamdiagnosticmetadata": "NSPM",
        "Content-Type": "text/plain; charset=\"iso-8859-1\"",
        "Content-Transfer-Encoding": "quoted-printable",
        "MIME-Version": "1.0",
        "X-OriginatorOrg": "Mellanox.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "95cb2656-f67d-41a7-f78b-08d62256f82a",
        "X-MS-Exchange-CrossTenant-originalarrivaltime": "24 Sep 2018 19:50:24.9507\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
        "X-MS-Exchange-CrossTenant-id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DB3PR0502MB3963",
        "Subject": "[dpdk-dev] [PATCH v2 10/11] net/mlx5: add Direct Verbs final\n\tfunctions",
        "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": "From: Ori Kam <orika@mellanox.com>\n\nThis commits add the missing function which are apply, remove, and\ndestroy.\n\nSigned-off-by: Ori Kam <orika@mellanox.com>\nAcked-by: Yongseok Koh <yskoh@mellanox.com>\n---\n drivers/net/mlx5/mlx5_flow.c    |   4 +\n drivers/net/mlx5/mlx5_flow.h    |   2 +\n drivers/net/mlx5/mlx5_flow_dv.c | 192 +++++++++++++++++++++++++++++++++++++++-\n 3 files changed, 194 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c\nindex 196d9fcbe..1990d7acc 100644\n--- a/drivers/net/mlx5/mlx5_flow.c\n+++ b/drivers/net/mlx5/mlx5_flow.c\n@@ -2473,5 +2473,9 @@ mlx5_dev_filter_ctrl(struct rte_eth_dev *dev,\n void\n mlx5_flow_init_driver_ops(struct rte_eth_dev *dev __rte_unused)\n {\n+#ifdef HAVE_IBV_FLOW_DV_SUPPORT\n+\tmlx5_flow_dv_get_driver_ops(&nic_ops);\n+#else\n \tmlx5_flow_verbs_get_driver_ops(&nic_ops);\n+#endif\n }\ndiff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h\nindex ec860ef4b..53c0eeb56 100644\n--- a/drivers/net/mlx5/mlx5_flow.h\n+++ b/drivers/net/mlx5/mlx5_flow.h\n@@ -189,7 +189,9 @@ struct mlx5_flow {\n \tstruct rte_flow *flow; /**< Pointer to the main flow. */\n \tuint32_t layers; /**< Bit-fields that holds the detected layers. */\n \tunion {\n+#ifdef HAVE_IBV_FLOW_DV_SUPPORT\n \t\tstruct mlx5_flow_dv dv;\n+#endif\n \t\tstruct mlx5_flow_verbs verbs;\n \t};\n };\ndiff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c\nindex 916989988..71af410b2 100644\n--- a/drivers/net/mlx5/mlx5_flow_dv.c\n+++ b/drivers/net/mlx5/mlx5_flow_dv.c\n@@ -2,6 +2,7 @@\n  * Copyright 2018 Mellanox Technologies, Ltd\n  */\n \n+\n #include <sys/queue.h>\n #include <stdalign.h>\n #include <stdint.h>\n@@ -1095,7 +1096,7 @@ flow_dv_matcher_register(struct rte_eth_dev *dev,\n \tif (matcher->egress)\n \t\tdv_attr.flags |= IBV_FLOW_ATTR_FLAGS_EGRESS;\n \tcache->cache.resource =\n-\t\tmlx5dv_create_flow_matcher(priv->ctx, &dv_attr);\n+\t\tmlx5_glue->dv_create_flow_matcher(priv->ctx, &dv_attr);\n \tif (!cache->cache.resource)\n \t\treturn rte_flow_error_set(error, ENOMEM,\n \t\t\t\t\t  RTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n@@ -1168,6 +1169,189 @@ flow_dv_translate(struct rte_eth_dev *dev,\n }\n \n /**\n+ * Apply the flow to the NIC.\n+ *\n+ * @param[in] dev\n+ *   Pointer to the Ethernet device structure.\n+ * @param[in, out] flow\n+ *   Pointer to flow structure.\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_apply(struct rte_eth_dev *dev, struct rte_flow *flow,\n+\t      struct rte_flow_error *error)\n+{\n+\tstruct mlx5_flow_dv *dv;\n+\tstruct mlx5_flow *dev_flow;\n+\tint n;\n+\tint err;\n+\n+\tLIST_FOREACH(dev_flow, &flow->dev_flows, next) {\n+\t\tdv = &dev_flow->dv;\n+\t\tn = dv->actions_n;\n+\t\tif (flow->actions & MLX5_ACTION_DROP) {\n+\t\t\tdv->hrxq = mlx5_hrxq_drop_new(dev);\n+\t\t\tif (!dv->hrxq) {\n+\t\t\t\trte_flow_error_set\n+\t\t\t\t\t(error, errno,\n+\t\t\t\t\t RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL,\n+\t\t\t\t\t \"cannot get drop hash queue\");\n+\t\t\t\tgoto error;\n+\t\t\t}\n+\t\t\tdv->actions[n].type = MLX5DV_FLOW_ACTION_DEST_IBV_QP;\n+\t\t\tdv->actions[n].qp = dv->hrxq->qp;\n+\t\t\tn++;\n+\t\t} else {\n+\t\t\tstruct mlx5_hrxq *hrxq;\n+\t\t\thrxq = mlx5_hrxq_get(dev, flow->key,\n+\t\t\t\t\t     MLX5_RSS_HASH_KEY_LEN,\n+\t\t\t\t\t     dv->hash_fields,\n+\t\t\t\t\t     (*flow->queue),\n+\t\t\t\t\t     flow->rss.queue_num);\n+\t\t\tif (!hrxq)\n+\t\t\t\thrxq = mlx5_hrxq_new\n+\t\t\t\t\t(dev, flow->key, MLX5_RSS_HASH_KEY_LEN,\n+\t\t\t\t\t dv->hash_fields, (*flow->queue),\n+\t\t\t\t\t flow->rss.queue_num,\n+\t\t\t\t\t !!(flow->layers &\n+\t\t\t\t\t    MLX5_FLOW_LAYER_TUNNEL));\n+\t\t\tif (!hrxq) {\n+\t\t\t\trte_flow_error_set\n+\t\t\t\t\t(error, rte_errno,\n+\t\t\t\t\t RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL,\n+\t\t\t\t\t \"cannot get hash queue\");\n+\t\t\t\tgoto error;\n+\t\t\t}\n+\t\t\tdv->hrxq = hrxq;\n+\t\t\tdv->actions[n].type = MLX5DV_FLOW_ACTION_DEST_IBV_QP;\n+\t\t\tdv->actions[n].qp = hrxq->qp;\n+\t\t\tn++;\n+\t\t}\n+\t\tdv->flow =\n+\t\t\tmlx5_glue->dv_create_flow(dv->matcher->cache.resource,\n+\t\t\t\t\t\t  (void *)&dv->value, n,\n+\t\t\t\t\t\t  dv->actions);\n+\t\tif (!dv->flow) {\n+\t\t\trte_flow_error_set(error, errno,\n+\t\t\t\t\t   RTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\t   NULL,\n+\t\t\t\t\t   \"hardware refuses to create flow\");\n+\t\t\tgoto error;\n+\t\t}\n+\t}\n+\treturn 0;\n+error:\n+\terr = rte_errno; /* Save rte_errno before cleanup. */\n+\tLIST_FOREACH(dev_flow, &flow->dev_flows, next) {\n+\t\tstruct mlx5_flow_dv *dv = &dev_flow->dv;\n+\t\tif (dv->hrxq) {\n+\t\t\tif (flow->actions & MLX5_FLOW_FATE_DROP)\n+\t\t\t\tmlx5_hrxq_drop_release(dev);\n+\t\t\telse\n+\t\t\t\tmlx5_hrxq_release(dev, dv->hrxq);\n+\t\t\tdv->hrxq = NULL;\n+\t\t}\n+\t}\n+\trte_errno = err; /* Restore rte_errno. */\n+\treturn -rte_errno;\n+}\n+\n+/**\n+ * Release the flow matcher.\n+ *\n+ * @param dev\n+ *   Pointer to Ethernet device.\n+ * @param matcher\n+ *   Pointer to flow matcher.\n+ *\n+ * @return\n+ *   1 while a reference on it exists, 0 when freed.\n+ */\n+static int\n+flow_dv_matcher_release(struct rte_eth_dev *dev,\n+\t\t\tstruct mlx5_flow_dv_matcher *matcher)\n+{\n+\tstruct mlx5_cache *cache = &matcher->cache;\n+\n+\tassert(cache->resource);\n+\tDRV_LOG(DEBUG, \"port %u matcher %p: refcnt %d--\",\n+\t\tdev->data->port_id, (void *)cache,\n+\t\trte_atomic32_read(&cache->refcnt));\n+\tif (rte_atomic32_dec_and_test(&cache->refcnt)) {\n+\t\tclaim_zero(mlx5_glue->dv_destroy_flow_matcher(cache->resource));\n+\t\tLIST_REMOVE(cache, next);\n+\t\trte_free(cache);\n+\t\tDRV_LOG(DEBUG, \"port %u matcher %p: removed\",\n+\t\t\tdev->data->port_id, (void *)cache);\n+\t\treturn 0;\n+\t}\n+\treturn 1;\n+}\n+\n+/**\n+ * Remove the flow from the NIC but keeps it in memory.\n+ *\n+ * @param[in] dev\n+ *   Pointer to Ethernet device.\n+ * @param[in, out] flow\n+ *   Pointer to flow structure.\n+ */\n+static void\n+flow_dv_remove(struct rte_eth_dev *dev, struct rte_flow *flow)\n+{\n+\tstruct mlx5_flow_dv *dv;\n+\tstruct mlx5_flow *dev_flow;\n+\n+\tif (!flow)\n+\t\treturn;\n+\tLIST_FOREACH(dev_flow, &flow->dev_flows, next) {\n+\t\tdv = &dev_flow->dv;\n+\t\tif (dv->flow) {\n+\t\t\tclaim_zero(mlx5_glue->destroy_flow(dv->flow));\n+\t\t\tdv->flow = NULL;\n+\t\t}\n+\t\tif (dv->hrxq) {\n+\t\t\tif (flow->actions & MLX5_ACTION_DROP)\n+\t\t\t\tmlx5_hrxq_drop_release(dev);\n+\t\t\telse\n+\t\t\t\tmlx5_hrxq_release(dev, dv->hrxq);\n+\t\t\tdv->hrxq = NULL;\n+\t\t}\n+\t}\n+\tif (flow->counter)\n+\t\tflow->counter = NULL;\n+}\n+\n+/**\n+ * Remove the flow from the NIC and the memory.\n+ *\n+ * @param[in] dev\n+ *   Pointer to the Ethernet device structure.\n+ * @param[in, out] flow\n+ *   Pointer to flow structure.\n+ */\n+static void\n+flow_dv_destroy(struct rte_eth_dev *dev, struct rte_flow *flow)\n+{\n+\tstruct mlx5_flow *dev_flow;\n+\n+\tif (!flow)\n+\t\treturn;\n+\tflow_dv_remove(dev, flow);\n+\twhile (!LIST_EMPTY(&flow->dev_flows)) {\n+\t\tdev_flow = LIST_FIRST(&flow->dev_flows);\n+\t\tLIST_REMOVE(dev_flow, next);\n+\t\tif (dev_flow->dv.matcher)\n+\t\t\tflow_dv_matcher_release(dev, dev_flow->dv.matcher);\n+\t\trte_free(dev_flow);\n+\t}\n+}\n+\n+/**\n  * Fills the flow_ops with the function pointers.\n  *\n  * @param[out] flow_ops\n@@ -1180,9 +1364,9 @@ mlx5_flow_dv_get_driver_ops(struct mlx5_flow_driver_ops *flow_ops)\n \t\t.validate = flow_dv_validate,\n \t\t.prepare = flow_dv_prepare,\n \t\t.translate = flow_dv_translate,\n-\t\t.apply = NULL,\n-\t\t.remove = NULL,\n-\t\t.destroy = NULL,\n+\t\t.apply = flow_dv_apply,\n+\t\t.remove = flow_dv_remove,\n+\t\t.destroy = flow_dv_destroy,\n \t};\n }\n \n",
    "prefixes": [
        "v2",
        "10/11"
    ]
}