get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 95672,
    "url": "http://patches.dpdk.org/api/patches/95672/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210712014654.32428-16-suanmingm@nvidia.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": "<20210712014654.32428-16-suanmingm@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210712014654.32428-16-suanmingm@nvidia.com",
    "date": "2021-07-12T01:46:43",
    "name": "[v5,15/26] common/mlx5: call list callbacks with context",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "e7cf846a2feb85adfb69b88aaeea69e1073abc09",
    "submitter": {
        "id": 1887,
        "url": "http://patches.dpdk.org/api/people/1887/?format=api",
        "name": "Suanming Mou",
        "email": "suanmingm@nvidia.com"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210712014654.32428-16-suanmingm@nvidia.com/mbox/",
    "series": [
        {
            "id": 17759,
            "url": "http://patches.dpdk.org/api/series/17759/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=17759",
            "date": "2021-07-12T01:46:29",
            "name": "net/mlx5: insertion rate optimization",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/17759/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/95672/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/95672/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D4E15A0C4B;\n\tMon, 12 Jul 2021 03:49:20 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A35F9411B2;\n\tMon, 12 Jul 2021 03:48:04 +0200 (CEST)",
            "from NAM12-DM6-obe.outbound.protection.outlook.com\n (mail-dm6nam12on2052.outbound.protection.outlook.com [40.107.243.52])\n by mails.dpdk.org (Postfix) with ESMTP id 767634117A\n for <dev@dpdk.org>; Mon, 12 Jul 2021 03:48:03 +0200 (CEST)",
            "from BN8PR04CA0066.namprd04.prod.outlook.com (2603:10b6:408:d4::40)\n by CH2PR12MB3733.namprd12.prod.outlook.com (2603:10b6:610:15::14)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.23; Mon, 12 Jul\n 2021 01:48:00 +0000",
            "from BN8NAM11FT024.eop-nam11.prod.protection.outlook.com\n (2603:10b6:408:d4:cafe::1a) by BN8PR04CA0066.outlook.office365.com\n (2603:10b6:408:d4::40) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend\n Transport; Mon, 12 Jul 2021 01:48:00 +0000",
            "from mail.nvidia.com (216.228.112.34) by\n BN8NAM11FT024.mail.protection.outlook.com (10.13.177.38) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4308.20 via Frontend Transport; Mon, 12 Jul 2021 01:48:00 +0000",
            "from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com\n (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Jul\n 2021 01:47:36 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=I0s0hLyO2vmOCOkESCwdh/BgIFvuT1wpC8fXgFoV9BdaZm9z8DEXXNLbdflga1hVtg+tppdbf016yJH/E9+sQaW082MqfTnu7mo6Ba46O0zYgcL3GPpx5LH5r0474Fe2Qxjl8EzRCuq+zY15KIKmtSgyCzpI218234We+/j8STuQjk497z9THn7e/6xRiYh8BAD7XE8/WsLEnF7FenxeidnA0agiaZ3w6AOanQM5Ypxyr3oisGo/ty4EHKU6KG47WVS7cWaNFS05MFkK7IBakLT6/za4MfT/0HWFeQbMYREuWIA4+JdLqswOQc+iUK8KwaaZhUMwmn4XMAhPYnxb0A==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=eKZvt++nB0YTgnP4Ra/+BNRML1ytpT1OgMuz8n0xDBQ=;\n b=Cl+hzoqduZR8Wizh0EYF8ObcTyUTAGrvlGxIir66vOhYVaLiiGN3CK6G8NMyUtLw5nV6zQ0doPsq54QZalHglOKgvtEb9AKADF9I0jvMnezkbHwN1xb0cUh7JR9HLBcljYJtjeytENKjNU9vhCTuWIcyjoHKLDYohCliIQO2n60dSOret+J7p4ytkOqFDYnJ1hAZ4bNt/jYuNGlk7k+f+4jqkeiYFR+A2uxFIvaLCCJp192cxEoQnXouGa8PMviH/hx4hjThh2lbrwML20xDyakb+tB1qNBkZrTu+apkviNYGczhRbjDEEI6ACnAtZlyy7mk9FvanJpJi6GLSAXG2A==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com;\n dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com;\n dkim=none (message not signed); arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=eKZvt++nB0YTgnP4Ra/+BNRML1ytpT1OgMuz8n0xDBQ=;\n b=ficExYZfyv14QZytAm0CHHduDvX9WokMSfxUzlwCOy/WTVdGiNCvdxTbeIKLtdVxf580otIpEMJ/PQNEgAIslvHrsv6lnwQTstebdVYRHtfNzU2Fgohox0Wg/Qx5t1eSVzOGvPv695UMELWbJ3SnFwS4FF9dpFzyhrv/WYLdcNXPcXVkdfUb3PbaX9J+F37d4NLue5b6W9qwVKVlJ1PeBN0pQLSrnVI97gt1IjFq5rCVUV9P46La10BYJDNtMNsixHkDrcr+snX7SwZ4Y0hubrdJY2Xza9KJXbj9nMILbLkWBmznOYT453JeZWBvE9nMpgdlMxbkQm3h5tgOlCqpnA==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.112.34)\n smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed)\n header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.112.34 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.112.34; helo=mail.nvidia.com;",
        "From": "Suanming Mou <suanmingm@nvidia.com>",
        "To": "<viacheslavo@nvidia.com>, <matan@nvidia.com>",
        "CC": "<rasland@nvidia.com>, <orika@nvidia.com>, <dev@dpdk.org>",
        "Date": "Mon, 12 Jul 2021 04:46:43 +0300",
        "Message-ID": "<20210712014654.32428-16-suanmingm@nvidia.com>",
        "X-Mailer": "git-send-email 2.18.1",
        "In-Reply-To": "<20210712014654.32428-1-suanmingm@nvidia.com>",
        "References": "<20210527093403.1153127-1-suanmingm@nvidia.com>\n <20210712014654.32428-1-suanmingm@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[172.20.187.5]",
        "X-ClientProxiedBy": "HQMAIL101.nvidia.com (172.20.187.10) To\n HQMAIL107.nvidia.com (172.20.187.13)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "cf0e14f0-6b19-4de1-cc64-08d944d71493",
        "X-MS-TrafficTypeDiagnostic": "CH2PR12MB3733:",
        "X-Microsoft-Antispam-PRVS": "\n <CH2PR12MB3733550F7AFDD097340FFD81C1159@CH2PR12MB3733.namprd12.prod.outlook.com>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:1265;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n VLRkLIe8LDoY2E/zYEkkD9DZrY9/Xg3fzYJfs+b7g3WQZgjDZlZf5waMgWMKaHZb0rOhX0h+lpuGszDdrVJYEPZnwR1DaScl3z6xe7ScLqe5WLhaB1UrwyI+yvu41ORwiAmHem8/1kNO7RnSewJRq9FEJuHTOUfiNr0XpZtYJR7BP2NUAkF81Uu96iIb0Vg+xj6wMALE89rCbmHQRIc3M7lthibhfgfYNeYQoSmY5jRkPUdP+mkFv54Eqt55n9+chupUsePHeexeZKmcos0MA6NU7/xHsJ0elPF99BUigfMF61PCJtmw8aHARLbZ2IDPkMziMpW7SDEo/gWTMWWzyyssBfg40nMiyqa7Ie3UhITRJMYOKNQ1hWgVrMnlce+fC+Czk9i5kTv+GpqifFMNqvyN1oAxuD3iRvSklievrjNJnu29h4Dg8L89dE8Dzz20jauxE1z4B12g7Ap+m/FNsRTChRqmi0JKvEdXnb86PXzGsccgTkSN2BneImFRoJhs9FWyYKZgUDAzAk36wZzmgXCRepGpXDvFrSzkpCsg+oHN8I3scf8lJl0O/gvcdk0naCk5u/uQx8ui3b36AymUgsSEYHVHhAEJYWEApXHNZQW/CISMBF1U6GqzA5/wnnvW4WCXdRbnCC4fcwnlkv+e2yCAGWyzTInTAbN2BqoqKkvpbButEa0O/tUR4mu3z1zkgCPUk5sO+pRNdV5V8xT+ZEz0AhkEoMIFAYiBnPuajTo=",
        "X-Forefront-Antispam-Report": "CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE;\n SFS:(4636009)(396003)(346002)(376002)(136003)(39860400002)(36840700001)(46966006)(7636003)(478600001)(6666004)(16526019)(356005)(83380400001)(82740400003)(1076003)(2906002)(8936002)(2616005)(6636002)(316002)(54906003)(336012)(30864003)(4326008)(8676002)(6286002)(55016002)(36906005)(110136005)(426003)(47076005)(82310400003)(7696005)(70586007)(36860700001)(26005)(70206006)(5660300002)(86362001)(186003)(34020700004)(36756003);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "12 Jul 2021 01:48:00.1714 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n cf0e14f0-6b19-4de1-cc64-08d944d71493",
        "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n BN8NAM11FT024.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "CH2PR12MB3733",
        "Subject": "[dpdk-dev] [PATCH v5 15/26] common/mlx5: call list callbacks with\n context",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This commit optimizes to call the list callback functions with global\ncontext directly.\n\nSigned-off-by: Suanming Mou <suanmingm@nvidia.com>\nAcked-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/common/mlx5/mlx5_common_utils.c |  24 ++---\n drivers/common/mlx5/mlx5_common_utils.h |  36 ++++----\n drivers/net/mlx5/mlx5_flow.h            |  94 +++++++++----------\n drivers/net/mlx5/mlx5_flow_dv.c         | 115 +++++++++++-------------\n drivers/net/mlx5/mlx5_rx.h              |  13 ++-\n drivers/net/mlx5/mlx5_rxq.c             |  53 +++--------\n 6 files changed, 132 insertions(+), 203 deletions(-)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_common_utils.c b/drivers/common/mlx5/mlx5_common_utils.c\nindex 6ac78ba97f..50c98143f7 100644\n--- a/drivers/common/mlx5/mlx5_common_utils.c\n+++ b/drivers/common/mlx5/mlx5_common_utils.c\n@@ -55,7 +55,7 @@ __list_lookup(struct mlx5_list *list, int lcore_index, void *ctx, bool reuse)\n \tuint32_t ret;\n \n \twhile (entry != NULL) {\n-\t\tif (list->cb_match(list, entry, ctx) == 0) {\n+\t\tif (list->cb_match(list->ctx, entry, ctx) == 0) {\n \t\t\tif (reuse) {\n \t\t\t\tret = __atomic_add_fetch(&entry->ref_cnt, 1,\n \t\t\t\t\t\t\t __ATOMIC_RELAXED) - 1;\n@@ -96,7 +96,7 @@ static struct mlx5_list_entry *\n mlx5_list_cache_insert(struct mlx5_list *list, int lcore_index,\n \t\t       struct mlx5_list_entry *gentry, void *ctx)\n {\n-\tstruct mlx5_list_entry *lentry = list->cb_clone(list, gentry, ctx);\n+\tstruct mlx5_list_entry *lentry = list->cb_clone(list->ctx, gentry, ctx);\n \n \tif (unlikely(!lentry))\n \t\treturn NULL;\n@@ -121,9 +121,9 @@ __list_cache_clean(struct mlx5_list *list, int lcore_index)\n \t\tif (__atomic_load_n(&entry->ref_cnt, __ATOMIC_RELAXED) == 0) {\n \t\t\tLIST_REMOVE(entry, next);\n \t\t\tif (list->lcores_share)\n-\t\t\t\tlist->cb_clone_free(list, entry);\n+\t\t\t\tlist->cb_clone_free(list->ctx, entry);\n \t\t\telse\n-\t\t\t\tlist->cb_remove(list, entry);\n+\t\t\t\tlist->cb_remove(list->ctx, entry);\n \t\t\tinv_cnt--;\n \t\t}\n \t\tentry = nentry;\n@@ -162,7 +162,7 @@ mlx5_list_register(struct mlx5_list *list, void *ctx)\n \t\trte_rwlock_read_unlock(&list->lock);\n \t}\n \t/* 3. Prepare new entry for global list and for cache. */\n-\tentry = list->cb_create(list, entry, ctx);\n+\tentry = list->cb_create(list->ctx, ctx);\n \tif (unlikely(!entry))\n \t\treturn NULL;\n \tentry->ref_cnt = 1u;\n@@ -174,9 +174,9 @@ mlx5_list_register(struct mlx5_list *list, void *ctx)\n \t\t\tlist->name, lcore_index, (void *)entry, entry->ref_cnt);\n \t\treturn entry;\n \t}\n-\tlocal_entry = list->cb_clone(list, entry, ctx);\n+\tlocal_entry = list->cb_clone(list->ctx, entry, ctx);\n \tif (unlikely(!local_entry)) {\n-\t\tlist->cb_remove(list, entry);\n+\t\tlist->cb_remove(list->ctx, entry);\n \t\treturn NULL;\n \t}\n \tlocal_entry->ref_cnt = 1u;\n@@ -192,8 +192,8 @@ mlx5_list_register(struct mlx5_list *list, void *ctx)\n \t\tif (unlikely(oentry)) {\n \t\t\t/* 4.5. Found real race!!, reuse the old entry. */\n \t\t\trte_rwlock_write_unlock(&list->lock);\n-\t\t\tlist->cb_remove(list, entry);\n-\t\t\tlist->cb_clone_free(list, local_entry);\n+\t\t\tlist->cb_remove(list->ctx, entry);\n+\t\t\tlist->cb_clone_free(list->ctx, local_entry);\n \t\t\treturn mlx5_list_cache_insert(list, lcore_index, oentry,\n \t\t\t\t\t\t      ctx);\n \t\t}\n@@ -223,9 +223,9 @@ mlx5_list_unregister(struct mlx5_list *list,\n \tif (entry->lcore_idx == (uint32_t)lcore_idx) {\n \t\tLIST_REMOVE(entry, next);\n \t\tif (list->lcores_share)\n-\t\t\tlist->cb_clone_free(list, entry);\n+\t\t\tlist->cb_clone_free(list->ctx, entry);\n \t\telse\n-\t\t\tlist->cb_remove(list, entry);\n+\t\t\tlist->cb_remove(list->ctx, entry);\n \t} else if (likely(lcore_idx != -1)) {\n \t\t__atomic_add_fetch(&list->cache[entry->lcore_idx].inv_cnt, 1,\n \t\t\t\t   __ATOMIC_RELAXED);\n@@ -244,7 +244,7 @@ mlx5_list_unregister(struct mlx5_list *list,\n \tif (likely(gentry->ref_cnt == 0)) {\n \t\tLIST_REMOVE(gentry, next);\n \t\trte_rwlock_write_unlock(&list->lock);\n-\t\tlist->cb_remove(list, gentry);\n+\t\tlist->cb_remove(list->ctx, gentry);\n \t\t__atomic_sub_fetch(&list->count, 1, __ATOMIC_RELAXED);\n \t\tDRV_LOG(DEBUG, \"mlx5 list %s entry %p removed.\",\n \t\t\tlist->name, (void *)gentry);\ndiff --git a/drivers/common/mlx5/mlx5_common_utils.h b/drivers/common/mlx5/mlx5_common_utils.h\nindex 000279d236..a691ff8f0d 100644\n--- a/drivers/common/mlx5/mlx5_common_utils.h\n+++ b/drivers/common/mlx5/mlx5_common_utils.h\n@@ -33,19 +33,19 @@ struct mlx5_list_cache {\n /**\n  * Type of callback function for entry removal.\n  *\n- * @param list\n- *   The mlx5 list.\n+ * @param tool_ctx\n+ *   The tool instance user context.\n  * @param entry\n  *   The entry in the list.\n  */\n-typedef void (*mlx5_list_remove_cb)(struct mlx5_list *list,\n-\t\t\t\t     struct mlx5_list_entry *entry);\n+typedef void (*mlx5_list_remove_cb)(void *tool_ctx,\n+\t\t\t\t    struct mlx5_list_entry *entry);\n \n /**\n  * Type of function for user defined matching.\n  *\n- * @param list\n- *   The mlx5 list.\n+ * @param tool_ctx\n+ *   The tool instance context.\n  * @param entry\n  *   The entry in the list.\n  * @param ctx\n@@ -54,34 +54,28 @@ typedef void (*mlx5_list_remove_cb)(struct mlx5_list *list,\n  * @return\n  *   0 if matching, non-zero number otherwise.\n  */\n-typedef int (*mlx5_list_match_cb)(struct mlx5_list *list,\n+typedef int (*mlx5_list_match_cb)(void *tool_ctx,\n \t\t\t\t   struct mlx5_list_entry *entry, void *ctx);\n \n-typedef struct mlx5_list_entry *(*mlx5_list_clone_cb)\n-\t\t\t\t (struct mlx5_list *list,\n-\t\t\t\t  struct mlx5_list_entry *entry, void *ctx);\n+typedef struct mlx5_list_entry *(*mlx5_list_clone_cb)(void *tool_ctx,\n+\t\t\t\t      struct mlx5_list_entry *entry, void *ctx);\n \n-typedef void (*mlx5_list_clone_free_cb)(struct mlx5_list *list,\n-\t\t\t\t\t struct mlx5_list_entry *entry);\n+typedef void (*mlx5_list_clone_free_cb)(void *tool_ctx,\n+\t\t\t\t\tstruct mlx5_list_entry *entry);\n \n /**\n  * Type of function for user defined mlx5 list entry creation.\n  *\n- * @param list\n- *   The mlx5 list.\n- * @param entry\n- *   The new allocated entry, NULL if list entry size unspecified,\n- *   New entry has to be allocated in callback and return.\n+ * @param tool_ctx\n+ *   The mlx5 tool instance context.\n  * @param ctx\n  *   The pointer to new entry context.\n  *\n  * @return\n  *   Pointer of entry on success, NULL otherwise.\n  */\n-typedef struct mlx5_list_entry *(*mlx5_list_create_cb)\n-\t\t\t\t (struct mlx5_list *list,\n-\t\t\t\t  struct mlx5_list_entry *entry,\n-\t\t\t\t  void *ctx);\n+typedef struct mlx5_list_entry *(*mlx5_list_create_cb)(void *tool_ctx,\n+\t\t\t\t\t\t       void *ctx);\n \n /**\n  * Linked mlx5 list structure.\ndiff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h\nindex 59a6f31d2e..70b3119d09 100644\n--- a/drivers/net/mlx5/mlx5_flow.h\n+++ b/drivers/net/mlx5/mlx5_flow.h\n@@ -1631,64 +1631,50 @@ struct mlx5_hlist_entry *flow_dv_encap_decap_create_cb(struct mlx5_hlist *list,\n void flow_dv_encap_decap_remove_cb(struct mlx5_hlist *list,\n \t\t\t\t   struct mlx5_hlist_entry *entry);\n \n-int flow_dv_matcher_match_cb(struct mlx5_list *list,\n-\t\t\t     struct mlx5_list_entry *entry, void *ctx);\n-struct mlx5_list_entry *flow_dv_matcher_create_cb(struct mlx5_list *list,\n-\t\t\t\t\t\t  struct mlx5_list_entry *entry,\n-\t\t\t\t\t\t  void *ctx);\n-void flow_dv_matcher_remove_cb(struct mlx5_list *list,\n-\t\t\t       struct mlx5_list_entry *entry);\n-\n-int flow_dv_port_id_match_cb(struct mlx5_list *list,\n-\t\t\t     struct mlx5_list_entry *entry, void *cb_ctx);\n-struct mlx5_list_entry *flow_dv_port_id_create_cb(struct mlx5_list *list,\n-\t\t\t\t\t\t  struct mlx5_list_entry *entry,\n-\t\t\t\t\t\t  void *cb_ctx);\n-void flow_dv_port_id_remove_cb(struct mlx5_list *list,\n-\t\t\t       struct mlx5_list_entry *entry);\n-struct mlx5_list_entry *flow_dv_port_id_clone_cb(struct mlx5_list *list,\n-\t\t\t\tstruct mlx5_list_entry *entry __rte_unused,\n-\t\t\t\t void *cb_ctx);\n-void flow_dv_port_id_clone_free_cb(struct mlx5_list *list,\n-\t\t\t\tstruct mlx5_list_entry *entry __rte_unused);\n-int flow_dv_push_vlan_match_cb(struct mlx5_list *list,\n-\t\t\t       struct mlx5_list_entry *entry, void *cb_ctx);\n-struct mlx5_list_entry *flow_dv_push_vlan_create_cb(struct mlx5_list *list,\n-\t\t\t\t\t\t  struct mlx5_list_entry *entry,\n-\t\t\t\t\t\t  void *cb_ctx);\n-void flow_dv_push_vlan_remove_cb(struct mlx5_list *list,\n-\t\t\t\t struct mlx5_list_entry *entry);\n-struct mlx5_list_entry *flow_dv_push_vlan_clone_cb\n-\t\t\t\t(struct mlx5_list *list,\n+int flow_dv_matcher_match_cb(void *tool_ctx, struct mlx5_list_entry *entry,\n+\t\t\t     void *ctx);\n+struct mlx5_list_entry *flow_dv_matcher_create_cb(void *tool_ctx, void *ctx);\n+void flow_dv_matcher_remove_cb(void *tool_ctx, struct mlx5_list_entry *entry);\n+\n+int flow_dv_port_id_match_cb(void *tool_ctx, struct mlx5_list_entry *entry,\n+\t\t\t     void *cb_ctx);\n+struct mlx5_list_entry *flow_dv_port_id_create_cb(void *tool_ctx, void *cb_ctx);\n+void flow_dv_port_id_remove_cb(void *tool_ctx, struct mlx5_list_entry *entry);\n+struct mlx5_list_entry *flow_dv_port_id_clone_cb(void *tool_ctx,\n+\t\t\t\tstruct mlx5_list_entry *entry, void *cb_ctx);\n+void flow_dv_port_id_clone_free_cb(void *tool_ctx,\n+\t\t\t\t   struct mlx5_list_entry *entry);\n+\n+int flow_dv_push_vlan_match_cb(void *tool_ctx, struct mlx5_list_entry *entry,\n+\t\t\t       void *cb_ctx);\n+struct mlx5_list_entry *flow_dv_push_vlan_create_cb(void *tool_ctx,\n+\t\t\t\t\t\t    void *cb_ctx);\n+void flow_dv_push_vlan_remove_cb(void *tool_ctx, struct mlx5_list_entry *entry);\n+struct mlx5_list_entry *flow_dv_push_vlan_clone_cb(void *tool_ctx,\n \t\t\t\t struct mlx5_list_entry *entry, void *cb_ctx);\n-void flow_dv_push_vlan_clone_free_cb(struct mlx5_list *list,\n-\t\t\t\t struct mlx5_list_entry *entry);\n-\n-int flow_dv_sample_match_cb(struct mlx5_list *list,\n-\t\t\t    struct mlx5_list_entry *entry, void *cb_ctx);\n-struct mlx5_list_entry *flow_dv_sample_create_cb(struct mlx5_list *list,\n-\t\t\t\t\t\t struct mlx5_list_entry *entry,\n-\t\t\t\t\t\t void *cb_ctx);\n-void flow_dv_sample_remove_cb(struct mlx5_list *list,\n-\t\t\t      struct mlx5_list_entry *entry);\n-struct mlx5_list_entry *flow_dv_sample_clone_cb\n-\t\t\t\t(struct mlx5_list *list,\n+void flow_dv_push_vlan_clone_free_cb(void *tool_ctx,\n+\t\t\t\t     struct mlx5_list_entry *entry);\n+\n+int flow_dv_sample_match_cb(void *tool_ctx, struct mlx5_list_entry *entry,\n+\t\t\t    void *cb_ctx);\n+struct mlx5_list_entry *flow_dv_sample_create_cb(void *tool_ctx, void *cb_ctx);\n+void flow_dv_sample_remove_cb(void *tool_ctx, struct mlx5_list_entry *entry);\n+struct mlx5_list_entry *flow_dv_sample_clone_cb(void *tool_ctx,\n \t\t\t\t struct mlx5_list_entry *entry, void *cb_ctx);\n-void flow_dv_sample_clone_free_cb(struct mlx5_list *list,\n-\t\t\t      struct mlx5_list_entry *entry);\n-\n-int flow_dv_dest_array_match_cb(struct mlx5_list *list,\n-\t\t\t\tstruct mlx5_list_entry *entry, void *cb_ctx);\n-struct mlx5_list_entry *flow_dv_dest_array_create_cb(struct mlx5_list *list,\n-\t\t\t\t\t\t  struct mlx5_list_entry *entry,\n-\t\t\t\t\t\t  void *cb_ctx);\n-void flow_dv_dest_array_remove_cb(struct mlx5_list *list,\n+void flow_dv_sample_clone_free_cb(void *tool_ctx,\n \t\t\t\t  struct mlx5_list_entry *entry);\n-struct mlx5_list_entry *flow_dv_dest_array_clone_cb\n-\t\t\t\t(struct mlx5_list *list,\n-\t\t\t\t struct mlx5_list_entry *entry, void *cb_ctx);\n-void flow_dv_dest_array_clone_free_cb(struct mlx5_list *list,\n+\n+int flow_dv_dest_array_match_cb(void *tool_ctx, struct mlx5_list_entry *entry,\n+\t\t\t\tvoid *cb_ctx);\n+struct mlx5_list_entry *flow_dv_dest_array_create_cb(void *tool_ctx,\n+\t\t\t\t\t\t     void *cb_ctx);\n+void flow_dv_dest_array_remove_cb(void *tool_ctx,\n \t\t\t\t  struct mlx5_list_entry *entry);\n+struct mlx5_list_entry *flow_dv_dest_array_clone_cb(void *tool_ctx,\n+\t\t\t\t   struct mlx5_list_entry *entry, void *cb_ctx);\n+void flow_dv_dest_array_clone_free_cb(void *tool_ctx,\n+\t\t\t\t      struct mlx5_list_entry *entry);\n+\n struct mlx5_aso_age_action *flow_aso_age_get_by_idx(struct rte_eth_dev *dev,\n \t\t\t\t\t\t    uint32_t age_idx);\n int flow_dev_geneve_tlv_option_resource_register(struct rte_eth_dev *dev,\ndiff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c\nindex 4a45172a12..795de65089 100644\n--- a/drivers/net/mlx5/mlx5_flow_dv.c\n+++ b/drivers/net/mlx5/mlx5_flow_dv.c\n@@ -3780,23 +3780,21 @@ flow_dv_jump_tbl_resource_register\n }\n \n int\n-flow_dv_port_id_match_cb(struct mlx5_list *list __rte_unused,\n+flow_dv_port_id_match_cb(void *tool_ctx __rte_unused,\n \t\t\t struct mlx5_list_entry *entry, void *cb_ctx)\n {\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct mlx5_flow_dv_port_id_action_resource *ref = ctx->data;\n \tstruct mlx5_flow_dv_port_id_action_resource *res =\n-\t\t\tcontainer_of(entry, typeof(*res), entry);\n+\t\t\t\t       container_of(entry, typeof(*res), entry);\n \n \treturn ref->port_id != res->port_id;\n }\n \n struct mlx5_list_entry *\n-flow_dv_port_id_create_cb(struct mlx5_list *list,\n-\t\t\t  struct mlx5_list_entry *entry __rte_unused,\n-\t\t\t  void *cb_ctx)\n+flow_dv_port_id_create_cb(void *tool_ctx, void *cb_ctx)\n {\n-\tstruct mlx5_dev_ctx_shared *sh = list->ctx;\n+\tstruct mlx5_dev_ctx_shared *sh = tool_ctx;\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct mlx5_flow_dv_port_id_action_resource *ref = ctx->data;\n \tstruct mlx5_flow_dv_port_id_action_resource *resource;\n@@ -3827,11 +3825,11 @@ flow_dv_port_id_create_cb(struct mlx5_list *list,\n }\n \n struct mlx5_list_entry *\n-flow_dv_port_id_clone_cb(struct mlx5_list *list,\n-\t\t\t  struct mlx5_list_entry *entry __rte_unused,\n-\t\t\t  void *cb_ctx)\n+flow_dv_port_id_clone_cb(void *tool_ctx,\n+\t\t\t struct mlx5_list_entry *entry __rte_unused,\n+\t\t\t void *cb_ctx)\n {\n-\tstruct mlx5_dev_ctx_shared *sh = list->ctx;\n+\tstruct mlx5_dev_ctx_shared *sh = tool_ctx;\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct mlx5_flow_dv_port_id_action_resource *resource;\n \tuint32_t idx;\n@@ -3849,12 +3847,11 @@ flow_dv_port_id_clone_cb(struct mlx5_list *list,\n }\n \n void\n-flow_dv_port_id_clone_free_cb(struct mlx5_list *list,\n-\t\t\t  struct mlx5_list_entry *entry)\n+flow_dv_port_id_clone_free_cb(void *tool_ctx, struct mlx5_list_entry *entry)\n {\n-\tstruct mlx5_dev_ctx_shared *sh = list->ctx;\n+\tstruct mlx5_dev_ctx_shared *sh = tool_ctx;\n \tstruct mlx5_flow_dv_port_id_action_resource *resource =\n-\t\t\tcontainer_of(entry, typeof(*resource), entry);\n+\t\t\t\t  container_of(entry, typeof(*resource), entry);\n \n \tmlx5_ipool_free(sh->ipool[MLX5_IPOOL_PORT_ID], resource->idx);\n }\n@@ -3899,23 +3896,21 @@ flow_dv_port_id_action_resource_register\n }\n \n int\n-flow_dv_push_vlan_match_cb(struct mlx5_list *list __rte_unused,\n-\t\t\t struct mlx5_list_entry *entry, void *cb_ctx)\n+flow_dv_push_vlan_match_cb(void *tool_ctx __rte_unused,\n+\t\t\t   struct mlx5_list_entry *entry, void *cb_ctx)\n {\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct mlx5_flow_dv_push_vlan_action_resource *ref = ctx->data;\n \tstruct mlx5_flow_dv_push_vlan_action_resource *res =\n-\t\t\tcontainer_of(entry, typeof(*res), entry);\n+\t\t\t\t       container_of(entry, typeof(*res), entry);\n \n \treturn ref->vlan_tag != res->vlan_tag || ref->ft_type != res->ft_type;\n }\n \n struct mlx5_list_entry *\n-flow_dv_push_vlan_create_cb(struct mlx5_list *list,\n-\t\t\t  struct mlx5_list_entry *entry __rte_unused,\n-\t\t\t  void *cb_ctx)\n+flow_dv_push_vlan_create_cb(void *tool_ctx, void *cb_ctx)\n {\n-\tstruct mlx5_dev_ctx_shared *sh = list->ctx;\n+\tstruct mlx5_dev_ctx_shared *sh = tool_ctx;\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct mlx5_flow_dv_push_vlan_action_resource *ref = ctx->data;\n \tstruct mlx5_flow_dv_push_vlan_action_resource *resource;\n@@ -3952,11 +3947,11 @@ flow_dv_push_vlan_create_cb(struct mlx5_list *list,\n }\n \n struct mlx5_list_entry *\n-flow_dv_push_vlan_clone_cb(struct mlx5_list *list,\n-\t\t\t  struct mlx5_list_entry *entry __rte_unused,\n-\t\t\t  void *cb_ctx)\n+flow_dv_push_vlan_clone_cb(void *tool_ctx,\n+\t\t\t   struct mlx5_list_entry *entry __rte_unused,\n+\t\t\t   void *cb_ctx)\n {\n-\tstruct mlx5_dev_ctx_shared *sh = list->ctx;\n+\tstruct mlx5_dev_ctx_shared *sh = tool_ctx;\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct mlx5_flow_dv_push_vlan_action_resource *resource;\n \tuint32_t idx;\n@@ -3974,12 +3969,11 @@ flow_dv_push_vlan_clone_cb(struct mlx5_list *list,\n }\n \n void\n-flow_dv_push_vlan_clone_free_cb(struct mlx5_list *list,\n-\t\t\t    struct mlx5_list_entry *entry)\n+flow_dv_push_vlan_clone_free_cb(void *tool_ctx, struct mlx5_list_entry *entry)\n {\n-\tstruct mlx5_dev_ctx_shared *sh = list->ctx;\n+\tstruct mlx5_dev_ctx_shared *sh = tool_ctx;\n \tstruct mlx5_flow_dv_push_vlan_action_resource *resource =\n-\t\t\tcontainer_of(entry, typeof(*resource), entry);\n+\t\t\t\t  container_of(entry, typeof(*resource), entry);\n \n \tmlx5_ipool_free(sh->ipool[MLX5_IPOOL_PUSH_VLAN], resource->idx);\n }\n@@ -9959,7 +9953,7 @@ flow_dv_matcher_enable(uint32_t *match_criteria)\n }\n \n static struct mlx5_list_entry *\n-flow_dv_matcher_clone_cb(struct mlx5_list *list __rte_unused,\n+flow_dv_matcher_clone_cb(void *tool_ctx __rte_unused,\n \t\t\t struct mlx5_list_entry *entry, void *cb_ctx)\n {\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n@@ -9982,7 +9976,7 @@ flow_dv_matcher_clone_cb(struct mlx5_list *list __rte_unused,\n }\n \n static void\n-flow_dv_matcher_clone_free_cb(struct mlx5_list *list __rte_unused,\n+flow_dv_matcher_clone_free_cb(void *tool_ctx __rte_unused,\n \t\t\t     struct mlx5_list_entry *entry)\n {\n \tmlx5_free(entry);\n@@ -10225,7 +10219,7 @@ flow_dv_tbl_resource_release(struct mlx5_dev_ctx_shared *sh,\n }\n \n int\n-flow_dv_matcher_match_cb(struct mlx5_list *list __rte_unused,\n+flow_dv_matcher_match_cb(void *tool_ctx __rte_unused,\n \t\t\t struct mlx5_list_entry *entry, void *cb_ctx)\n {\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n@@ -10240,11 +10234,9 @@ flow_dv_matcher_match_cb(struct mlx5_list *list __rte_unused,\n }\n \n struct mlx5_list_entry *\n-flow_dv_matcher_create_cb(struct mlx5_list *list,\n-\t\t\t  struct mlx5_list_entry *entry __rte_unused,\n-\t\t\t  void *cb_ctx)\n+flow_dv_matcher_create_cb(void *tool_ctx, void *cb_ctx)\n {\n-\tstruct mlx5_dev_ctx_shared *sh = list->ctx;\n+\tstruct mlx5_dev_ctx_shared *sh = tool_ctx;\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct mlx5_flow_dv_matcher *ref = ctx->data;\n \tstruct mlx5_flow_dv_matcher *resource;\n@@ -10740,7 +10732,7 @@ flow_dv_sample_sub_actions_release(struct rte_eth_dev *dev,\n }\n \n int\n-flow_dv_sample_match_cb(struct mlx5_list *list __rte_unused,\n+flow_dv_sample_match_cb(void *tool_ctx __rte_unused,\n \t\t\tstruct mlx5_list_entry *entry, void *cb_ctx)\n {\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n@@ -10769,9 +10761,7 @@ flow_dv_sample_match_cb(struct mlx5_list *list __rte_unused,\n }\n \n struct mlx5_list_entry *\n-flow_dv_sample_create_cb(struct mlx5_list *list __rte_unused,\n-\t\t\t struct mlx5_list_entry *entry __rte_unused,\n-\t\t\t void *cb_ctx)\n+flow_dv_sample_create_cb(void *tool_ctx __rte_unused, void *cb_ctx)\n {\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct rte_eth_dev *dev = ctx->dev;\n@@ -10858,7 +10848,7 @@ flow_dv_sample_create_cb(struct mlx5_list *list __rte_unused,\n }\n \n struct mlx5_list_entry *\n-flow_dv_sample_clone_cb(struct mlx5_list *list __rte_unused,\n+flow_dv_sample_clone_cb(void *tool_ctx __rte_unused,\n \t\t\t struct mlx5_list_entry *entry __rte_unused,\n \t\t\t void *cb_ctx)\n {\n@@ -10884,16 +10874,15 @@ flow_dv_sample_clone_cb(struct mlx5_list *list __rte_unused,\n }\n \n void\n-flow_dv_sample_clone_free_cb(struct mlx5_list *list __rte_unused,\n-\t\t\t struct mlx5_list_entry *entry)\n+flow_dv_sample_clone_free_cb(void *tool_ctx __rte_unused,\n+\t\t\t     struct mlx5_list_entry *entry)\n {\n \tstruct mlx5_flow_dv_sample_resource *resource =\n-\t\t\tcontainer_of(entry, typeof(*resource), entry);\n+\t\t\t\t  container_of(entry, typeof(*resource), entry);\n \tstruct rte_eth_dev *dev = resource->dev;\n \tstruct mlx5_priv *priv = dev->data->dev_private;\n \n-\tmlx5_ipool_free(priv->sh->ipool[MLX5_IPOOL_SAMPLE],\n-\t\t\tresource->idx);\n+\tmlx5_ipool_free(priv->sh->ipool[MLX5_IPOOL_SAMPLE], resource->idx);\n }\n \n /**\n@@ -10936,14 +10925,14 @@ flow_dv_sample_resource_register(struct rte_eth_dev *dev,\n }\n \n int\n-flow_dv_dest_array_match_cb(struct mlx5_list *list __rte_unused,\n+flow_dv_dest_array_match_cb(void *tool_ctx __rte_unused,\n \t\t\t    struct mlx5_list_entry *entry, void *cb_ctx)\n {\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct mlx5_flow_dv_dest_array_resource *ctx_resource = ctx->data;\n \tstruct rte_eth_dev *dev = ctx->dev;\n \tstruct mlx5_flow_dv_dest_array_resource *resource =\n-\t\t\tcontainer_of(entry, typeof(*resource), entry);\n+\t\t\t\t  container_of(entry, typeof(*resource), entry);\n \tuint32_t idx = 0;\n \n \tif (ctx_resource->num_of_dest == resource->num_of_dest &&\n@@ -10965,9 +10954,7 @@ flow_dv_dest_array_match_cb(struct mlx5_list *list __rte_unused,\n }\n \n struct mlx5_list_entry *\n-flow_dv_dest_array_create_cb(struct mlx5_list *list __rte_unused,\n-\t\t\t struct mlx5_list_entry *entry __rte_unused,\n-\t\t\t void *cb_ctx)\n+flow_dv_dest_array_create_cb(void *tool_ctx __rte_unused, void *cb_ctx)\n {\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct rte_eth_dev *dev = ctx->dev;\n@@ -11072,9 +11059,9 @@ flow_dv_dest_array_create_cb(struct mlx5_list *list __rte_unused,\n }\n \n struct mlx5_list_entry *\n-flow_dv_dest_array_clone_cb(struct mlx5_list *list __rte_unused,\n-\t\t\t struct mlx5_list_entry *entry __rte_unused,\n-\t\t\t void *cb_ctx)\n+flow_dv_dest_array_clone_cb(void *tool_ctx __rte_unused,\n+\t\t\t    struct mlx5_list_entry *entry __rte_unused,\n+\t\t\t    void *cb_ctx)\n {\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct rte_eth_dev *dev = ctx->dev;\n@@ -11100,8 +11087,8 @@ flow_dv_dest_array_clone_cb(struct mlx5_list *list __rte_unused,\n }\n \n void\n-flow_dv_dest_array_clone_free_cb(struct mlx5_list *list __rte_unused,\n-\t\t\t     struct mlx5_list_entry *entry)\n+flow_dv_dest_array_clone_free_cb(void *tool_ctx __rte_unused,\n+\t\t\t\t struct mlx5_list_entry *entry)\n {\n \tstruct mlx5_flow_dv_dest_array_resource *resource =\n \t\t\tcontainer_of(entry, typeof(*resource), entry);\n@@ -13588,7 +13575,7 @@ flow_dv_apply(struct rte_eth_dev *dev, struct rte_flow *flow,\n }\n \n void\n-flow_dv_matcher_remove_cb(struct mlx5_list *list __rte_unused,\n+flow_dv_matcher_remove_cb(void *tool_ctx __rte_unused,\n \t\t\t  struct mlx5_list_entry *entry)\n {\n \tstruct mlx5_flow_dv_matcher *resource = container_of(entry,\n@@ -13730,10 +13717,9 @@ flow_dv_modify_hdr_resource_release(struct rte_eth_dev *dev,\n }\n \n void\n-flow_dv_port_id_remove_cb(struct mlx5_list *list,\n-\t\t\t  struct mlx5_list_entry *entry)\n+flow_dv_port_id_remove_cb(void *tool_ctx, struct mlx5_list_entry *entry)\n {\n-\tstruct mlx5_dev_ctx_shared *sh = list->ctx;\n+\tstruct mlx5_dev_ctx_shared *sh = tool_ctx;\n \tstruct mlx5_flow_dv_port_id_action_resource *resource =\n \t\t\t\t  container_of(entry, typeof(*resource), entry);\n \n@@ -13787,10 +13773,9 @@ flow_dv_shared_rss_action_release(struct rte_eth_dev *dev, uint32_t srss)\n }\n \n void\n-flow_dv_push_vlan_remove_cb(struct mlx5_list *list,\n-\t\t\t    struct mlx5_list_entry *entry)\n+flow_dv_push_vlan_remove_cb(void *tool_ctx, struct mlx5_list_entry *entry)\n {\n-\tstruct mlx5_dev_ctx_shared *sh = list->ctx;\n+\tstruct mlx5_dev_ctx_shared *sh = tool_ctx;\n \tstruct mlx5_flow_dv_push_vlan_action_resource *resource =\n \t\t\tcontainer_of(entry, typeof(*resource), entry);\n \n@@ -13859,7 +13844,7 @@ flow_dv_fate_resource_release(struct rte_eth_dev *dev,\n }\n \n void\n-flow_dv_sample_remove_cb(struct mlx5_list *list __rte_unused,\n+flow_dv_sample_remove_cb(void *tool_ctx __rte_unused,\n \t\t\t struct mlx5_list_entry *entry)\n {\n \tstruct mlx5_flow_dv_sample_resource *resource = container_of(entry,\n@@ -13907,7 +13892,7 @@ flow_dv_sample_resource_release(struct rte_eth_dev *dev,\n }\n \n void\n-flow_dv_dest_array_remove_cb(struct mlx5_list *list __rte_unused,\n+flow_dv_dest_array_remove_cb(void *tool_ctx __rte_unused,\n \t\t\t     struct mlx5_list_entry *entry)\n {\n \tstruct mlx5_flow_dv_dest_array_resource *resource =\ndiff --git a/drivers/net/mlx5/mlx5_rx.h b/drivers/net/mlx5/mlx5_rx.h\nindex 5450ddd388..3f2b99fb65 100644\n--- a/drivers/net/mlx5/mlx5_rx.h\n+++ b/drivers/net/mlx5/mlx5_rx.h\n@@ -222,17 +222,14 @@ int mlx5_ind_table_obj_modify(struct rte_eth_dev *dev,\n \t\t\t      struct mlx5_ind_table_obj *ind_tbl,\n \t\t\t      uint16_t *queues, const uint32_t queues_n,\n \t\t\t      bool standalone);\n-struct mlx5_list_entry *mlx5_hrxq_create_cb(struct mlx5_list *list,\n-\t\tstruct mlx5_list_entry *entry __rte_unused, void *cb_ctx);\n-int mlx5_hrxq_match_cb(struct mlx5_list *list,\n-\t\t       struct mlx5_list_entry *entry,\n+struct mlx5_list_entry *mlx5_hrxq_create_cb(void *tool_ctx, void *cb_ctx);\n+int mlx5_hrxq_match_cb(void *tool_ctx, struct mlx5_list_entry *entry,\n \t\t       void *cb_ctx);\n-void mlx5_hrxq_remove_cb(struct mlx5_list *list,\n-\t\t\t struct mlx5_list_entry *entry);\n-struct mlx5_list_entry *mlx5_hrxq_clone_cb(struct mlx5_list *list,\n+void mlx5_hrxq_remove_cb(void *tool_ctx, struct mlx5_list_entry *entry);\n+struct mlx5_list_entry *mlx5_hrxq_clone_cb(void *tool_ctx,\n \t\t\t\t\t   struct mlx5_list_entry *entry,\n \t\t\t\t\t   void *cb_ctx __rte_unused);\n-void mlx5_hrxq_clone_free_cb(struct mlx5_list *list,\n+void mlx5_hrxq_clone_free_cb(void *tool_ctx __rte_unused,\n \t\t\t     struct mlx5_list_entry *entry);\n uint32_t mlx5_hrxq_get(struct rte_eth_dev *dev,\n \t\t       struct mlx5_flow_rss_desc *rss_desc);\ndiff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c\nindex aa9e973d10..7893b3edd4 100644\n--- a/drivers/net/mlx5/mlx5_rxq.c\n+++ b/drivers/net/mlx5/mlx5_rxq.c\n@@ -2093,25 +2093,10 @@ mlx5_ind_table_obj_modify(struct rte_eth_dev *dev,\n \treturn ret;\n }\n \n-/**\n- * Match an Rx Hash queue.\n- *\n- * @param list\n- *   mlx5 list pointer.\n- * @param entry\n- *   Hash queue entry pointer.\n- * @param cb_ctx\n- *   Context of the callback function.\n- *\n- * @return\n- *   0 if match, none zero if not match.\n- */\n int\n-mlx5_hrxq_match_cb(struct mlx5_list *list,\n-\t\t   struct mlx5_list_entry *entry,\n-\t\t   void *cb_ctx)\n+mlx5_hrxq_match_cb(void *tool_ctx, struct mlx5_list_entry *entry, void *cb_ctx)\n {\n-\tstruct rte_eth_dev *dev = list->ctx;\n+\tstruct rte_eth_dev *dev = tool_ctx;\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct mlx5_flow_rss_desc *rss_desc = ctx->data;\n \tstruct mlx5_hrxq *hrxq = container_of(entry, typeof(*hrxq), entry);\n@@ -2251,10 +2236,9 @@ __mlx5_hrxq_remove(struct rte_eth_dev *dev, struct mlx5_hrxq *hrxq)\n  *   Hash queue entry pointer.\n  */\n void\n-mlx5_hrxq_remove_cb(struct mlx5_list *list,\n-\t\t    struct mlx5_list_entry *entry)\n+mlx5_hrxq_remove_cb(void *tool_ctx, struct mlx5_list_entry *entry)\n {\n-\tstruct rte_eth_dev *dev = list->ctx;\n+\tstruct rte_eth_dev *dev = tool_ctx;\n \tstruct mlx5_hrxq *hrxq = container_of(entry, typeof(*hrxq), entry);\n \n \t__mlx5_hrxq_remove(dev, hrxq);\n@@ -2305,25 +2289,10 @@ __mlx5_hrxq_create(struct rte_eth_dev *dev,\n \treturn NULL;\n }\n \n-/**\n- * Create an Rx Hash queue.\n- *\n- * @param list\n- *   mlx5 list pointer.\n- * @param entry\n- *   Hash queue entry pointer.\n- * @param cb_ctx\n- *   Context of the callback function.\n- *\n- * @return\n- *   queue entry on success, NULL otherwise.\n- */\n struct mlx5_list_entry *\n-mlx5_hrxq_create_cb(struct mlx5_list *list,\n-\t\t    struct mlx5_list_entry *entry __rte_unused,\n-\t\t    void *cb_ctx)\n+mlx5_hrxq_create_cb(void *tool_ctx, void *cb_ctx)\n {\n-\tstruct rte_eth_dev *dev = list->ctx;\n+\tstruct rte_eth_dev *dev = tool_ctx;\n \tstruct mlx5_flow_cb_ctx *ctx = cb_ctx;\n \tstruct mlx5_flow_rss_desc *rss_desc = ctx->data;\n \tstruct mlx5_hrxq *hrxq;\n@@ -2333,11 +2302,10 @@ mlx5_hrxq_create_cb(struct mlx5_list *list,\n }\n \n struct mlx5_list_entry *\n-mlx5_hrxq_clone_cb(struct mlx5_list *list,\n-\t\t    struct mlx5_list_entry *entry,\n+mlx5_hrxq_clone_cb(void *tool_ctx, struct mlx5_list_entry *entry,\n \t\t    void *cb_ctx __rte_unused)\n {\n-\tstruct rte_eth_dev *dev = list->ctx;\n+\tstruct rte_eth_dev *dev = tool_ctx;\n \tstruct mlx5_priv *priv = dev->data->dev_private;\n \tstruct mlx5_hrxq *hrxq;\n \tuint32_t hrxq_idx = 0;\n@@ -2351,10 +2319,9 @@ mlx5_hrxq_clone_cb(struct mlx5_list *list,\n }\n \n void\n-mlx5_hrxq_clone_free_cb(struct mlx5_list *list,\n-\t\t    struct mlx5_list_entry *entry)\n+mlx5_hrxq_clone_free_cb(void *tool_ctx, struct mlx5_list_entry *entry)\n {\n-\tstruct rte_eth_dev *dev = list->ctx;\n+\tstruct rte_eth_dev *dev = tool_ctx;\n \tstruct mlx5_priv *priv = dev->data->dev_private;\n \tstruct mlx5_hrxq *hrxq = container_of(entry, typeof(*hrxq), entry);\n \n",
    "prefixes": [
        "v5",
        "15/26"
    ]
}