get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 96161,
    "url": "http://patchwork.dpdk.org/api/patches/96161/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210721143743.24626-6-xuemingl@nvidia.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20210721143743.24626-6-xuemingl@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210721143743.24626-6-xuemingl@nvidia.com",
    "date": "2021-07-21T14:37:32",
    "name": "[v4,05/16] common/mlx5: get PCI device address from any bus",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "5dd8f7dded8ad53f84dc9f8dfee968ee34140064",
    "submitter": {
        "id": 1904,
        "url": "http://patchwork.dpdk.org/api/people/1904/?format=api",
        "name": "Xueming Li",
        "email": "xuemingl@nvidia.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20210721143743.24626-6-xuemingl@nvidia.com/mbox/",
    "series": [
        {
            "id": 17938,
            "url": "http://patchwork.dpdk.org/api/series/17938/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=17938",
            "date": "2021-07-21T14:37:27",
            "name": "net/mlx5: support Sub-Function",
            "version": 4,
            "mbox": "http://patchwork.dpdk.org/series/17938/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/96161/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/96161/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 C1479A0C51;\n\tWed, 21 Jul 2021 16:39:04 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 59BCE410E1;\n\tWed, 21 Jul 2021 16:39:04 +0200 (CEST)",
            "from NAM11-BN8-obe.outbound.protection.outlook.com\n (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40])\n by mails.dpdk.org (Postfix) with ESMTP id DD840410DB\n for <dev@dpdk.org>; Wed, 21 Jul 2021 16:39:02 +0200 (CEST)",
            "from BN9PR03CA0275.namprd03.prod.outlook.com (2603:10b6:408:f5::10)\n by BY5PR12MB3697.namprd12.prod.outlook.com (2603:10b6:a03:1a2::13)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Wed, 21 Jul\n 2021 14:39:01 +0000",
            "from BN8NAM11FT005.eop-nam11.prod.protection.outlook.com\n (2603:10b6:408:f5:cafe::3d) by BN9PR03CA0275.outlook.office365.com\n (2603:10b6:408:f5::10) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.24 via Frontend\n Transport; Wed, 21 Jul 2021 14:39:01 +0000",
            "from mail.nvidia.com (216.228.112.34) by\n BN8NAM11FT005.mail.protection.outlook.com (10.13.176.69) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4352.24 via Frontend Transport; Wed, 21 Jul 2021 14:39: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; Wed, 21 Jul\n 2021 14:38:58 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=if9sQ3fL3SJCcMCQ+odHWryIKRaeLt48Wf7egXCcde5iuI2oKTRVRvRf94jY++ciEt8gJc1mZRt7b4O7NH8w14q0inqSPb4YHVoP7e0ylMRy3vOdRgkzvUL9TEZ1yFTmMnBcODupcF11sor1maEQRlf6YcPc5lu0hxTKeD+AlpIUfz9g3xB2R8XLZGPIhdpsNeEZb8W2vIlfPdDOJGsNrhm1gDNSSm/BrlNHsCEj4orVfaW0UHFv+8lqkXQryD9bgXu8Cp1P27hYXrJEeOTUKf27+CSxE6018gexPtVKfi7GTMD1KaIoBbQS2RbpIaBjA8mgqYpWv22YOWOqlvGDTg==",
        "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=U3IsrHB9RAtOGxRs5J3xi6MtDZIhoUxBfEBFBApCmEY=;\n b=SlULtB2xkgm/7A1V+vcARCEmEb/SX8rXuDjKLY6NrOq0zj4+g0JW8wHFAdRTkG+01oOJolBQOEZrcnin3mkRMNSv2DWtcNlZRwu+LG87o5jhQq1mi3raXCI3KrJyEaUoHbA2OLVnzEkbVY3DTSupEmS6Au3VPy6CPsvpUTYACKl1DuaFl1MedBMhS/a9i/6QyA1ty868JGl8hjhKX7b3pHCnflyf3N8bMCCBTI1q46shtyc6qkcVHkxeiXCJrhs5OqgFm6rFO/eA9qUeLxk4hh5ZONMyUfC4OGlvJ2RUw353LEfVKuWrzFMdPFu8YryW3yJLoF0LeoYPyKOIlwB6Sg==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.112.34) smtp.rcpttodomain=ashroe.eu smtp.mailfrom=nvidia.com;\n dmarc=pass (p=quarantine 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=U3IsrHB9RAtOGxRs5J3xi6MtDZIhoUxBfEBFBApCmEY=;\n b=nzDqSnatgjCnw8YtYJrVB5eFusL1rrHQuBOHfaMjd7xqyRsJM1eO2Kf9UxqOcSGOzZKGqM1DbTOEeIPjq/fNIkB3R2Sgba3WaDWtgaynwJ2VTTgiYhDYXOdSjAe584XPYujmlM3TxiP+U35XKvZ7x+3iR8dR8B7w0DmUiD+vlqwkWHNY6MPpy0+Hjxn1pBVCSndECFczc+hF/TXI0ctAksdpUK0lQYRMLeOSqp+Yq9FWMbpggoB4n1cqATGqo+eDiGyFvxVinleByxj57rkcvZ6Ky2z5XqxBJySYg0dBSiF26dDpWGHsjky5B3IHcErOUtfOBxGYDTltCYGblHf91w==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.112.34)\n smtp.mailfrom=nvidia.com; ashroe.eu; dkim=none (message not signed)\n header.d=none;ashroe.eu; 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": "Xueming Li <xuemingl@nvidia.com>",
        "To": "Viacheslav Ovsiienko <viacheslavo@nvidia.com>",
        "CC": "Thomas Monjalon <thomas@monjalon.net>, <dev@dpdk.org>,\n <xuemingl@nvidia.com>, Matan Azrad <matan@nvidia.com>, Shahaf Shuler\n <shahafs@nvidia.com>, Ray Kinsella <mdr@ashroe.eu>",
        "Date": "Wed, 21 Jul 2021 22:37:32 +0800",
        "Message-ID": "<20210721143743.24626-6-xuemingl@nvidia.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210721143743.24626-1-xuemingl@nvidia.com>",
        "References": "<20210616040935.311733-1-xuemingl@nvidia.com>\n <20210721143743.24626-1-xuemingl@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[172.20.187.5]",
        "X-ClientProxiedBy": "HQMAIL105.nvidia.com (172.20.187.12) To\n HQMAIL107.nvidia.com (172.20.187.13)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "3704efa9-a8c9-4e16-a15a-08d94c5547ad",
        "X-MS-TrafficTypeDiagnostic": "BY5PR12MB3697:",
        "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr",
        "X-Microsoft-Antispam-PRVS": "\n <BY5PR12MB369791C74A90A78E1D27F41FA1E39@BY5PR12MB3697.namprd12.prod.outlook.com>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:568;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n MgUZtUjg38cvco78yfVsS6jiyryJzH4bs1DmAXJgLik3Tq7vKPsCNPndP//i63+lpyDssO5ulTesyb9ZA6eTjMUGIPY9S/Ulp0LCAWYMuU8d57BcvxUzl/V9MzVX5J9ESgF3RoheFkeM5SQo1HKpeceBVcNpAMFp9WhIRkB1Q7O1OO1jwkfuWPuQgBuVNQ6sfcqftTsZeSo1dqH9U3geULiEBGVamKs14jmqx2HkdzXoERUWIqnMgJzJhtC5ZZYq5IQ72K1p8miOdKoGhc+fyUKGqAVb6hgrtc/gvY4MdxfR4hy4mMKZRRUK3i7p6xVoA1PVGdtZ75TsD7AnOf8tbSfIDhu9JsCyYltGUL7s5hvOy1FpwTPg0opYeOA9piZqO6uucp8DSdn1NCvPvJvM28R6DtwPRtlcyUP1fMPB0JFIXbA4bSQi9+jd5sc3j/yRUwFwQiC0JXCkAQZT1lbsuszQSDJpYueacRJcnZpoilUnPmX8qiLlnYX7uxtxGwmkjteoVUc8C1ulFhsq6Z+EgC2/ualW6qowi/NsuBJwuXoGjLG0UlbUUR4biGS4dVTuVP7/7Ln6+q/Ya/2CAL5q8ASmA4taVi4JSSj/nlLMvoU2/JxBLs6VS/dDh40vL/anIlsRkAFHkzQKMyiBgkFP0XXg9PU++jAMUSOfH7dEmbBp5lz/+Pe1U4f4uM+uWMtD4emm5uxUETC3xrualNia9g==",
        "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)(376002)(346002)(39860400002)(136003)(396003)(36840700001)(46966006)(82310400003)(316002)(37006003)(83380400001)(6286002)(8936002)(36906005)(336012)(16526019)(426003)(1076003)(186003)(2616005)(70206006)(47076005)(478600001)(55016002)(54906003)(70586007)(356005)(7636003)(26005)(4326008)(36860700001)(5660300002)(86362001)(2906002)(6862004)(36756003)(7696005)(6666004)(8676002)(82740400003)(6636002);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "21 Jul 2021 14:39:00.6509 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 3704efa9-a8c9-4e16-a15a-08d94c5547ad",
        "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 BN8NAM11FT005.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BY5PR12MB3697",
        "Subject": "[dpdk-dev] [PATCH v4 05/16] common/mlx5: get PCI device address\n from any bus",
        "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": "From: Thomas Monjalon <thomas@monjalon.net>\n\nA function is exported to allow retrieving the PCI address\nof the parent PCI device of a Sub-Function in auxiliary bus sysfs.\nThe function mlx5_dev_to_pci_str() is accepting both PCI and auxiliary\ndevices. In case of a PCI device, it is simply using the device name.\n\nThe function mlx5_dev_to_pci_addr(), which is based on sysfs path\nand do not use any device object, is renamed to mlx5_get_pci_addr()\nfor clarity purpose.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\nAcked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>\n---\n .../common/mlx5/linux/mlx5_common_auxiliary.c | 19 +++++++++++++++\n drivers/common/mlx5/linux/mlx5_common_os.c    |  5 ++--\n drivers/common/mlx5/mlx5_common.c             | 23 +++++++++++++++++++\n drivers/common/mlx5/mlx5_common.h             | 16 ++++++++++++-\n drivers/common/mlx5/mlx5_common_private.h     |  2 ++\n drivers/common/mlx5/version.map               |  3 ++-\n drivers/net/mlx5/linux/mlx5_os.c              |  6 ++---\n 7 files changed, 66 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/common/mlx5/linux/mlx5_common_auxiliary.c b/drivers/common/mlx5/linux/mlx5_common_auxiliary.c\nindex 4ca27cd281..6584aeb18e 100644\n--- a/drivers/common/mlx5/linux/mlx5_common_auxiliary.c\n+++ b/drivers/common/mlx5/linux/mlx5_common_auxiliary.c\n@@ -4,6 +4,8 @@\n \n #include <stdlib.h>\n #include <dirent.h>\n+#include <libgen.h>\n+\n #include <rte_malloc.h>\n #include <rte_errno.h>\n #include <rte_bus_auxiliary.h>\n@@ -66,6 +68,23 @@ mlx5_auxiliary_get_pci_path(const struct rte_auxiliary_device *dev,\n \treturn 0;\n }\n \n+int\n+mlx5_auxiliary_get_pci_str(const struct rte_auxiliary_device *dev,\n+\t\t\t   char *addr, size_t size)\n+{\n+\tchar sysfs_pci[PATH_MAX];\n+\tchar *base;\n+\n+\tif (mlx5_auxiliary_get_pci_path(dev, sysfs_pci, sizeof(sysfs_pci)) != 0)\n+\t\treturn -ENODEV;\n+\tbase = basename(sysfs_pci);\n+\tif (base == NULL)\n+\t\treturn -errno;\n+\tif (rte_strscpy(addr, base, size) < 0)\n+\t\treturn -rte_errno;\n+\treturn 0;\n+}\n+\n static int\n mlx5_auxiliary_get_numa(const struct rte_auxiliary_device *dev)\n {\ndiff --git a/drivers/common/mlx5/linux/mlx5_common_os.c b/drivers/common/mlx5/linux/mlx5_common_os.c\nindex 337e9df8cb..9e0c823c97 100644\n--- a/drivers/common/mlx5/linux/mlx5_common_os.c\n+++ b/drivers/common/mlx5/linux/mlx5_common_os.c\n@@ -24,8 +24,7 @@ const struct mlx5_glue *mlx5_glue;\n #endif\n \n int\n-mlx5_dev_to_pci_addr(const char *dev_path,\n-\t\t     struct rte_pci_addr *pci_addr)\n+mlx5_get_pci_addr(const char *dev_path, struct rte_pci_addr *pci_addr)\n {\n \tFILE *file;\n \tchar line[32];\n@@ -417,7 +416,7 @@ mlx5_os_get_ibv_device(const struct rte_pci_addr *addr)\n \t\tstruct rte_pci_addr paddr;\n \n \t\tDRV_LOG(DEBUG, \"Checking device \\\"%s\\\"..\", ibv_list[n]->name);\n-\t\tif (mlx5_dev_to_pci_addr(ibv_list[n]->ibdev_path, &paddr) != 0)\n+\t\tif (mlx5_get_pci_addr(ibv_list[n]->ibdev_path, &paddr) != 0)\n \t\t\tcontinue;\n \t\tif (rte_pci_addr_cmp(addr, &paddr) != 0)\n \t\t\tcontinue;\ndiff --git a/drivers/common/mlx5/mlx5_common.c b/drivers/common/mlx5/mlx5_common.c\nindex 94f858a9bd..8fe36f7077 100644\n--- a/drivers/common/mlx5/mlx5_common.c\n+++ b/drivers/common/mlx5/mlx5_common.c\n@@ -197,6 +197,29 @@ to_mlx5_device(const struct rte_device *rte_dev)\n \treturn NULL;\n }\n \n+int\n+mlx5_dev_to_pci_str(const struct rte_device *dev, char *addr, size_t size)\n+{\n+\tstruct rte_pci_addr pci_addr = { 0 };\n+\tint ret;\n+\n+\tif (mlx5_dev_is_pci(dev)) {\n+\t\t/* Input might be <BDF>, format PCI address to <DBDF>. */\n+\t\tret = rte_pci_addr_parse(dev->name, &pci_addr);\n+\t\tif (ret != 0)\n+\t\t\treturn -ENODEV;\n+\t\trte_pci_device_name(&pci_addr, addr, size);\n+\t\treturn 0;\n+\t}\n+#ifdef RTE_EXEC_ENV_LINUX\n+\treturn mlx5_auxiliary_get_pci_str(RTE_DEV_TO_AUXILIARY_CONST(dev),\n+\t\t\taddr, size);\n+#else\n+\trte_errno = ENODEV;\n+\treturn -rte_errno;\n+#endif\n+}\n+\n static void\n dev_release(struct mlx5_common_device *dev)\n {\ndiff --git a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h\nindex 3cb961f495..66c83047a1 100644\n--- a/drivers/common/mlx5/mlx5_common.h\n+++ b/drivers/common/mlx5/mlx5_common.h\n@@ -210,6 +210,20 @@ check_cqe(volatile struct mlx5_cqe *cqe, const uint16_t cqes_n,\n \treturn MLX5_CQE_STATUS_SW_OWN;\n }\n \n+/*\n+ * Get PCI address <DBDF> string from EAL device.\n+ *\n+ * @param[out] addr\n+ *\tThe output address buffer string\n+ * @param[in] size\n+ *\tThe output buffer size\n+ * @return\n+ *   - 0 on success.\n+ *   - Negative value and rte_errno is set otherwise.\n+ */\n+__rte_internal\n+int mlx5_dev_to_pci_str(const struct rte_device *dev, char *addr, size_t size);\n+\n /*\n  * Get PCI address from sysfs of a PCI-related device.\n  *\n@@ -224,7 +238,7 @@ check_cqe(volatile struct mlx5_cqe *cqe, const uint16_t cqes_n,\n  *   - Negative value and rte_errno is set otherwise.\n  */\n __rte_internal\n-int mlx5_dev_to_pci_addr(const char *dev_path, struct rte_pci_addr *pci_addr);\n+int mlx5_get_pci_addr(const char *dev_path, struct rte_pci_addr *pci_addr);\n \n /*\n  * Get kernel network interface name from sysfs IB device path.\ndiff --git a/drivers/common/mlx5/mlx5_common_private.h b/drivers/common/mlx5/mlx5_common_private.h\nindex 9f00a6c54d..1096fa85e7 100644\n--- a/drivers/common/mlx5/mlx5_common_private.h\n+++ b/drivers/common/mlx5/mlx5_common_private.h\n@@ -39,6 +39,8 @@ bool mlx5_dev_pci_match(const struct mlx5_class_driver *drv,\n void mlx5_common_auxiliary_init(void);\n struct ibv_device *mlx5_get_aux_ibv_device(\n \t\tconst struct rte_auxiliary_device *dev);\n+int mlx5_auxiliary_get_pci_str(const struct rte_auxiliary_device *dev,\n+\t\t\t       char *addr, size_t size);\n \n #ifdef __cplusplus\n }\ndiff --git a/drivers/common/mlx5/version.map b/drivers/common/mlx5/version.map\nindex b47d73b425..a47c86e354 100644\n--- a/drivers/common/mlx5/version.map\n+++ b/drivers/common/mlx5/version.map\n@@ -15,7 +15,7 @@ INTERNAL {\n \tmlx5_create_mr_ext;\n \n \tmlx5_dev_is_pci; # WINDOWS_NO_EXPORT\n-\tmlx5_dev_to_pci_addr; # WINDOWS_NO_EXPORT\n+\tmlx5_dev_to_pci_str; # WINDOWS_NO_EXPORT\n \n \tmlx5_devx_alloc_uar; # WINDOWS_NO_EXPORT\n \n@@ -75,6 +75,7 @@ INTERNAL {\n \tmlx5_free;\n \n \tmlx5_get_ifname_sysfs; # WINDOWS_NO_EXPORT\n+\tmlx5_get_pci_addr; # WINDOWS_NO_EXPORT\n \n \tmlx5_glue;\n \ndiff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c\nindex aa5210fa45..05b1761f6b 100644\n--- a/drivers/net/mlx5/linux/mlx5_os.c\n+++ b/drivers/net/mlx5/linux/mlx5_os.c\n@@ -1995,7 +1995,7 @@ mlx5_device_bond_pci_match(const struct ibv_device *ibv_dev,\n \t\t/* Process slave interface names in the loop. */\n \t\tsnprintf(tmp_str, sizeof(tmp_str),\n \t\t\t \"/sys/class/net/%s\", ifname);\n-\t\tif (mlx5_dev_to_pci_addr(tmp_str, &pci_addr)) {\n+\t\tif (mlx5_get_pci_addr(tmp_str, &pci_addr)) {\n \t\t\tDRV_LOG(WARNING, \"can not get PCI address\"\n \t\t\t\t\t \" for netdev \\\"%s\\\"\", ifname);\n \t\t\tcontinue;\n@@ -2172,8 +2172,8 @@ mlx5_os_pci_probe_pf(struct rte_pci_device *pci_dev,\n \t\t\tbreak;\n \t\t} else {\n \t\t\t/* Bonding device not found. */\n-\t\t\tif (mlx5_dev_to_pci_addr\n-\t\t\t\t(ibv_list[ret]->ibdev_path, &pci_addr))\n+\t\t\tif (mlx5_get_pci_addr(ibv_list[ret]->ibdev_path,\n+\t\t\t\t\t      &pci_addr))\n \t\t\t\tcontinue;\n \t\t\tif (owner_pci.domain != pci_addr.domain ||\n \t\t\t    owner_pci.bus != pci_addr.bus ||\n",
    "prefixes": [
        "v4",
        "05/16"
    ]
}