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 82DC6A0C45; Wed, 16 Jun 2021 06:11:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2F0541142; Wed, 16 Jun 2021 06:10:16 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2072.outbound.protection.outlook.com [40.107.223.72]) by mails.dpdk.org (Postfix) with ESMTP id 9959C410E6 for ; Wed, 16 Jun 2021 06:10:14 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RbeOyDrf9nTiN0svQfIvqoVbVb58H35SV8PErL39fouUhEr/WwY1O8NUHeXzWS7u2DiWgUv1/KpMd+0JgiUb7uM/N+84KpjiXdrrZfnGL2Bs7KUb9XwV+oeLXl2cuPu6M+g30gevUbscE3KMRmJdpb4m1JTmukLqj+n8C1qPDj3BXn8zsVIjJLWwj7XzYs13YKppYUVvbfRe/YfPcReizr2V5/IyKEYkMQopRlsM4kpESTUFKqtyQhkW3dLgH0vrt+qiIKIE6ynzXl/F6ry9i78E9YtKaXu1FrA/pD1BWtLNjp3N5PDYxBSZtkOlfb4TFsbJquKrXB1BtgTMffvsRA== 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=k7B0vWFrTX7M4A2lxiUFc1tA9Vhx1P1KL7OLK5f7ozI=; b=Muhy3nTwwWyqS/CfokJkGOy117SY67bG81HL3HDJ8R1PNzvrSRoann5eekLUxCdBbOGG4fy0VMyVj7PxtoDmDB73pUSXzNtwuRY9C7ZylFlcZ07150Gkovi8C4BWBXotA9pz+n3hfg6oWm0MnibAj7Z4JiEneIRlCFQhORL3VH4o5r5/3tg/IE/+aUD+fYJzKA/M6Qiq+rqYV4dmBzcXLVlZ710Aiz6/meMCS5nA1yBIj2XbxvSrk1kP5YMot2UH03yWJjWU4OvnDhpMlYNJKCbc+f14vkPt3U1wGNqbu+MW1mt/eh3QJv5D2mrzPYQD8Vp5P8DcplvvSzeL3xqnkQ== 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=k7B0vWFrTX7M4A2lxiUFc1tA9Vhx1P1KL7OLK5f7ozI=; b=dzILZTxlig8fDJcf2DrGhuMeOgt2X3nijHYhB4gtGnhDXZLSIz8+kg93Q3kch3QvA2AcyWesfhtIV/Ct1L49+zpna13CtVHRqW8TzpBB36BmwdssVqCWKZnT62LIOhfhXEls+WhW6AzRJc0YFbDdsldUS2ES2eyYJ0INXzhzdHxNrz5paPjMKuUxAy/TOooSE27rJimNhztyEunB2r6lrzIbyfIsIKzPirsgE2RciLGAoGGYK/KvyXa23HsNH61x6RHnRpjz3pxGPHeVPDL+bvYMXH7kBj9HQqY8yr/Wfs2fQUPYsqjp8OEVy1cS/SVy4n2uPFL5TSDJ6Z5PFWVIxQ== Received: from BN0PR04CA0104.namprd04.prod.outlook.com (2603:10b6:408:ec::19) by DM6PR12MB2922.namprd12.prod.outlook.com (2603:10b6:5:18d::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.24; Wed, 16 Jun 2021 04:10:13 +0000 Received: from BN8NAM11FT049.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ec:cafe::d7) by BN0PR04CA0104.outlook.office365.com (2603:10b6:408:ec::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Wed, 16 Jun 2021 04:10:13 +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 BN8NAM11FT049.mail.protection.outlook.com (10.13.177.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4242.16 via Frontend Transport; Wed, 16 Jun 2021 04:10:13 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 16 Jun 2021 04:10:07 +0000 From: Xueming Li To: Viacheslav Ovsiienko CC: Thomas Monjalon , , , Matan Azrad Date: Wed, 16 Jun 2021 07:09:31 +0300 Message-ID: <20210616040935.311733-11-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210527133759.17401-2-xuemingl@nvidia.com> References: <20210527133759.17401-2-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.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: 56190330-74f9-47ed-91e8-08d9307ca3d0 X-MS-TrafficTypeDiagnostic: DM6PR12MB2922: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1079; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3oJ5/H2op5wMAtOHHJIBuSpxCqmB2Q1gkb0AqsgCUaHTsECrv7Vb3kOHYXf2syEjdG8iM1CfmxdeUZ5ZI1l56BZwYhQubBUeNMXlHIUedU4oweDfO52MZ6xB7AKe+JFs05qrQ6Sy38Yu0GBA33kvFU6l2TizfAJYOPaDdSL1yV/EYKsLg6xJoA5eAn/kWP7GC3RBawatZJTcnDwwrshydzPD64ZA3A28HsTiFEIylkyGs/Unf041Y6HFojmTZVkuRsvmOQdjAVRbyqBrf8YN/zOCV7xPElmxf3UYTyvS6lIacrCLh7pTDQYtyaeL+T9a0EBM5klmEk9HHIxW3Evjzyy1ddLc9spTsSH8Myl/TiJ5cGtcm3erWPHcLIEEL/7E7zfQh1IqJa3FOxFUUOG6v5muTCGJWODAvqIA9/PFHiaSlVvbtk0l37p4ScLvSU35Bcvfl6Ht2rfBhgV72SMp0DMJf82/Rb9fXj08grK1cSs5/hxPzDMbPD5QVBsc5qCR5Vu5rJHfN1aB6JWMivQHzttHhzcmzw7psKq/FqDVTu/yIU1evYxuZ5lFeN9hmyhqRADYZfmh6HVvfRSg91zf5O49jV08X9w0YiDFXYKV1Vo56frl+xL0M5DC418pc6x0jRenSQdFrNSIXIbS/H+iK0Ws11WxN9l3DxoJ++l06v4= 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)(396003)(39860400002)(136003)(346002)(376002)(36840700001)(46966006)(26005)(2616005)(86362001)(8936002)(6666004)(82740400003)(5660300002)(107886003)(16526019)(83380400001)(426003)(6286002)(36756003)(356005)(47076005)(8676002)(6862004)(186003)(70586007)(55016002)(70206006)(37006003)(4326008)(316002)(7636003)(6636002)(82310400003)(1076003)(7696005)(36860700001)(336012)(36906005)(478600001)(54906003)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2021 04:10:13.0269 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 56190330-74f9-47ed-91e8-08d9307ca3d0 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: BN8NAM11FT049.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2922 Subject: [dpdk-dev] [PATCH v1 10/14] vdpa/mlx5: define driver name as macro 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 Uses macro for pmd driver name. 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