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 C915941CE4; Mon, 20 Feb 2023 09:49:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5614342FF8; Mon, 20 Feb 2023 09:49:11 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2068.outbound.protection.outlook.com [40.107.94.68]) by mails.dpdk.org (Postfix) with ESMTP id AEAAB42FC6 for ; Mon, 20 Feb 2023 09:49:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l2egqtcUyG1jdhXSfnAnctQIfAKH2AGYxjLPYn3LEG0FZ5baPunenc51gYinJ6K0V3YboK0x8RAMYHpVWODGYFK+vuFELZwTSm6XxkucCB0ESgPYZL6Ya3Yy4q3Hq38LihdUQpsifJNZLlctseT5i8lW6L3y4Fv96Unu3/VrzUPf9EHNsX1Ww/tAyImPWnlf88h2h2rFjnKDn8Msz8goXk9ljG6N9wQDNwU+8QL61joabuCFdLpNtRuP9Hwscu2sPHsXFlCQf1tqntxHkqBGGI+BNdH7MiUh3NJrx0HfkQPY0vXegGnZSpsyxJqNMmGNhoJUc01GbKQZewxhOD4Cug== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FJe+YSBmzXhglLGEHyTfQdM/gBwjQbGA3E264GCceXc=; b=CEe/BZrFtOHSwErttJZsT2mZTUyEGS27hpgZfFM9PcH/Aw3DFfqAntVIxbylFcp7lblnVsGnuLarP4C6/EBKBCpgOUrlP3rHGuyaVjmoSbdH/0HiCtSB0awytWn8lfY4uk+xPp6NfemUDybTH/r8Ala10L0zQdKSgMe5TQVPE65m1Cyp5y/W1RtQcvwT2KfLmczNbVwe6AAgcxD/Oj/IIWelaynWprCEKf73Rv1kcIuYsVhIB2yVK5YJpgjrr8aO62osxNWhKWlAH7Olph8AdnhbzQUOcGf9BE1dq6oYuYz2AEzswCcql4vOSwM5MXPT0jIWrkbNtRTxgRlhXv6ocA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=FJe+YSBmzXhglLGEHyTfQdM/gBwjQbGA3E264GCceXc=; b=KOXNamkx3O2gxcwqY+nVZvWzLUJThTNhnsVDoiwjYwh54+zGgpthsq5WlFyaHxphNvUKI5LmoQtMW6KenHegenP2rdFfZZpMzyDBFM/7gah88pd81OUedfEqZi2Te8Z+tXFyTL+VRd7sy+6Ndya10FEBnF9LWsRByO7V5UlEsOHOoPGy8Kp+dhGoNcq0bE4Cl6brVN/2uYjbTjVyS0yuKTc5C1D/ngWqUqcPths6DA8gz18TmK3qT0BBDwa6I1OLiqYlTIjlEisAqmilgBgwnIexjb8vVpntVt2MZ+flYUTXsgYzgWtttKimPa3CY29cyQA7LmajFsgAk8gQ/c0f3Q== Received: from BYAPR02CA0042.namprd02.prod.outlook.com (2603:10b6:a03:54::19) by BL1PR12MB5269.namprd12.prod.outlook.com (2603:10b6:208:30b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.20; Mon, 20 Feb 2023 08:49:06 +0000 Received: from CO1PEPF00001A60.namprd05.prod.outlook.com (2603:10b6:a03:54:cafe::2b) by BYAPR02CA0042.outlook.office365.com (2603:10b6:a03:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.19 via Frontend Transport; Mon, 20 Feb 2023 08:49:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CO1PEPF00001A60.mail.protection.outlook.com (10.167.241.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.14 via Frontend Transport; Mon, 20 Feb 2023 08:49:05 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 20 Feb 2023 00:48:48 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 20 Feb 2023 00:48:45 -0800 From: Raslan Darawsheh To: CC: , , Matan Azrad , Viacheslav Ovsiienko , Fan Zhang , Ashish Gupta , Ori Kam Subject: [PATCH v3 1/4] mlx: update PCI device IDs names for NVIDIA BlueField NICs Date: Mon, 20 Feb 2023 10:48:24 +0200 Message-ID: <20230220084827.3317796-2-rasland@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230220084827.3317796-1-rasland@nvidia.com> References: <20230216140415.2730446-1-rasland@nvidia.com> <20230220084827.3317796-1-rasland@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF00001A60:EE_|BL1PR12MB5269:EE_ X-MS-Office365-Filtering-Correlation-Id: 20b82a9d-c118-470b-3000-08db131f52b6 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tl+8L7qNsDUgFOQw421cGpWSYect+/LASE5jvZ3WBCTnwaUfpK0Z4/5iYYZzNDIXjwgzNy2p2QYiZsSulwtfFWKiJtCw89fl6dNSF0LLZN6DAeeOPPs8NkFs0/IyDYf27svBajGYhqtApUcEm2WnF9ZOC19F6iTw9qYM31CzhLW+XORVqHC5VRlB+0btOyHPWCXClxFqQi857oGr03ab+K7ZgXHqSGwERIZNL6tlcQVuMptrgtP7HP+nzIFvkts2IA3OSknqZox8wFg6vovMwzWeQhYB0B090gR40OucZmo/O6CtuiIKMDVFCDRF82qeMlWTxYgG7hYNUjjuzdJf2WD4e0a5ZlQpUE5hDVSaB7GTstFPlIu6EEM2IcX6tMo2dqWMzJsmxredp4f7vghV+C4+xuv5peAT1G7Zu+lLK9qinsZzgJ5BYY7cCXvANFRFrcUQ8qg0D+yvcb35boS4VcCN48Cup+9jXZOTy9u6uJ3it43sxI1G4tWtacXM5RwL1ug+bp6+cqqM9xUv++CMrODM220qcNWLU0BfuMtqxFRbBR8BXEI3ygcOiJbPSKK6LnZG+a6dT18sprnoul5kNHE3OYOi+lRZHwyJ+Tyt5nJtUtTiXIEHmBCybFcEWidU3w5YDoSSI+g5m6or5ZSCZlScL129jEKcmbHfYmISn8uM0Msg9ZCXuh2t1M0arl0g5vKba05ScoeYrRcW0UhDnA== X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(376002)(39860400002)(136003)(346002)(396003)(451199018)(36840700001)(46966006)(40470700004)(86362001)(36756003)(6916009)(4326008)(8676002)(55016003)(8936002)(2906002)(70586007)(70206006)(15650500001)(5660300002)(36860700001)(356005)(7636003)(82740400003)(6666004)(1076003)(107886003)(478600001)(7696005)(316002)(54906003)(41300700001)(40480700001)(82310400005)(426003)(47076005)(336012)(2616005)(40460700003)(186003)(6286002)(16526019)(83380400001)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2023 08:49:05.4548 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 20b82a9d-c118-470b-3000-08db131f52b6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF00001A60.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5269 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 This updates the PCI device names for all NVIDIA BlueField family. Signed-off-by: Raslan Darawsheh --- drivers/common/mlx5/mlx5_common.h | 8 ++++---- drivers/common/mlx5/mlx5_common_pci.c | 2 +- drivers/compress/mlx5/mlx5_compress.c | 4 ++-- drivers/crypto/mlx5/mlx5_crypto.c | 2 +- drivers/net/mlx5/mlx5.c | 8 ++++---- drivers/net/mlx5/mlx5_flow.c | 10 +++++----- drivers/net/mlx5/mlx5_txq.c | 2 +- drivers/regex/mlx5/mlx5_regex.c | 4 ++-- drivers/vdpa/mlx5/mlx5_vdpa.c | 4 ++-- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h index c7bd703497..f8d07d6c6b 100644 --- a/drivers/common/mlx5/mlx5_common.h +++ b/drivers/common/mlx5/mlx5_common.h @@ -130,16 +130,16 @@ enum { PCI_DEVICE_ID_MELLANOX_CONNECTX5VF = 0x1018, PCI_DEVICE_ID_MELLANOX_CONNECTX5EX = 0x1019, PCI_DEVICE_ID_MELLANOX_CONNECTX5EXVF = 0x101a, - PCI_DEVICE_ID_MELLANOX_CONNECTX5BF = 0xa2d2, - PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF = 0xa2d3, + PCI_DEVICE_ID_MELLANOX_BLUEFIELD = 0xa2d2, + PCI_DEVICE_ID_MELLANOX_BLUEFIELDVF = 0xa2d3, PCI_DEVICE_ID_MELLANOX_CONNECTX6 = 0x101b, PCI_DEVICE_ID_MELLANOX_CONNECTX6VF = 0x101c, PCI_DEVICE_ID_MELLANOX_CONNECTX6DX = 0x101d, PCI_DEVICE_ID_MELLANOX_CONNECTXVF = 0x101e, - PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF = 0xa2d6, + PCI_DEVICE_ID_MELLANOX_BLUEFIELD2 = 0xa2d6, PCI_DEVICE_ID_MELLANOX_CONNECTX6LX = 0x101f, PCI_DEVICE_ID_MELLANOX_CONNECTX7 = 0x1021, - PCI_DEVICE_ID_MELLANOX_CONNECTX7BF = 0Xa2dc, + PCI_DEVICE_ID_MELLANOX_BLUEFIELD3 = 0Xa2dc, }; /* Maximum number of simultaneous unicast MAC addresses. */ diff --git a/drivers/common/mlx5/mlx5_common_pci.c b/drivers/common/mlx5/mlx5_common_pci.c index 73178ce0f3..5122c596bc 100644 --- a/drivers/common/mlx5/mlx5_common_pci.c +++ b/drivers/common/mlx5/mlx5_common_pci.c @@ -116,7 +116,7 @@ mlx5_dev_is_vf_pci(struct rte_pci_device *pci_dev) case PCI_DEVICE_ID_MELLANOX_CONNECTX4LXVF: case PCI_DEVICE_ID_MELLANOX_CONNECTX5VF: case PCI_DEVICE_ID_MELLANOX_CONNECTX5EXVF: - case PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF: + case PCI_DEVICE_ID_MELLANOX_BLUEFIELDVF: case PCI_DEVICE_ID_MELLANOX_CONNECTX6VF: case PCI_DEVICE_ID_MELLANOX_CONNECTXVF: return true; diff --git a/drivers/compress/mlx5/mlx5_compress.c b/drivers/compress/mlx5/mlx5_compress.c index 459e4b5e8a..430f769d41 100644 --- a/drivers/compress/mlx5/mlx5_compress.c +++ b/drivers/compress/mlx5/mlx5_compress.c @@ -786,11 +786,11 @@ mlx5_compress_dev_remove(struct mlx5_common_device *cdev) static const struct rte_pci_id mlx5_compress_pci_id_map[] = { { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELD2) }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX7BF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELD3) }, { .vendor_id = 0 diff --git a/drivers/crypto/mlx5/mlx5_crypto.c b/drivers/crypto/mlx5/mlx5_crypto.c index 498613939c..2988642857 100644 --- a/drivers/crypto/mlx5/mlx5_crypto.c +++ b/drivers/crypto/mlx5/mlx5_crypto.c @@ -992,7 +992,7 @@ static const struct rte_pci_id mlx5_crypto_pci_id_map[] = { }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELD2) }, { .vendor_id = 0 diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index cfc4609448..f55c1caca0 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -3202,11 +3202,11 @@ static const struct rte_pci_id mlx5_pci_id_map[] = { }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX5BF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELD) }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELDVF) }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, @@ -3226,7 +3226,7 @@ static const struct rte_pci_id mlx5_pci_id_map[] = { }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELD2) }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, @@ -3238,7 +3238,7 @@ static const struct rte_pci_id mlx5_pci_id_map[] = { }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX7BF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELD3) }, { .vendor_id = 0 diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 73e6d3b486..a6a426caf7 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -11221,8 +11221,8 @@ mlx5_flow_flex_item_create(struct rte_eth_dev *dev, return NULL; } switch (priv->pci_dev->id.device_id) { - case PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF: - case PCI_DEVICE_ID_MELLANOX_CONNECTX7BF: + case PCI_DEVICE_ID_MELLANOX_BLUEFIELD2: + case PCI_DEVICE_ID_MELLANOX_BLUEFIELD3: break; default: rte_flow_error_set(error, ENOTSUP, @@ -11470,9 +11470,9 @@ int16_t mlx5_flow_get_esw_manager_vport_id(struct rte_eth_dev *dev) if (priv->pci_dev == NULL) return 0; switch (priv->pci_dev->id.device_id) { - case PCI_DEVICE_ID_MELLANOX_CONNECTX5BF: - case PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF: - case PCI_DEVICE_ID_MELLANOX_CONNECTX7BF: + case PCI_DEVICE_ID_MELLANOX_BLUEFIELD: + case PCI_DEVICE_ID_MELLANOX_BLUEFIELD2: + case PCI_DEVICE_ID_MELLANOX_BLUEFIELD3: /* * In old FW which doesn't expose the E-Switch Manager vport ID in the capability, * only the BF embedded CPUs control the E-Switch Manager port. Hence, diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index 5543f2c570..419e913559 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -767,7 +767,7 @@ txq_set_params(struct mlx5_txq_ctrl *txq_ctrl) txqs_inline = #if defined(RTE_ARCH_ARM64) (priv->pci_dev && priv->pci_dev->id.device_id == - PCI_DEVICE_ID_MELLANOX_CONNECTX5BF) ? + PCI_DEVICE_ID_MELLANOX_BLUEFIELD) ? MLX5_INLINE_MAX_TXQS_BLUEFIELD : #endif MLX5_INLINE_MAX_TXQS; diff --git a/drivers/regex/mlx5/mlx5_regex.c b/drivers/regex/mlx5/mlx5_regex.c index 4c20daac94..4ed62b538b 100644 --- a/drivers/regex/mlx5/mlx5_regex.c +++ b/drivers/regex/mlx5/mlx5_regex.c @@ -156,11 +156,11 @@ mlx5_regex_dev_remove(struct mlx5_common_device *cdev) static const struct rte_pci_id mlx5_regex_pci_id_map[] = { { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELD2) }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX7BF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELD3) }, { .vendor_id = 0 diff --git a/drivers/vdpa/mlx5/mlx5_vdpa.c b/drivers/vdpa/mlx5/mlx5_vdpa.c index 026daa3f24..f8dfa95133 100644 --- a/drivers/vdpa/mlx5/mlx5_vdpa.c +++ b/drivers/vdpa/mlx5/mlx5_vdpa.c @@ -961,7 +961,7 @@ static const struct rte_pci_id mlx5_vdpa_pci_id_map[] = { }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELD2) }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, @@ -973,7 +973,7 @@ static const struct rte_pci_id mlx5_vdpa_pci_id_map[] = { }, { RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, - PCI_DEVICE_ID_MELLANOX_CONNECTX7BF) + PCI_DEVICE_ID_MELLANOX_BLUEFIELD3) }, { .vendor_id = 0 -- 2.25.1