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 BF775A0C45; Mon, 19 Jul 2021 04:54:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 44D424117E; Mon, 19 Jul 2021 04:54:59 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2058.outbound.protection.outlook.com [40.107.101.58]) by mails.dpdk.org (Postfix) with ESMTP id CFAEA41152 for ; Mon, 19 Jul 2021 04:54:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G02PMyiUhMA7/hSLtXd27yqL2Jrg5XHz6Vb7XUPecwqKFiCwbMvK6dIuQlXWWKRWp20BWqFhN1bPL8m3wB2DyZufI/rf/KyfDtFtsV6tudFGz771OCoU6uS+QnOxnXnIB794/LxLj8RrobBkzg0d5JXL8sKH+lcBZ/4JuCpLshJPEm2orHPw9BzMCVX2zsp3JlQwZhyS1RjRwOHJesaSxdmfCjWyX8Sikh22bVtJ+RolhOHerYGHcOKsehF+kM6fMzxcHe6E0Lj0XflUPm6m2twTsZQRAcnowg8YXmsJraKtUWZ/PyN86ZroyNGIzSmLq1XGjksneXRFYomKGASFkw== 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=uEzH6wx7HlPbtZ4YhnWmUI5m4e3UQ3ndAvp6lR6pRAQ=; b=j7/xkibwt6J1oukuPpEWcxBVQ5Y6KfZgX61M0F/gdxxINHFkjzO3Mz2uwAIu8DlBPzUZEcRYGnd1HQIVXm08D2sfaoCnIP1E1SUlk76/8Qon6kGutI4EtJHYh2Ayg8JzQRF/C+eh7ibEp1jaU+mSB67nUdoiKLx9cuVW8n9qQAoZR62RP0QK2hGC9GtCLRlf/NGRwlfwNTzV9HPYgcj8K7MQFIcxw1x7rST+4BNaTkkvvC51Gw7vOibmJ2SgQHRL/Y0ip3xasuhoWet5llnbtj4JK9PrAc55FHgEstC/XehQ9csE34w5galmCR2k2C2o7mlkDRdMiGZQMO7kpxxINQ== 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=uEzH6wx7HlPbtZ4YhnWmUI5m4e3UQ3ndAvp6lR6pRAQ=; b=Qa8O17wOKsuqxTCPeNBlFzjgKTT+UV9CkK3UiOFUZ/g6I/Tf+oCf1DdTG5Tzcl7tX4eCpfiaES03EpA7AQ/SYzilpzHb7sdZl31dlPLW2rKcWO9d+cxb0XidEBcw1X++ZnZ0vRGWwU2a+eqEvWKIxms+NI8e2ytG9Ff/ulKIgXkn8S+fIT3OUmjaJZ9Ie687hCPngZj1abHJ/MfRJPQhBQIxbDhtQS8lIdFeB0Zx5/jQosW1k7uxaXWGlzug/EXEpgli/KSX072MqVh16VO31lG8yzn8qQrDHeVUnkM3wupSvtstpXSm7B/Y4+Q/3n449ZvB3gTk5C65+kOMi1hd1w== Received: from MW4PR04CA0064.namprd04.prod.outlook.com (2603:10b6:303:6b::9) by MN2PR12MB4000.namprd12.prod.outlook.com (2603:10b6:208:16b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Mon, 19 Jul 2021 02:54:56 +0000 Received: from CO1NAM11FT006.eop-nam11.prod.protection.outlook.com (2603:10b6:303:6b:cafe::6a) by MW4PR04CA0064.outlook.office365.com (2603:10b6:303:6b::9) 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:54:55 +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 CO1NAM11FT006.mail.protection.outlook.com (10.13.174.246) 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:54:55 +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:54:50 +0000 From: Xueming Li To: Viacheslav Ovsiienko CC: , , Matan Azrad , Shahaf Shuler Date: Mon, 19 Jul 2021 10:53:56 +0800 Message-ID: <20210719025410.15483-2-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: 75abef3c-02ae-424c-3994-08d94a609693 X-MS-TrafficTypeDiagnostic: MN2PR12MB4000: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3276; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N+/HR8t4IRTIl6PqjFz/h+qcFJ45bxExV8AizMnFLx5YcYDsYjargX/ueXz5JZMBomPui9OH+LCfoBKnq0+qKtzpFR//T5Oe6riTiphDgVgM4K1F9cBDI0XU7+jQdXjYO+0D/caJXL6BEEoFxWwCfRN0h9VvpxCwDnbCrOCM4gh5C3a8XjnzsY4OVE4YTc+xIrIFjxO+aDGMZQZUQNmOdGykUGReBDokklUZbrliGw3gKonatIZ2lOz9s9pABY6edjSYnSeYHtyHGawodC/z+Wr9qhy/XsOFv7G0cVoxSRIAylPpD9JArwVxfwXwQbXr9OOMEo0twgrmUMRO1yI/FjeZsxNmOlLCWhS1LXNEb+oysmvBjwYmspz0MC8x0H4baoxef98AK3PKGyFjTZR+cwyUiF1JNPMSWKxzt3rUC951YlKchHkZbwH2F+k4BBLVer52U1WLs9zdEgMHscydkibnkoBMVi3z7Qg2g4DrM8CGvHKW2zlzjlySJbPGaqpOc4oZTG8oS4ih32sOJChsCD/1XU5Rp1/tVGHS6DKys9a3TpbngZyg95qNkJFBljBdUcA1MYdRhG4CtqyjsQZ4QkQQ1WUAvLek2B8Ewxm+fMBeoLVvkVtynkDGcF1f5tz7y6VHWFVvqArN4bsjKoO0FpWlku4jObez4hnm17mYqkrOgthw82yQ1ODfsd0j/c252uppjhgKAtOZTnxQ8YjADg== 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)(46966006)(36840700001)(186003)(16526019)(7696005)(8936002)(86362001)(6286002)(36860700001)(83380400001)(6636002)(6862004)(4326008)(55016002)(26005)(356005)(2906002)(107886003)(426003)(5660300002)(2616005)(70206006)(82310400003)(36756003)(37006003)(54906003)(316002)(8676002)(36906005)(47076005)(1076003)(508600001)(7636003)(70586007)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 02:54:55.1883 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 75abef3c-02ae-424c-3994-08d94a609693 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: CO1NAM11FT006.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4000 Subject: [dpdk-dev] [PATCH v3 01/15] common/mlx5: rename eth device class 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" To align with EAL class driver, rename internal class name from "net" to "eth" Signed-off-by: Xueming Li --- drivers/common/mlx5/mlx5_common.h | 2 +- drivers/common/mlx5/mlx5_common_pci.c | 14 ++++++++------ drivers/net/mlx5/mlx5.c | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h index 7fb7d40b38..e8cd5182ac 100644 --- a/drivers/common/mlx5/mlx5_common.h +++ b/drivers/common/mlx5/mlx5_common.h @@ -212,7 +212,7 @@ int mlx5_get_ifname_sysfs(const char *ibdev_path, char *ifname); enum mlx5_class { MLX5_CLASS_INVALID, - MLX5_CLASS_NET = RTE_BIT64(0), + MLX5_CLASS_ETH = RTE_BIT64(0), MLX5_CLASS_VDPA = RTE_BIT64(1), MLX5_CLASS_REGEX = RTE_BIT64(2), MLX5_CLASS_COMPRESS = RTE_BIT64(3), diff --git a/drivers/common/mlx5/mlx5_common_pci.c b/drivers/common/mlx5/mlx5_common_pci.c index 34747c4e07..1e3c1de12d 100644 --- a/drivers/common/mlx5/mlx5_common_pci.c +++ b/drivers/common/mlx5/mlx5_common_pci.c @@ -28,22 +28,24 @@ static const struct { unsigned int driver_class; } mlx5_classes[] = { { .name = "vdpa", .driver_class = MLX5_CLASS_VDPA }, - { .name = "net", .driver_class = MLX5_CLASS_NET }, + { .name = "eth", .driver_class = MLX5_CLASS_ETH }, + /* Keep name "net" for backward compatibility. */ + { .name = "net", .driver_class = MLX5_CLASS_ETH }, { .name = "regex", .driver_class = MLX5_CLASS_REGEX }, { .name = "compress", .driver_class = MLX5_CLASS_COMPRESS }, }; static const unsigned int mlx5_class_combinations[] = { - MLX5_CLASS_NET, + MLX5_CLASS_ETH, MLX5_CLASS_VDPA, MLX5_CLASS_REGEX, MLX5_CLASS_COMPRESS, - MLX5_CLASS_NET | MLX5_CLASS_REGEX, + MLX5_CLASS_ETH | MLX5_CLASS_REGEX, MLX5_CLASS_VDPA | MLX5_CLASS_REGEX, - MLX5_CLASS_NET | MLX5_CLASS_COMPRESS, + MLX5_CLASS_ETH | MLX5_CLASS_COMPRESS, MLX5_CLASS_VDPA | MLX5_CLASS_COMPRESS, MLX5_CLASS_REGEX | MLX5_CLASS_COMPRESS, - MLX5_CLASS_NET | MLX5_CLASS_REGEX | MLX5_CLASS_COMPRESS, + MLX5_CLASS_ETH | MLX5_CLASS_REGEX | MLX5_CLASS_COMPRESS, MLX5_CLASS_VDPA | MLX5_CLASS_REGEX | MLX5_CLASS_COMPRESS, /* New class combination should be added here. */ }; @@ -303,7 +305,7 @@ mlx5_common_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, } } else { /* Default to net class. */ - user_classes = MLX5_CLASS_NET; + user_classes = MLX5_CLASS_ETH; } dev = pci_to_mlx5_device(pci_dev); if (!dev) { diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 021a34dd4d..d9c90d5ef9 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -2446,7 +2446,7 @@ static const struct rte_pci_id mlx5_pci_id_map[] = { }; static struct mlx5_pci_driver mlx5_driver = { - .driver_class = MLX5_CLASS_NET, + .driver_class = MLX5_CLASS_ETH, .pci_driver = { .driver = { .name = MLX5_PCI_DRIVER_NAME, -- 2.25.1