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 043CF45A40; Fri, 27 Sep 2024 09:11:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 86DAD4025D; Fri, 27 Sep 2024 09:11:45 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2053.outbound.protection.outlook.com [40.107.236.53]) by mails.dpdk.org (Postfix) with ESMTP id 7974F4021E for ; Fri, 27 Sep 2024 09:11:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fII1ZyGtRs0JCtDfrsCYCHHmHjSh/suaomvZkav3QsCyrL2bmf4hQVar2T3o2F4sYQkkmxtBtyorQFjJ1mrzhCYOccnsD7DZUCXQ+Hk4QEk1ibjfNZkiwxnpyVSBOpK9Z1lg0JlNRDAYgIiRmsTxuAveTpRRZSj6ec7S6/PFAtNQRye8jwi8O/YXdNw+34OF98gkkA6IcM3kbgkIE+FV6FCrEIFa5e+UM9SyGwf594WDIYc0ZTn9TddmU3pJlTz8gpxdammotwO3k2DOVbF39xbWmfUTNC378I1EsxIWWAotid8PSNmMqBv0MvGybqXz2JsNXxx9GNd99lXpri5Rxg== 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=GHbEj5HcxcXgxjPacaWIWWPbhjENp0aRVxdXJXDPREs=; b=vY+g+z0XSqEJZvBuVl0Mc4fChU3Wx8UOyoLchmNY8WFR5QFCwghdxAVf3eCMBcVwpKDwnRDpS0fhInaE3lKKWWIm0m6N9yZskWDqcnjguYIUel7cSoWodPFv9gemeE2D/6RkCcdSuFK0x6W6Bptgg3UF40S93HmB/adHdCkntLkJgK8bjuliHlghzVmHl5zGP5NI4TrDN/Za/rm89gR7Od9pEXg5lybD1h30UNzK1gN/TMXjrsRlUK8m1KXPyDHJ4yELjBQAk2WnPrzlvRmRLcYXEgg8RwdwGDUEwsYNZxSTp74rmMDduL4/dYQHxui0tvh5vypaD+QM9Fy8YIvWOg== 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=GHbEj5HcxcXgxjPacaWIWWPbhjENp0aRVxdXJXDPREs=; b=Vrb6WPNsVEaFWLhpF4xA3GZoXDBPhc2/1F8CV5/sEgXuKkrBlG0FKrIYX5SqFQOIeExGh9drgSc67Js6HoOua9j+LcxSOzcXKh3dns/jTxbnDkgH09kxMFQEzv8Q6IlSagU92mGZhfkOHKI5BIgzSBd8EhKz4YRjZHoaR5qx8qGRnk2Rq1Gz8w1YvjBGb7mKrpnCR5/UgjCeVG9eQu4yr/+jqKAEpRoKFM/n4Tt+GdZO16Fz9qqzFjbP8y/OL8cJ2n0pch4vChhyxhXWr9Ip1znwJWtQ+Dx7EHj/rkqCGzQ/todF6PMhm/had4OOf+OQ7XMKPHpa5pxjPAAiLOHyNA== Received: from PH7PR12MB6905.namprd12.prod.outlook.com (2603:10b6:510:1b7::18) by SA1PR12MB6848.namprd12.prod.outlook.com (2603:10b6:806:25f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.27; Fri, 27 Sep 2024 07:11:41 +0000 Received: from PH7PR12MB6905.namprd12.prod.outlook.com ([fe80::33b4:19c2:2281:b662]) by PH7PR12MB6905.namprd12.prod.outlook.com ([fe80::33b4:19c2:2281:b662%7]) with mapi id 15.20.7982.022; Fri, 27 Sep 2024 07:11:41 +0000 From: Bing Zhao 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 Thread-Topic: [PATCH] net/mlx5: support no host PF configuration Thread-Index: AQHZ/A4eGikWLDUWPU6rgrH/CjhvB7JtYG4A Date: Fri, 27 Sep 2024 07:11:41 +0000 Message-ID: References: <20231011064153.46486-1-jiaweiw@nvidia.com> In-Reply-To: <20231011064153.46486-1-jiaweiw@nvidia.com> Accept-Language: en-US, zh-CN 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: PH7PR12MB6905:EE_|SA1PR12MB6848:EE_ x-ms-office365-filtering-correlation-id: fe714113-b392-4b9a-18ab-08dcdec3a2f9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?6CMiXONTdHyMQnlzWSn0/hObsEbfBVhjKWelSSKaLH/uQuUcaD53dSClLAXs?= =?us-ascii?Q?3/fz2MV611rIdiQarzDruv7HdJX5sp1I+dsMlqMJXEPc5NWX0T6Z/+L+rZWh?= =?us-ascii?Q?joSSTjL/iaOxEY+uRwbaGDbIlRy8qLAX4VAJVwUbUXL8thFN6hs6lWk4KI6E?= =?us-ascii?Q?PJUpZKjWgUWzS+0OqpD8qF8CWCb9OTO77TYf/BTiaFm3EXQjGJp1LEzcabbr?= =?us-ascii?Q?B3Lxaa7rawnF/MqHYlryGulytCTyQQb9knTp56t/Nv+esrbz4Vk3kUvwARLT?= =?us-ascii?Q?4eyzZ/R9i/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?= =?us-ascii?Q?EnmF3n9zMfGDbp9Ders+pGl0rwYSflHOxnHqNXJiO/VGiO8Ie+gCsV03G0Ip?= =?us-ascii?Q?tP3SElqHxl8xTyndQ2K+gHbCzZ6AmuPplFVwcDHTU/q2S3MdodfzzaHfQUbd?= =?us-ascii?Q?cFBH4WM3CQAsqw0aj4OnQrxtyX5dgZTNTEEawyVQ7AlAAg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR12MB6905.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ihx8wqjhj3/MWNL0fGs0IfCKCQy7RbBN0JTRPc0q1tHOTXmRX1BnMXo+ZHNG?= =?us-ascii?Q?sUPCNFOXK25QTvMWjKYDiJjRySD0sDn0ZTK8eAlv0KcMsuGQlpkshXyJe9EI?= =?us-ascii?Q?zR41W11OHgL3DJgjTLik6amEBBc8M7KZikpKSDYIFRumNgJ9qc8p/0KuPe2y?= =?us-ascii?Q?WMt3kIsabxQYLhr7Bg2y4KIgT+xMnPV90DKSIxgDoTsEPffd7+ekozHwdww1?= =?us-ascii?Q?bo3a0vHuq0qoaSxOAgbicoiDUZVd2C7i8lBW89LbG6pydEtnqmR/2/To/36o?= =?us-ascii?Q?RarpK4J2pDvLv40+5KGLnZd6fbER6jX3v2K6JUrKvQSXvDM+Q98rxnpzDdA1?= =?us-ascii?Q?tM6ZREgNAXUKKb4P0bKqLyeoumPF7+gXW4IsKso1B7Q4yYOu0KSqr+nf4hyT?= =?us-ascii?Q?0KS/i9hweKvJ9FCUmdmyU0qqg0ri1dPfiElpQkEP4k4mxRhwaotIPGxhLEGQ?= =?us-ascii?Q?xuYR/Fk9JYCgCgD+kQ4JXxLCawD8qn4CcVAxsNEjn25h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FllVWboUPLpY71z5LkscJFEAo0grsecOZln9BeC90XUWoJ?= =?us-ascii?Q?KG8mELXfDgsYo30pcxSHCWajH75xIFRoR3PTjfhM/e0M6byyGVAaEtgLA0Yc?= =?us-ascii?Q?YrwcxrvrcTHXjQFKA+368ArpOP/wFWGrluD7eQHlp21jAJQGj/4U38ibFC8z?= =?us-ascii?Q?22CNU0bR0KzoiFYApEQ=3D?= 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: PH7PR12MB6905.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe714113-b392-4b9a-18ab-08dcdec3a2f9 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2024 07:11:41.3845 (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: pSqWoY7/J2oaIh4xQznHMrcX1Hnl/QPpXaOANyPm3UqXAm+WQDo/uV2DBjFEQTgEeyhNp7EGfG6T4wlzVdrBhA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6848 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 Hi, > -----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 >=20 > External email: Use caution opening links or attachments >=20 >=20 > From: Xueming Li >=20 > In BlueField, a new firmware configuration option NUM_OF_PF=3D0 disables = 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. >=20 > This patch supports the new configuration by allowing a PF scan with empt= y > switch ports. >=20 > Signed-off-by: Xueming Li > Signed-off-by: Jiawei Wang > --- > drivers/net/mlx5/linux/mlx5_os.c | 7 ------- > 1 file changed, 7 deletions(-) >=20 > 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/representors > 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 > -- Acked-by: Bing Zhao Thanks > 2.18.1