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 26268A0C51; Wed, 21 Jul 2021 16:39:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EDD04410F8; Wed, 21 Jul 2021 16:39:33 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2087.outbound.protection.outlook.com [40.107.94.87]) by mails.dpdk.org (Postfix) with ESMTP id D622E410F8 for ; Wed, 21 Jul 2021 16:39:31 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BJvdmjQnikhClmC4teHz8xrzfeXOGJBi/p4ubaiieoHiTEY8XVUq0nOanFGkPdFPGRa0n0RJApxH37eibOyB6Grqm5t2hYR6P0Jnjgq9A0NG6LQlAF+xLGGF5+YWsxt9oUimo86pOUQJHSfkMe769RLrvII3M0s5s43UGvJ31jfOZu8DOAPv+GTu+A9TlxcWMoXVZa66sYrKZFtso7g36KR2ymiEOYtXIMMAy2apj5DN61nwWr0q5MiqUFwCZie1JZtBoN85Y6HvmJMJo1b0hUIz4fNPv980TGbkrQuwexOnou65el2rBRal80nTDiHFWi/rb9KDxkx7WCJcoBcHug== 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=CxgrXPyVjQHoqRXbRavUHSv/qxhUJvtrlW0oAgcoKEk=; b=YhyUjJMEm12xxar/0oEe2tVHlZfYKxGgaP5HE8dsocj81tNfT4ZLJP4kk4by/+lPL4G9tvwA4zujKL4lQOwlROC6Nl8FCOzC8cawHnxzYPJMLt16x0Ch6VnlmYyDrA1NXOYCuC5xP0TtTjIuzYaOrqFIPSwYKaY+Igm1b4q+ZXVy81nM/VNvQnWgSw4Vy6dfpVH+0ETdPGaAw6S4aWVB35xZj95K4ba+SILoIknCbrCNYfgbbOixJlw56a76PDItHKSERIIhycQjEuC7oiCNQyrVl/gG5lje3th0jgVw+2311blfvhhclcrU6DVN3bfEJ1rMMXWYXlh1qiH0jzWugA== 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=quarantine 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=CxgrXPyVjQHoqRXbRavUHSv/qxhUJvtrlW0oAgcoKEk=; b=b4lsYQKFdpuixXb8FKmJa2vJbl2JK1i8TmmdRVLFLvfLvUlaOb8ZEPKNuHGZ6lsZdDTBBICq9s/Qkz9XYLVk3ixdHz+PHKTEpFJdpAP45v0jMOv9+vjkQ1oEq2Be67bojhXPcHl0qIpqnq/UMYIY67wslIuCNrJ7YEePTS9IB2AcUzOLKYqAV7kCzr0zyWXBPNh/KRSJNd25yot14VT7XNsSqGHBRU/wsz4RIoUTsyCUj1DsDvdNS2ZqtvPp6qxr9NLA4z+spUVNaaEBuUNrj5dQP/w0/5EkF67EWF1fekyV/z53CML++JCj6DfZd0PMdX/f2thpPE/6SwdOs0KEKQ== Received: from BN9PR03CA0237.namprd03.prod.outlook.com (2603:10b6:408:f8::32) by DM6PR12MB3019.namprd12.prod.outlook.com (2603:10b6:5:3d::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25; Wed, 21 Jul 2021 14:39:30 +0000 Received: from BN8NAM11FT060.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f8:cafe::93) by BN9PR03CA0237.outlook.office365.com (2603:10b6:408:f8::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Wed, 21 Jul 2021 14:39:30 +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 BN8NAM11FT060.mail.protection.outlook.com (10.13.177.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4352.24 via Frontend Transport; Wed, 21 Jul 2021 14:39:30 +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, 21 Jul 2021 14:39:27 +0000 From: Xueming Li To: Viacheslav Ovsiienko CC: Thomas Monjalon , , , Matan Azrad Date: Wed, 21 Jul 2021 22:37:38 +0800 Message-ID: <20210721143743.24626-12-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> <20210721143743.24626-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2969fe0f-cdca-4f02-743e-08d94c55595b X-MS-TrafficTypeDiagnostic: DM6PR12MB3019: 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-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G383KU60L4kn8BkNspvMV5/Pxs75+DG3xFTMwWWgqbsh9ojAPRx1QNjId1pfiN95Pqq0YLVnn1G9PA2KM2wpaiUj866cgkgBgO18WZ8hYu5Cja5tLOEXg+plgbKsPBydKmbkb9dP4kZCUpyGCPCiXbHbR3XWEpUW+WmwQ2DNtkwtn0I77RgSDb9CI5ma0hL37Yo8uP7zOh74/ICDxkHUEhKXWokb5jcPzIXqzKy1noGCYuKAvNi5jm3YApDQ9OegBBdzboOtFJcIkF7HVfrM3Q3BEHSdXMAQZjwyqqVsfPss/06uSOXVZFuYxpbk4XOc3lrDXWrsOMespBou/vAx+EIBO90lhvPB5QVQAtJLunYAAPQOLg7cXY7pQnLZ5aUJhrMrjXV+EsfWGPd3fPWH3t6M17B132/FT6qlxUjDjhuMbYsmWQgqqdkwJOSfNzOdq1v4+oHSXpDiIfNHP5S1UMPJKl0r+XCruI3jX91OVv2SHUgxYhqpPTwIJ8dFw9Km1LhcW9qlqWPegaT8PjpU1itcIguNsYzLT2gSLoSIDmo+IULecRVkoQJuht18O5vn0qRm3v23VyRVPKukuaSDHkCcnRbskUizvk0uegCtH6q3APQQVgX6oeq3PhJ4/tIcUtli/64CsNU5DS2lknfdjSfZOhq5KVsn+uXuXwrHyUN1u4+iH5RN1qkUrTo0mjSDVH73DZOw7cGaK20pqdBpcw== 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)(346002)(136003)(376002)(396003)(39860400002)(46966006)(36840700001)(36860700001)(186003)(336012)(16526019)(36756003)(82310400003)(7636003)(6862004)(7696005)(2616005)(26005)(6636002)(8676002)(107886003)(4326008)(8936002)(83380400001)(478600001)(55016002)(356005)(47076005)(6666004)(82740400003)(1076003)(2906002)(86362001)(426003)(316002)(70586007)(70206006)(5660300002)(37006003)(6286002)(36906005)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2021 14:39:30.3133 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2969fe0f-cdca-4f02-743e-08d94c55595b 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: BN8NAM11FT060.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3019 Subject: [dpdk-dev] [PATCH v4 11/16] 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 Acked-by: Viacheslav Ovsiienko --- 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