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 5EE5545CF7; Wed, 13 Nov 2024 14:37:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4EFA940673; Wed, 13 Nov 2024 14:37:14 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2048.outbound.protection.outlook.com [40.107.236.48]) by mails.dpdk.org (Postfix) with ESMTP id 2BB214021E; Wed, 13 Nov 2024 14:37:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IwqfoKfUi7Z3bxQbikANoiNVSrNmV+Iuy5ixRwzTy+fHh70W3gELceZy86qfJAHO8rVQ9eMHmnjkN/euaVAIQJBuQiiA9s1pIJtiAFMfQvibtywxg1k1aNMtcRIVQsU4k6ilf6V7wWmu+242mcPyYVC3FEILsZRs0oGU/skppC4b03s/gIlD6ZHDgcZP4J2ZTdCTb28KLuJsXv05ctdOAI1yWvBQOL5QuYNbTHAvy6V8JPFiWEpqHWklWx6/zC14gG1K1rQE9ZPIKlKKjBMqA4WNk1fDtvusTlHs2QHnig2f1Al6MYLtkRzxhH7Ml8YjTlV4DyCDtHTjZdp13vZqHA== 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=EqKNTQ3524bNZav3M/jMWoMshyIojuPBmgw4zmTuozY=; b=k+NeafbFmQtUOyl7gtXNJ8IA9vGNmFzG3NpxNHqH+X+ACD6DlVGY8jpaqmF+2Ux6Ag6Gv6XpY+kqGTLJ+9BbQGVCXbRtrvTEnxAxMeBCwzjLjD/jN506Tv1Hp5kDqEWYrP9LIeHjeMCHhLOJG59EWkMRZaqplqErlj68Z7vXIyWt9UgjS/OGf6GRnERVnRqe52Q3Uu+hv8BohDshb84i7/lJPtHm+k1h5sj66TmCDBwhRH2fEkfovVpv9wCxmS/55gzC4r93OIWuMwobsDKrBefBStb7bLJeg9pE1FPla/XJDCIBvpTAXgIfDzaHjFwniUhm9fTXoLUFVEnwoZmgnw== 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=EqKNTQ3524bNZav3M/jMWoMshyIojuPBmgw4zmTuozY=; b=i9Dth1bU2KfvZpQYPs3D+UHsjZa+sVj/CIaS0pckj3oCaKHBYvPqIOAIAHeahMtpDZWgL7XG5oqVzeWu9KvFK/Qh/+eMJJtk09izO6ToIN4wWeG/1iP0yTT73KJj1C9Fhrt7eJCMOAFz0eh7G+TqKz8bBrW5zTMCDqFKUBy804ghufZjISEMGRr0rJ11KpHd78pA4Brhk35YbNFN1vCydjEnQjPpTkwo+q4xSbwUBkN1h4/2IzRPD4mEQWS8K2PrxakSmKbgwz52kS6nKLOcCuzSc4axxvDjvKUQj5NCodMeqdl0P+FUU6+IoCx9XnJUntIKh6rSj9oc1zrCOIyb9w== Received: from DM4PR12MB8452.namprd12.prod.outlook.com (2603:10b6:8:184::18) by PH8PR12MB7376.namprd12.prod.outlook.com (2603:10b6:510:214::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.16; Wed, 13 Nov 2024 13:37:09 +0000 Received: from DM4PR12MB8452.namprd12.prod.outlook.com ([fe80::b341:6309:cb1f:5b6a]) by DM4PR12MB8452.namprd12.prod.outlook.com ([fe80::b341:6309:cb1f:5b6a%4]) with mapi id 15.20.8137.027; Wed, 13 Nov 2024 13:37:09 +0000 From: Raslan Darawsheh To: Itamar Gozlan , Erez Shitrit , Bing Zhao , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Suanming Mou , Dariusz Sosnowski , Slava Ovsiienko , Ori Kam , Matan Azrad , Alex Vesker CC: "dev@dpdk.org" , "stable@dpdk.org" Subject: Re: [PATCH] net/mlx5/hws: fix allocation of STCs Thread-Topic: [PATCH] net/mlx5/hws: fix allocation of STCs Thread-Index: AQHbKgXq5UyF8M6PGUmCi458XA7bHbK1ThVO Date: Wed, 13 Nov 2024 13:37:09 +0000 Message-ID: References: <20241029132403.232302-1-igozlan@nvidia.com> In-Reply-To: <20241029132403.232302-1-igozlan@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: 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: DM4PR12MB8452:EE_|PH8PR12MB7376:EE_ x-ms-office365-filtering-correlation-id: 3bf60b4e-1c54-4c9a-2d1f-08dd03e845f4 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; ARA:13230040|1800799024|376014|366016|921020|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?Q?DtcgxzOIjOj94HP+9vx6Y3wR+8GUlRpWx320CV4eHxWHC5kbI/IlD8SbD3?= =?iso-8859-1?Q?WFoq4IdOrsBsF8l1qfXnghO8BCm6/d0QnfvbdbEFCp9NucvnY3Jv4iozJf?= =?iso-8859-1?Q?Gtxf8S7afrgwZYUyNur0vfXiCSEpn1OuBsnhJ/JNuN7vc+PhfSmKJ2Wyy1?= =?iso-8859-1?Q?MBP4YHrMyag20txI0sWNQRysfreg0p+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Q?wsfObUPEXiIkCUFZwXSh72JGO5TImR5gT9rCjlVNaZZNrTAMX3oNgf0gGf?= =?iso-8859-1?Q?qHWRrGR8QV2uHEg6LKUIf5oD2WmwoC7/1qNSxKZLBV9kuhawMjk+K7h+em?= =?iso-8859-1?Q?hePpvpl+zzDnrM31iIRtr25GKqI7mVrXHsG5oUO4I6CakWDsPoDy9RbrGs?= =?iso-8859-1?Q?7vqpRgcepJyfiFVCzDN5oSY4G64Jlerf40b+eEdNewAhK5KckK6Pm/Xuw5?= =?iso-8859-1?Q?REmOEaCXFgizHTmXHIr6ZT46CcIsixI+YjoNDpvys6taecgP5l3f99cMPO?= =?iso-8859-1?Q?3zoWEHAYDhypB407bE/JMDMda8KBYxWKsxfNWaEVKKjAcWipROn0jaxWrZ?= =?iso-8859-1?Q?z7KIbCyZYdUbXAx8?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB8452.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(921020)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Kv9GLf58U4xH0LB9C9L5zARws0DJL2fJQe1Y2sMkggPhKovLYtZYpb1iYE?= =?iso-8859-1?Q?ZYqLGtssiaPZi75i0O+c28RZHenMSbksBMc2dZnTYpIP1zVbLbkWY4euW0?= =?iso-8859-1?Q?lmoGZYiKpFA+V86hTiAeqcmzK49Fwprs1rUymCIO13vw2ah+H8a/TfZ4tJ?= =?iso-8859-1?Q?+6lQunwxkibFKC0bYlTfAk3p5wd/8Wtbre8QZZoKFc7DlwryUBpXGzsqvA?= =?iso-8859-1?Q?N1HbGrL3kuWjJ8+XLBsoySTl1pkymJGH1K2o1UT8UOw71QHGsCTeXxN+0l?= =?iso-8859-1?Q?WmWUX93yp9x8sEO2B0163iMmrfJ2K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TI/iAGEGydfm27uLETTak9I3pvAzDjPj/89iSN1HMmWiX6HVxiD0L?= =?iso-8859-1?Q?7bt0mfc8vhkN/Xd5H+0F7yfn+EDAPGSdFwzF1YCWOykKXFF1phv9yGg+mV?= =?iso-8859-1?Q?Zbg2okq0CLBwNT8E08NEOl2gS/m0SfvYllaHi5SwmuOnONeZKgL/zlzneY?= =?iso-8859-1?Q?kYCfIj+yWQBVyRYncEdTsq6dMO3jM+eQF2rxQKQh1+uy95TmGUdI+HldJO?= =?iso-8859-1?Q?Lcqwz1s3e7XqU3XeMKrZzvHh7Aty4WCe2nE0Ax4Ht54cJx8t2YVAITg+3B?= =?iso-8859-1?Q?iqGRoQ5OOrszIWNjIHx7sKTvoy7E0il5Gp7QFd71CUIKkQlRDFG2BLknc7?= =?iso-8859-1?Q?iGlyQ2N/xpJzdveObO8/b+RwvYOm4Qp4LPX/RzwoCCn/ykuBNWPJssXrda?= =?iso-8859-1?Q?42xbYeNiQiiPw=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB8452.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3bf60b4e-1c54-4c9a-2d1f-08dd03e845f4 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2024 13:37:09.7314 (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: 2d/Fzqdoj3QyLMpavWfSK+pIJ0V+gLnHyC567qN4OUmOHMRYbtEcaKXvTfZjQ9zTwH+a16/SQfd5rLi6nKR+kQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7376 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,=0A= =0A= From: Itamar Gozlan =0A= Sent: Tuesday, October 29, 2024 3:24 PM=0A= To: Itamar Gozlan; Erez Shitrit; Bing Zhao; NBU-Contact-Thomas Monjalon (EX= TERNAL); Suanming Mou; Dariusz Sosnowski; Slava Ovsiienko; Ori Kam; Matan A= zrad; Alex Vesker=0A= Cc: dev@dpdk.org; stable@dpdk.org=0A= Subject: [PATCH] net/mlx5/hws: fix allocation of STCs=0A= =0A= From: Erez Shitrit =0A= =0A= STC is a limited resource of the HW, and might get consumed till no more=0A= contexts can be opened.=0A= So, let the user to define the size of how many STCs to allocate per=0A= context.=0A= In case the user has many representors, no need to allocate per each of=0A= them the default value of STCs, otherwise after a certain numbers of=0A= representors no more STC's will remain in the system.=0A= =0A= Fixes: b0290e56dd08 ("net/mlx5/hws: add context object")=0A= Cc: stable@dpdk.org=0A= =0A= Signed-off-by: Erez Shitrit =0A= Signed-off-by: Bing Zhao =0A= Acked-by: Dariusz Sosnowski =0A= =0A= =0A= Patch applied to next-net-mlx,=0A= =0A= Kindest regards,=0A= Raslan Darawsheh=0A=