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 C352AA0C45; Mon, 19 Jul 2021 04:56:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A507D411BC; Mon, 19 Jul 2021 04:56:03 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2040.outbound.protection.outlook.com [40.107.244.40]) by mails.dpdk.org (Postfix) with ESMTP id A2F26411AB for ; Mon, 19 Jul 2021 04:56:00 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wu8sxLPBoQZLJUZBYai3urJHO2gxnQjuaQYSCi1oRJESGXyL5dMuYs5Mp1AFUf+6I9GDWdML1iWKmmlTj8Aq7iG8yf3n6fkXMPXq90maCrQW1mHogCeJbwxc8Xw57/rBEbRRW2YX4bDo30jnzAJwSo1/FiF5ZZeIfZHTOlkFFNufq6X/blAZ4dlA50h+9iNb0FzdOnxuUfK1KUtKe0F7qoQZZgl1Nvs/IiIWA3QFpiPco7ugckF9RKN35Hd+DGx6TV6VyYJPFyAp3rIehOOoK1W0ZBmDna1O+VdxHFkqKzLgGE+Zr3tSrF8PxBJX2qOFY3wA3tOAZDegbKeYTYK7LQ== 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=Sqt/9K4zN6oAZl0MTin//lGSLqu702XlkwhreoQ46yww1/tPMMzk6/PnepGPz0oTj5tHJtaKxS65MeanyU2TaRWqJ5x3thon1Ycj/fZSQMglEHzJzzJbQUG9YImz48B2E1aEcBeP+MOpEeDPUZ5V8ZUmkIm8GIFEOq4BwE3bAiLl50pYVnaL8kdoa4A1FM90uKcKJe8e/7OhaAn6mj5/SpUSiFCnsW861ceArJ8W46EFR1aTVjzqbBipnPmlurC14WGACe+oXaZNA6Bt3YatEtCcys7S9LHgwCdRjYON+ckw/C4ZqX1jCtWSVQYQsIMz14SPrmbZQtZAMWNk4tC9nw== 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=k7B0vWFrTX7M4A2lxiUFc1tA9Vhx1P1KL7OLK5f7ozI=; b=Ma3cqG3JvNIQzIlm1183WWncYS43NhAm2w3nxHjjjazXCc24y5KBs4XYMr4HofVTy7sYZcrnvTZdPs1bABImG0syhOMZEDzOoEANsDd5/mp0+4zOwizKqKzz1nQ1zMkRgyCr85sfiydkT22GysnFKelwGAojdHiHUMHNFNkGUaIKYsin5BFQOmUirMcNvryMVj2+CKmRz1HkrdmKyK2EuTu0jM/lkuqYl9Vd1jwU8DuM3tbfqR3nEz2+x8RoIg0EKCr5bY436S7FHFPl7HriH2mrjF7ZguBxVRkLePglqOykPI1EdvW60txmuMQRpkf/Po3D/M8nlVbRrWahojshUA== Received: from MWHPR1701CA0002.namprd17.prod.outlook.com (2603:10b6:301:14::12) by MWHPR12MB1565.namprd12.prod.outlook.com (2603:10b6:301:b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Mon, 19 Jul 2021 02:55:54 +0000 Received: from CO1NAM11FT058.eop-nam11.prod.protection.outlook.com (2603:10b6:301:14:cafe::9b) by MWHPR1701CA0002.outlook.office365.com (2603:10b6:301:14::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 02:55:54 +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 CO1NAM11FT058.mail.protection.outlook.com (10.13.174.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 02:55:54 +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; Mon, 19 Jul 2021 02:55:50 +0000 From: Xueming Li To: Viacheslav Ovsiienko CC: Thomas Monjalon , , , Matan Azrad Date: Mon, 19 Jul 2021 10:54:06 +0800 Message-ID: <20210719025410.15483-12-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210713131437.30170-2-xuemingl@nvidia.com> References: <20210713131437.30170-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: 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: 4e1dc851-5491-4f3b-1683-08d94a60b9eb X-MS-TrafficTypeDiagnostic: MWHPR12MB1565: 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: 7jTKph8WGp1hbQYDwE7Mv6baEJZxpcLUkogywTJ49VtOhCiGcmAFPD9beSl19sPavj02xEaO4wZAFhCJaTPGl1IfSImRICy6A3ujBt5gWPDRAF8YI1G6CWxAwIym8wQMXNkKsSIc+FYj5+aLIHXnsrFh6yvu0wdLnKJN//jFcDWT66eDSDV2/MMD7TSpC/tKnoL15GAcKA6jKgaFUg7bsYdilgF4cVLSA+E7XYVIb+C4tQufBe6LZfDzu499BKTgFmcBRDT3UswWSorhDfcsjSadMbmgdratwXA//C7vJodLxMS2tLHnkEjtgwyCf+bpp8t9sfaVQO62qa2fuf3qpSIv3TdxAHoim1SKu5bZO2V2FWOJ4xrRGYa4S3torbKC4oXCU11PAKOjGL/5QnlJ++fXCcLunlYXxLMjLpSV+Jnn+suNtExK+WfgJoBF0/OLjjI2XMhygQYVS3ZWSLlFFJiKm8jpIhjUa5a/HZKy5U78E88JBcQHmP+kwFqb/95WKbZoFEIANYkGSExDGpbse9kGt3WLg9ZxhSjZf27fwdH1Fcq0UqmFCBGl6Xlf9aZaw6XQEKxZ0xLTEuzqW6jrSkBgaTvR49oVinyccYkBG9qJYc746rUKUvHXsP0ufbGxPT1MWt90qg5pJgC0nk+1w60YD2+cbGpByJcU5Bl28QwmgTaXirmEu+QHWVdQCOK1uR5PnRSU987h5L4xpA5xAg== 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)(36840700001)(46966006)(16526019)(1076003)(186003)(356005)(36860700001)(83380400001)(5660300002)(26005)(107886003)(86362001)(7696005)(6666004)(7636003)(6286002)(36906005)(426003)(336012)(8676002)(6862004)(70586007)(55016002)(47076005)(316002)(2616005)(54906003)(70206006)(37006003)(4326008)(36756003)(82310400003)(2906002)(6636002)(508600001)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 02:55:54.5073 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4e1dc851-5491-4f3b-1683-08d94a60b9eb 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: CO1NAM11FT058.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1565 Subject: [dpdk-dev] [PATCH v3 11/15] 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