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 1E1B241CB2; Thu, 16 Feb 2023 15:04:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E23C642D65; Thu, 16 Feb 2023 15:04:47 +0100 (CET) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2063.outbound.protection.outlook.com [40.107.100.63]) by mails.dpdk.org (Postfix) with ESMTP id 2FDAD40EE3 for ; Thu, 16 Feb 2023 15:04:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UEqo40El0uV0SSx6Ti3vVG8c4EPgJOpz/+JfPMOjgV8+BKAaIEhJhHxMTT947uHnVCnmMzm0qWMa2F9fpk4s1EEBnJVEjgKU60YA0XpJPWSjT7XVau1F9t/RG1J9i7oIc5cCam5jFDW6co1Mtsg2JeVj9mnWEFDHlDnEEVwhTT9t2KEoV8QHFh9Z0laGzqXdTuW1GsI7YodGqH6u17XExw4xK1hluc7z5EA1su4nCcbUoJyGEPthXmqLb5arOQTfoaV8sMt/xrYjol+5md5KKP1X4KKI3+z1m8OrdTd4KOcF7VkYzgla4gC+bXquOf9KGB4nNIHZ2hoxnfRCt6oSzQ== 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=Gzlop9wuVVVHMMhi8I0rJJuCqWeQncrTGWZTU5V0yrjWSsoNZHFWKV1HXW1T1QfqyWGIRkebFuMYgJ30j98bEymN1htFvFOUuoGAe0/JxHQ4USPl0D90LAdN8gIfLBK0MGRq4o6ZoipbGxEFTLtC+HRZHBFLhXre3iaTPgGtcW56tpBy/wQiJcjHIZpI480zoFLOnbEKO3IQX+qgXaDTxS9GvkiAiVnOROxCbwk3LQxVSXqtCsJIQkJNFHJVSUYtky0JG3hI0M/p4r35rrNPfddIoeNUH9WCCYxjKyLIdgF6sz8Ld5fZJR6JjcApW3/un3ZWK8HUPs8wIaEW6DKwIA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=r90ijG4sBfTzEid/PhRBsQZevuqpgG1hWRBK0Bgt+Ft/qq2ok++4PGD8ydz77ox4+2wYc8mi0x+33rrX0yrqEKtaawSzntQEEAKdSBzNdwG+FyV4o5BzKV6sj8T9pvjHcR0D3svBQ3/jSPZzAInwv8G82v2TWGZDibDQsdC31nhdFm3sTLpj099w8z+kr3+BhCwS1D3bjLJuo+kvyVv+C7YxJRfGTX4t5ErCERthc89DARtCb3YCkUWz1aGDafizidfifG9VQjAw75IcM9Ni//d1FYBpKTi8axndonA4o6JW0WqsoafsDQI4FIrzXpy20Pz5G1z3h4O4bie8F+g+5Q== Received: from MW3PR05CA0012.namprd05.prod.outlook.com (2603:10b6:303:2b::17) by CH2PR12MB4245.namprd12.prod.outlook.com (2603:10b6:610:af::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.12; Thu, 16 Feb 2023 14:04:42 +0000 Received: from CO1NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:303:2b:cafe::fd) by MW3PR05CA0012.outlook.office365.com (2603:10b6:303:2b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.6 via Frontend Transport; Thu, 16 Feb 2023 14:04:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT038.mail.protection.outlook.com (10.13.174.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.13 via Frontend Transport; Thu, 16 Feb 2023 14:04:42 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 16 Feb 2023 06:05:27 -0800 Received: from nvidia.com (10.126.231.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; Thu, 16 Feb 2023 06:04:32 -0800 From: Raslan Darawsheh To: CC: , Matan Azrad , Viacheslav Ovsiienko , Fan Zhang , Ashish Gupta , Ori Kam Subject: [PATCH v2 1/4] mlx: update PCI device IDs names for NVIDIA BlueField NICs Date: Thu, 16 Feb 2023 16:04:11 +0200 Message-ID: <20230216140415.2730446-2-rasland@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230216140415.2730446-1-rasland@nvidia.com> References: <20230216135910.2701196-1-rasland@nvidia.com> <20230216140415.2730446-1-rasland@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.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: CO1NAM11FT038:EE_|CH2PR12MB4245:EE_ X-MS-Office365-Filtering-Correlation-Id: c2e14fd7-7fc9-4efa-e376-08db1026c028 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: BhSJ0+yzA4e3F7+cdcl0V7JBXKXnDkQ0/HnWTThmxVeUhSVayx0NxeUP6dlsnOwHzvjkxvOvOO0uZiO4ihfVhJ4cfnjLqEL21WvZFv6pth006GU+CK25X5G50wwIDRQQk5pHx4dZClOODOSqC4FV3zVvQBzjjVmJp3Jxr8XxGnkkMG4R4orSb6I6oC5foggeR17Hv0AMObCVk27hDFBuMmUdtz1mwXvrGS72bYP89g+bXZkACIkdoz+KEKO7poJOskCRsrz2gw0DDAu8Gj5TdEwuLbDuzlBWoFOYY6sXOXrXXJav6Kwp20JyFvWf8hotZ9XF3x7YaG6rJjy+CayhdhZTKLpPs1TkWEkyIUsE7HFwZ0vU/AnlX3+fdGo885zvY4Rx1+8Ht3AjNYL/BxHyS8z7Fa9D0Ax7ijIfY6ik4mG7IePJlUfZqWnFPhzxvM7sSPWEP3hw92PjOi6kLiuu3gHPAYNrzRT0hxD2vNeo3YlDWyzb/XW2lmzVxjdmCtGV4tIhTN8uKtubzThlYRumuWEMfIDx4fCAjXULe61Liqr7k2EX2ou56roxXuX1GtmejMhRducw+gBMA++pskXeLOhINEp0fAmo12kKTrwu19G1S5bsagvCqZZGNUUcK6B/BKdKRnAW00paesvdwIE7JeKVSwrihtXv3TnmeNFGUd6F0E5wp8IpjxtZKO8SDhkmuSo+zU29xYbueUKnSduYSw== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(396003)(346002)(136003)(39860400002)(376002)(451199018)(40470700004)(36840700001)(46966006)(5660300002)(7696005)(36860700001)(36756003)(107886003)(2906002)(86362001)(40460700003)(6666004)(40480700001)(16526019)(55016003)(6286002)(186003)(26005)(478600001)(1076003)(2616005)(336012)(15650500001)(82310400005)(6916009)(4326008)(7636003)(356005)(8676002)(82740400003)(41300700001)(70586007)(83380400001)(54906003)(70206006)(8936002)(316002)(47076005)(426003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2023 14:04:42.0045 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c2e14fd7-7fc9-4efa-e376-08db1026c028 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4245 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