From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 43E06A0548; Thu, 27 May 2021 15:39:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D3A6C4110D; Thu, 27 May 2021 15:39:08 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2085.outbound.protection.outlook.com [40.107.94.85]) by mails.dpdk.org (Postfix) with ESMTP id 373A341121 for ; Thu, 27 May 2021 15:39:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=io3/KbDXT7sIEJdfunmrl4spSg3lqw5O7hV+IOsfiKZCNVJZ2O9h39m1DH9R4vpDI53dbg6F6oLKcX/w0US42iEOCZubnGymCDHENrBZ90qq2KUrf4K3b4QQ2QQfSIE6rbrXimVyCaZsuFU/8un5YqV5SKY/uT+Pr40ZaM6Ufgwzg9Fsrr2ce0BlSgvkXk/l7L1c4xjxBYWy93AJV/2ZKiEw6v3p9H1bKLRrrteTgD1qHEuIHA4OX4ZNazg6abdJaRVuXdtSbDEn0XaRftemC9jUMEBbj2fsQ/fXMIgvvEYITGg+fV4OlGGRdOXv0znHMSq4gEL1gpr3IOewMiDo9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=63tgzkCpS5kqcWRuaaFZ0Y1loI1UOkWNb4qprz0K25M=; b=oAdD5hujXys16G9JkLnu9MgcGe6/no89yGtyJVdhuN7yVbjY/kez+MIjlzivvmnzC0A01xCpIu6IXSx3PmNtmkL2JGPiK2IJslcIT2PD+z0hPR6wbemjtMo6BidhoP5KD3309j0d82cKb4Coj4FwwTd+FIuWupBiQEXxQutMpmN6lImM4M0Re8UJxWtuFmfvarH8qlnOojwvTZ1khjrEHqAAHR0vchX/JU00a3oIdN/i7zEQGSON7JXQS5r0PQKqJk1fCAMStw4gBNeDov7/Jm0NOjbO+BYM/Z8nzFUyV57SaBArDK3poOmGxGONE1AM84m/mNuMcbYZ0hD8wMLY3Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=63tgzkCpS5kqcWRuaaFZ0Y1loI1UOkWNb4qprz0K25M=; b=SqL5t9Icrs4ihWuHsbRuRYQV8wwIFbWkaASH9osaq++wg+WZpxh4QpgdbNmJcHqnt3nHwpJCSxfD+hBsZTfCNHYfvocEup9kzZuTL/8QlxHqgAKKxJFZqzArKwizZ+4ZhnlLfCwH+HYbqQJkKu2RN06vB5kkRSVOCv9fWyw/kbdVBh9/tdCQwHx25yR1YU4r14X2Z24+YPMX4Tzfd2oWac+m8FN5UF288dzEdqA2robKoLCkMuCIBW+SSCOzcyA91zjvrPpUB7Pvl/iQISoiwekHvMVKGu7br+a55hO7VO5eClvdzCwFdK+U1+hW573cz4UZ+mK0Xtat7QRVgFEyNA== Received: from MWHPR14CA0040.namprd14.prod.outlook.com (2603:10b6:300:12b::26) by CY4PR12MB1494.namprd12.prod.outlook.com (2603:10b6:910:f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.27; Thu, 27 May 2021 13:39:03 +0000 Received: from CO1NAM11FT053.eop-nam11.prod.protection.outlook.com (2603:10b6:300:12b:cafe::73) by MWHPR14CA0040.outlook.office365.com (2603:10b6:300:12b::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.21 via Frontend Transport; Thu, 27 May 2021 13:39:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT053.mail.protection.outlook.com (10.13.175.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4129.25 via Frontend Transport; Thu, 27 May 2021 13:39:03 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 27 May 2021 13:39:01 +0000 From: Xueming Li To: Viacheslav Ovsiienko CC: Thomas Monjalon , , , Matan Azrad Date: Thu, 27 May 2021 16:37:52 +0300 Message-ID: <20210527133759.17401-8-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210527133759.17401-1-xuemingl@nvidia.com> References: <20210527133759.17401-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 89158e14-0359-423a-5bc3-08d92114caa4 X-MS-TrafficTypeDiagnostic: CY4PR12MB1494: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:296; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WMxG99BcEHNNDQrFUsFqoP5US/lLgeG6gMTnDunhouaakSxu4yXRdmM3g0ZJ7E5i0YlSeIJ5eLkZlKH1CeUvoEmD2VyoFvlY0uyzCKG0C1x1FPz5iG3uCTPVP02ezhQ9rCs32oLjd2leJ67O96DFK5Mfio+XSr3GpvZqbKjxY/CfxB/2ks15yQweCTPL3K775mvH1DYtXsE21p8bJOu7XTnm3eci8vjPvDcDDIAPb78bM8fmQ1kwZS1337pYpW5yWDMFwnrC1vjJd4niJE5IwqoxDxFITUQmIbEorujvPVfPUNAmdgMpfqJXYryoTbnH8QrOpdkuJq0+dMAOz4Gni4b2Y12r9y5fsOy08f463OSDyxhbgLJz92EDNeDJXs5t9lAyyIooOYiqfpWUe/Pzsqtp8CaZAgChTwWRpIJX3sU0uwAYGpM+MluKNT+fhcgWeK27+O2xHSXNvOy5yAqwcDfjdlDizB/sXFhIf0llKroEm5fJxJC1iyRidCOmHmkfVCPJzeg5w/0QpOdQUklIQld6f8Ie41NiLHEE+F2J/BiqNdYlO133w79h7pGilsg+kNdiuodu1EHEQvGphXd4CP78qG7z7nopCUezXikdqS//BpqVW0RCnBNSNyAvAkf4ejHrsi30KnEMdpfZFjXUOEri3ZYY4336Di8C9OEA0TA= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(39860400002)(346002)(396003)(136003)(376002)(46966006)(36840700001)(8676002)(4326008)(107886003)(36860700001)(26005)(55016002)(70206006)(5660300002)(47076005)(186003)(316002)(6862004)(6666004)(1076003)(426003)(16526019)(36906005)(37006003)(36756003)(6636002)(8936002)(54906003)(478600001)(7636003)(6286002)(356005)(83380400001)(2616005)(7696005)(82740400003)(82310400003)(70586007)(336012)(2906002)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2021 13:39:03.1348 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 89158e14-0359-423a-5bc3-08d92114caa4 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT053.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1494 Subject: [dpdk-dev] [RFC 07/14] vdpa/mlx5: fix driver name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Thomas Monjalon Signed-off-by: Thomas Monjalon --- drivers/vdpa/mlx5/mlx5_vdpa.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/vdpa/mlx5/mlx5_vdpa.c b/drivers/vdpa/mlx5/mlx5_vdpa.c index 8b5bfd8c3d..5ab7c525c2 100644 --- a/drivers/vdpa/mlx5/mlx5_vdpa.c +++ b/drivers/vdpa/mlx5/mlx5_vdpa.c @@ -24,6 +24,7 @@ #include "mlx5_vdpa_utils.h" #include "mlx5_vdpa.h" +#define MLX5_VDPA_DRIVER_NAME vdpa_mlx5 #define MLX5_VDPA_DEFAULT_FEATURES ((1ULL << VHOST_USER_F_PROTOCOL_FEATURES) | \ (1ULL << VIRTIO_F_ANY_LAYOUT) | \ @@ -834,7 +835,7 @@ static struct mlx5_pci_driver mlx5_vdpa_driver = { .driver_class = MLX5_CLASS_VDPA, .pci_driver = { .driver = { - .name = "mlx5_vdpa", + .name = RTE_STR(MLX5_VDPA_DRIVER_NAME), }, .id_table = mlx5_vdpa_pci_id_map, .probe = mlx5_vdpa_pci_probe, @@ -855,6 +856,6 @@ RTE_INIT(rte_mlx5_vdpa_init) mlx5_pci_driver_register(&mlx5_vdpa_driver); } -RTE_PMD_EXPORT_NAME(net_mlx5_vdpa, __COUNTER__); -RTE_PMD_REGISTER_PCI_TABLE(net_mlx5_vdpa, mlx5_vdpa_pci_id_map); -RTE_PMD_REGISTER_KMOD_DEP(net_mlx5_vdpa, "* ib_uverbs & mlx5_core & mlx5_ib"); +RTE_PMD_EXPORT_NAME(MLX5_VDPA_DRIVER_NAME, __COUNTER__); +RTE_PMD_REGISTER_PCI_TABLE(MLX5_VDPA_DRIVER_NAME, mlx5_vdpa_pci_id_map); +RTE_PMD_REGISTER_KMOD_DEP(MLX5_VDPA_DRIVER_NAME, "* ib_uverbs & mlx5_core & mlx5_ib"); -- 2.25.1