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 02A35A0C51; Tue, 13 Jul 2021 15:17:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7B51D41263; Tue, 13 Jul 2021 15:16:46 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2059.outbound.protection.outlook.com [40.107.93.59]) by mails.dpdk.org (Postfix) with ESMTP id EBD184128F for ; Tue, 13 Jul 2021 15:16:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c9Fzc5+TxXo3cCGrrRpCC/NKWu1TUORP0j3oIdLkywObKYvwFoN533cV2PLYiiTZQSJsWmCaOTU1JZ8T3plmvjiH96cg4UTRP4Q+i3PF8zIpXuv8qcQFzQOEUbCv66X1prXQuVrWw5Un+TcAXPc74yCZV5ouboGiE/ASKDgXnyozZlmiYhy84+nItjduS9aNrBEoFsgbSZLblTb1atMjB1JtqP2wyiaKtb2LEp7kQwbHUY6IuHms4yPGvqm2tF1AwNFV8ZEDhviuPrfpJOJzWBxPkO7y3fs43g9FQ1qiZxj1bqPrfHMX0aKu4LGk0XyggNoNG52NLBoERuc/4zA6LA== 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=mGRaxI6q+jjfbhBi2yT8Ds+f2bzm8BTOMK8WZMJFRZekHaKoJZiNPgs8WkcfRRb/zVgdt4tn8zQJ4J6ik7NwaytLAR8/N9F1iabAqyTr+YCPG+CDn7v503Dj5wOQ4ik7DVxvLPVyiPK/9L4YZVwoQ01tGIqcdZZokGamgT9+957h2uNJhDKWj6fGzAvaWrDgHgRuhbqtXsNgTyatVLzRnRdGw6L5YF2XW91J8/dUgu9mskErJlQDdo7Pdrxj5ZwxuashTIe5VY+ZXJTJ7prYp79d2+y2l6Y722jp8cXjT+M+VmRcQuIimzRq3QBXIOk+HMA1ZSkJ3yVbUg/8FeVx3g== 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=ePQPVYZTcDveozw+MTN5X20S4L6+p3aM+sfB+ox3xkc17T2DNTxNsAJiWgmjBhIt1i4ftYjchtDbgNejIBmnlGG2jC1kScpwMthlxjl8+xrFaf9rvPD/QN6Yq7c4y6gEnzp6Sa1hMlgrVrnGKOLuR+lmyfotFWui33pKvL11XkHLcj28nXJOrnfzWKBw3VzQnv088ZPK/yQWCI29MYzyqhj4sYZuZ2adDkX5/vAf2WjKYv8UKga6zqgW6uJkxeFcnMzFuH5YmoysYtLSlR4hjTQNgLDWDiAfjlZRy97FruiFGSIAKO9rVvPKPh25Yvl8RVUte3lGx71GpxfU6Y+lEQ== Received: from MW4PR03CA0055.namprd03.prod.outlook.com (2603:10b6:303:8e::30) by SA0PR12MB4542.namprd12.prod.outlook.com (2603:10b6:806:73::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.23; Tue, 13 Jul 2021 13:16:43 +0000 Received: from CO1NAM11FT023.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8e:cafe::5f) by MW4PR03CA0055.outlook.office365.com (2603:10b6:303:8e::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.21 via Frontend Transport; Tue, 13 Jul 2021 13:16:43 +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 CO1NAM11FT023.mail.protection.outlook.com (10.13.175.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4308.20 via Frontend Transport; Tue, 13 Jul 2021 13:16:42 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Jul 2021 13:16:29 +0000 From: Xueming Li To: Viacheslav Ovsiienko CC: Thomas Monjalon , , , Matan Azrad Date: Tue, 13 Jul 2021 21:14:33 +0800 Message-ID: <20210713131437.30170-11-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210616040935.311733-2-xuemingl@nvidia.com> References: <20210616040935.311733-2-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4d6f2e45-710c-4cc4-5ed6-08d946007553 X-MS-TrafficTypeDiagnostic: SA0PR12MB4542: 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: F2ZkdGyNgrSI++xwWCdGeIeMA/OHnOLHATDepRwmo8MGrxf8y7ZR8JewMR0Ruy0ej6CpdVt6o9cTAL5p13z6+3+GufVcUdhoD/7h+aP+JcfPQM/aodfiocrJvyGGq+faIQ1sgKhFMQQ+bbmc8Jjs2orUq+/VYgjP0HPRHVpRQcMGq9+qwLTfLcBua0vwqiGaMNbnxh1Do74amX9zy3Ihy5mM2Z5PEy86rr2lk798ngJLmNk85si++uN35HN20wSHaGvRZFAqExm695GgMkEwR4cUV6P/T0N/bDYvMLiPFYrLQb+Vu7k+ePp6FSeA/x3Tw1UgL2Z5EcLBBwAoyn4OwU4DysY93ggooxlNHu2qN/l6LHAd550sudafmCj7nDwQSLXdBxDPw7gCQYr8nWzVfBA4NRii4zCOIydih61qqPdTxAzWdkJ/WC9YjUpffQVB9hIO2f6bDbbgAyL+Bxyo3tOUyKv+V1zbDBbCZEoOJiNmS1t8v9Wf97uiAcphk5unIHiUcEJIo0VtMyq2KXNfLe9dy0ciBJkD20cbM5q0DMUqWrMTUQUyhSC38YkGX6YBJ/GwAsrVmXsRbOCt+u6JOGRqrGh+f4T2LC6hrJB0nWL6TNEtIQGRhs4ANabsFYyyJ/hXZ/HErpzkgKjGU2Gsl3b+Ig8Bqseizbikl5MROB5scNd3l5wkzSPPrqeU2TwEhxL9rTH4soUzou6kzFHkjMHxwfM0qSjr4BJguSQxi4s= 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)(396003)(39860400002)(136003)(376002)(36840700001)(46966006)(5660300002)(356005)(316002)(55016002)(426003)(26005)(16526019)(7696005)(336012)(47076005)(6286002)(37006003)(86362001)(36906005)(7636003)(186003)(6666004)(8676002)(82740400003)(1076003)(2906002)(36860700001)(8936002)(4326008)(54906003)(2616005)(107886003)(478600001)(6862004)(82310400003)(36756003)(83380400001)(6636002)(34020700004)(70206006)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2021 13:16:42.7140 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4d6f2e45-710c-4cc4-5ed6-08d946007553 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: CO1NAM11FT023.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4542 Subject: [dpdk-dev] [PATCH v2 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