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 250C845BFD; Mon, 28 Oct 2024 10:35:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E85A9402A3; Mon, 28 Oct 2024 10:35:05 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2077.outbound.protection.outlook.com [40.107.220.77]) by mails.dpdk.org (Postfix) with ESMTP id A2907400D7 for ; Mon, 28 Oct 2024 10:35:04 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IGkGLfadFBEfdrW5jsH1x3q8JnVjrBoM4FebJoU1s8Vw6bBXq5yAQn74GgXZhyl80FIghNwKR3ARMZlb+ydPgICLBdL7krLPwwR/oWJvgkndZmmJPKLgldrz/brn1zFiyUvmFy2QoR6RPXHtYQ7uBI3Jybs1Ms3iC3wJjsWKRpXVwhaq6t63cZ90JK4uBL5wwpnGi3j0dXsT8JTgh+UVIJMPyV8YG9hPnMwgVU0WaAvsZmgtyK+2Z56He4umkbhwDnFtbJ/iv/oWreblZfX+EITPC3uHs9CQxyujfJ+pgV6l1okoV6E0JmsGLTwXTAKg8z5jI3RPjMqpTRRxrdCDuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ZbzPrJ7Fn6zDM9aGw3nOZR0V+5NyXB7EwM+D6G0kC/c=; b=Blh0JoSghrwWDFZt0xvWxVbif+N3t002nIBiScJuXyehofrps9ZjQ0sNge4jb53VncJJ6zJd9LC+D1jmcH3Vq+AGWk0eYf4PM/L09vnPDkwGzFXeoSVB8TEcykI+VYxnOppnkPZIAMPE7ILjvgKyt4RspmUxVGt5qHkocvRo92824c1slkk5xdTNwM91FMHNo+JW86D0zyxKwiOhmjyOuvCGff1vRQ9b3NcneJ38BsNAagZjLmU+FDV6eU5bG1F3mhtjp096rLa5fCYhRt+57An7NLAg+DUpE14CactnI1sk9tHBiNUlHqVk1r5TWwm9yZTWDYtW1IvoVfn5cNA3zA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=ZbzPrJ7Fn6zDM9aGw3nOZR0V+5NyXB7EwM+D6G0kC/c=; b=P1jPId7oyWtfH12F0wy/YbiKWw0GdjarQFvu32MXT1/zOlEpjVZ9sDKZtHUf60jIW/B16x4ZxjaselPr95HS1O0XALCfpSSkNGwydW//mvG1CO7hgYkzFWypyxQMTLxExv+1F6G48Tzlt4c1CEwYKYkTZVdN8uV/UH1P5sBsHRv2wGS6Qm6epVVrqBnSBxt67qxIyonfcipFlAvkskFTdIsj5XIKKby2LeWRPI4eaEQIeys7WDI3v9lxXqpMCjY+coKAHIIWFm3pDrC009Oqr/cNOz3zlCnhqOS9UW/7HIz+oVOaCeaw4IifqnzPU6+rd4c78drvTyQ5YpDOHBcEeQ== Received: from CH3PR12MB8460.namprd12.prod.outlook.com (2603:10b6:610:156::15) by PH8PR12MB6891.namprd12.prod.outlook.com (2603:10b6:510:1cb::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.24; Mon, 28 Oct 2024 09:35:01 +0000 Received: from CH3PR12MB8460.namprd12.prod.outlook.com ([fe80::2e9d:7265:3b84:59b5]) by CH3PR12MB8460.namprd12.prod.outlook.com ([fe80::2e9d:7265:3b84:59b5%7]) with mapi id 15.20.8093.024; Mon, 28 Oct 2024 09:35:01 +0000 From: Dariusz Sosnowski To: Bing Zhao , "Jiawei(Jonny) Wang" , Suanming Mou , Xueming Li , Slava Ovsiienko CC: "dev@dpdk.org" , Raslan Darawsheh Subject: RE: [PATCH] net/mlx5: support no host PF configuration Thread-Topic: [PATCH] net/mlx5: support no host PF configuration Thread-Index: AQHZ/A4ezEYiDsV7vkKBH6yrGSKCVbJtYOSAgDDgHvA= Date: Mon, 28 Oct 2024 09:35:00 +0000 Message-ID: References: <20231011064153.46486-1-jiaweiw@nvidia.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH3PR12MB8460:EE_|PH8PR12MB6891:EE_ x-ms-office365-filtering-correlation-id: 1eb77c88-8ef0-4e7f-a7a6-08dcf733cb90 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?foKAlQoOqUDfXosWM2Ct9oC469bc7kjcpQqs6VRoxt/y2jS3mphTBtVfLLnD?= =?us-ascii?Q?a/Pri9+fOXhkjiiOcnar9CmHnQlUh9hTM4MAnNvybHzRO+JC0NDDjxDUoJBo?= =?us-ascii?Q?WqJx2V2n89pY5z3aMJFHnbyFlb7iNmgDsQGoRYhCZczHLaqyrGGimO/lf/wB?= =?us-ascii?Q?mRHnJMNmfyi36ljumWYOznl5ZZSOaNSkHKcx5v+b1OSspECwukeNqyGn1Yjv?= =?us-ascii?Q?/AtAWYvcN3IuFeLvoMedVfZ2wlZgwMtPkutj1tcZavAMiRBXOPGV4xIwlhae?= =?us-ascii?Q?9xqod5xWrJVesZOEKRgPLsHQyCUt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Zgwb0SSr5CBXKsTAkfBcux9g+AaPmb9txqvWO98o3cPIQSpv0k?= =?us-ascii?Q?wb2CagDZE+qnIO8OM28Lsnkg2VhCQmd7GkQlYBeOb0cvNE9eLz8jL340Oj/y?= =?us-ascii?Q?+z2Kgfs9zXeiVsJVnU/PJqil5iZbue8kiEOP6D8un2NRpoyDjD05mjRu6iYJ?= =?us-ascii?Q?WPaAzD4=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH3PR12MB8460.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hutcNEVEYZmOsuMmxl89hMCWiQLoyOqr6N/Tvs8jkYKePVPSkqCGf0j5gTgc?= =?us-ascii?Q?Za3UBSju8voGBBBOue6rmEjlHjvZpmI7ZdFvq6nAFRPCImYjiDVIBSfXUYob?= =?us-ascii?Q?biI6wWnQBd7cnEb6u00ZKVi6hOCyfaGJcT/JuLpmh7A8X14ZWmIw/pTkA6PJ?= =?us-ascii?Q?iMaTGo4y/ufqxr1iPWVHRqsMKzRQIv4+qhoSGazbWZ554TnRwzqiOpqfzu+g?= =?us-ascii?Q?wPiTRAa4bYX//V79wyQdLk5g62E2lO/T3r+cZcJq3ysht+N1pvJXLJvBXBwX?= =?us-ascii?Q?6jzJPO81d6SFaFwxoOCA2kaCl/3trqj5UouSlpINHlHsP1m2sKJO5EBnlDbL?= =?us-ascii?Q?O7Fk0CpOk9VyuLWmzGkOUqu5pIdb2o9BB33qa0iz+GDDt/vCoA9kVGv6C38e?= =?us-ascii?Q?iRve8xGa5uE54LV7OtjQvvQMuUeIi31Nbyk/wZ8dDzRsoHCzW2prA9lKZqH2?= =?us-ascii?Q?cYu1aeni1UwLH+rgCVx+tDbmoVQ8Egyo3WGuDoeP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LfoJKLesI+Z0QZC6bGRsR12Yn28s8PrRoDJLZ2NOvlGp0RfCw?= =?us-ascii?Q?ceuUDw7voCX+yhEwT89pYW/QLNpU8xJXMqnJ0bfMESOKya0zAYWP0KNgJpy+?= =?us-ascii?Q?m4OCG6lZrvF7O3Ir/FuGbUsPsxB1hja99ofdU3VlqAkMNdt5vrtz2uWswKdt?= =?us-ascii?Q?noxgWCrTGneiRcFRtYF2loLrJDhdPQd3jp9uBJyL?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8460.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1eb77c88-8ef0-4e7f-a7a6-08dcf733cb90 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2024 09:35:00.9874 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: NK/3hk2q5uD4M0HKvrsOvJNrYw+jSgz25g3MYxZmZcNiqLLBGaP+6YJPP7eKEgTebaELW/Mwd6xyEzSzbGlv2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6891 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 > -----Original Message----- > From: Bing Zhao > Sent: Friday, September 27, 2024 09:12 > To: Jiawei(Jonny) Wang ; Suanming Mou > ; Xueming Li ; Slava Ovsiienko > > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: RE: [PATCH] net/mlx5: support no host PF configuration >=20 > External email: Use caution opening links or attachments >=20 >=20 > Hi, >=20 > > -----Original Message----- > > From: Jiawei Wang > > Sent: Wednesday, October 11, 2023 2:42 PM > > To: Suanming Mou ; Xueming(Steven) Li > > ; Slava Ovsiienko > > Cc: dev@dpdk.org; Raslan Darawsheh > > Subject: [PATCH] net/mlx5: support no host PF configuration > > > > External email: Use caution opening links or attachments > > > > > > From: Xueming Li > > > > In BlueField, a new firmware configuration option NUM_OF_PF=3D0 disable= s > > PF on the x86 host side, no HPF on the ARM side, and the only RDMA > > port on the ARM side is the bonding device(PF0). A device probe with > > devargs of representor=3Dpf[0-1]vf[...] will probe PF0 and PF1 one by > > one, and it's possible that PF1 device scan results in no switch ports. > > > > This patch supports the new configuration by allowing a PF scan with > > empty switch ports. > > > > Signed-off-by: Xueming Li > > Signed-off-by: Jiawei Wang > > --- > > drivers/net/mlx5/linux/mlx5_os.c | 7 ------- > > 1 file changed, 7 deletions(-) > > > > diff --git a/drivers/net/mlx5/linux/mlx5_os.c > > b/drivers/net/mlx5/linux/mlx5_os.c > > index d5ef695e6d..75f53ade8e 100644 > > --- a/drivers/net/mlx5/linux/mlx5_os.c > > +++ b/drivers/net/mlx5/linux/mlx5_os.c > > @@ -2195,13 +2195,6 @@ mlx5_os_pci_probe_pf(struct > mlx5_common_device > > *cdev, > > list[ns].info.master)) > > ns++; > > } > > - if (!ns) { > > - DRV_LOG(ERR, > > - "Unable to recognize master/representor= s > > on the IB device with multiple ports."); > > - rte_errno =3D ENOENT; > > - ret =3D -rte_errno; > > - goto exit; > > - } > > } else { > > /* > > * The existence of several matching entries (nd > 1) > > means > > -- >=20 > Acked-by: Bing Zhao >=20 > Thanks >=20 Acked-by: Dariusz Sosnowski Best regards, Dariusz Sosnowski