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 1992B4575E; Wed, 7 Aug 2024 17:40:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 033954111B; Wed, 7 Aug 2024 17:40:46 +0200 (CEST) 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 0CD8C4111B for ; Wed, 7 Aug 2024 17:40:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=os8jIA3b5tIzp7YpIwE7yLB2IpfztqpsNnc2K9aC7B0JcRd6VPaFo7YDH1Phd/TNmFtAw36/Dy9UJ8m+PaZKBoDV0kRKEPfHBRwHqhM56ijZkAZL8S2yumtx2eBSw7UpnVGWO7dL3AJJMYlo/NIIvntrjshvZbFO+MvKnxc3WmgoYF472PcAho3VhaToVe2LMqRfYyu839OEMn67O9AfxSPIH2+bed/o0z3/L2/1GyJGSx3cMQl/sBbp+E781RBKxJxEnvasHWoP2zsUL2AthjmXFcB70NIDLVvinkfS2fY5+2l1eobhhAOHiPBBVPb0qLYJj8jPKclqW7lY/rj5LA== 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=k+vJj9edf5czmQrwU2jke9yOXNzWuFpr6maF1FCnXDA=; b=tMbCEs6Lp8dLESZ6vkRVqNWoRMd+rlH/A0/ANGSExnHC9PEbwfB3XJun+dA1PvB0ggDiCg+kL00oHTBQlwRS05FEGamSRhwaNqZiGQKsT+xw1pJB5SVoXodp2FfTgQae9hyN/1xEdXMuZcMtyS/3WGvwmgIffgWp1Im+lzI6LdeAMA8Vdq4hVwfJ21opLZ66+NagfVDMDQbzjiUhtFfDZB1hHdoZF8Fvokvdd5AM4851XSVoSgPZfI754pyB2CJKcKvJVQAjTZGhdOr63TKCsyVfHLm52Rfxw7lt7lGCa8+YtkbRNOFiAiAxMu1DNrAtYtiw7HmbxOJoAVWEBt98fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k+vJj9edf5czmQrwU2jke9yOXNzWuFpr6maF1FCnXDA=; b=Refuc2eju+4RbB1o12PVwObXRP8UIgQEASstbT2lJ6ecj6Ia0r9qUKOg5lMRdY0yD6bYuX0ixcF2lDvwcE6rs/ihRPnR2u5y7JIapw7dlRUShVc8zmhRh8uEu3qOyN4ExzpTe+tNz2iu0JPHIuJ0vYI+ydKevaX0wupcHf9iiM8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by MW6PR12MB8661.namprd12.prod.outlook.com (2603:10b6:303:23f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.24; Wed, 7 Aug 2024 15:40:41 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::ebfb:2f9f:f9ca:82cd]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::ebfb:2f9f:f9ca:82cd%4]) with mapi id 15.20.7849.008; Wed, 7 Aug 2024 15:40:40 +0000 Message-ID: <57b00e5c-5931-4c79-bce0-f3dcf4c4bbb2@amd.com> Date: Wed, 7 Aug 2024 16:40:35 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 13/17] net/dpaa: add Tx rate limiting DPAA PMD API To: Hemant Agrawal , dev@dpdk.org Cc: Vinod Pullabhatla , Rohit Raj , "Dumitrescu, Cristian" , Ori Kam References: <20240801105313.630280-1-hemant.agrawal@nxp.com> <20240801105313.630280-14-hemant.agrawal@nxp.com> Content-Language: en-US From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIX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M/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240801105313.630280-14-hemant.agrawal@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DU2PR04CA0332.eurprd04.prod.outlook.com (2603:10a6:10:2b4::20) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|MW6PR12MB8661:EE_ X-MS-Office365-Filtering-Correlation-Id: fcd8079f-66a3-4361-0fdb-08dcb6f74a64 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?aXpJRnZLKy9ad25MVGRDa3hKU3FWYzQ3dFZzcWtOcUszVkVqV2NEcFFmVGIw?= =?utf-8?B?MHVlL2x3R3dRWnJ0ZFVMRWFVTitnc2tPamFvVFJLKzdLWC81dWNHTGdRMm9l?= =?utf-8?B?YlBYa2hLUlI5WDBuWEJlMURrajZmU1N6ODdrZzk2L1piaG5VY2NIM0xEL3pk?= =?utf-8?B?OWMzL0tLcjNxakZyR1NuUEVzVCtuNUliNUdxNjFReS9DMGs2QlBpOVJXWVRW?= =?utf-8?B?NTRpNVROTkhJcHFReFNpdndKdGJmaFpaNjJ0S2pHdllEaWtDQk9NVmhQekJr?= =?utf-8?B?WkZEVWk1d1QvdG05L2kvWGdYSnZyeVlmL3ZGUjFmK0dHamsxUXN4RGpGOWM3?= =?utf-8?B?SzgyZkVDYTByb0RVcXBiamNjdlJDK2NPN0svQ0w2SjNwbFNoNHRvd0FUYzVN?= =?utf-8?B?cXlnVTdMS3JndTFoNTI2enhRczVDM1Z3dFRoZVplZmIyMUk3QmdnTUtMUS80?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mZrN1EyYm8wbDdkREJ5QVEvZEtY?= =?utf-8?B?aENPeHQ5S1NvV1gvOEtrVjFjVGZydDBLTGZFaTR4QTlvQTFsc0hyYmpnMUY1?= =?utf-8?B?OFdoOEdpV3hIWHZYUjFxTUF2d0NrYnJRWkM0Y3RrNDJ2dFhJU3NFSnYwWHJW?= =?utf-8?B?eWt3T3I3WHdHNGVKTm9ySml3NXkzbzNlWlhGUk5QdmdSaGdyaGIvU2tpMEtW?= =?utf-8?B?aVdqWHYzS0VjZDVhakpLQXJaTmhnZnN4TElUR0RjWS9zTW5nUmw1STFYMHI4?= =?utf-8?B?bjlZTWttd0JXRjVyaEF0ejVwQ2t3d0Q2ZEw1cXdqbWRVc0gzSWUzZFVrV1F1?= =?utf-8?B?NlNDdkVmd3pPMHN3TmpVWlRhMWlpMm5ma3NUbDlHbFBIcHZCRjRyc1B5QUNu?= =?utf-8?B?MEdaTmtGZzNYd3VwRk5rZDJUMU5naDdqdGdoc21hZXkzcXQ1MVVDOTRnMFYy?= =?utf-8?B?QmN2TDMrRFViTExuSW5zdz09?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RGQ2U2RmMWRPV0Fwcy9vVDR1dkNqNi9wd0s2SzZuL2xab0VNaEtlbUJCL1Fo?= =?utf-8?B?K0k3d09KaVowV0UxUlBsUlBzYTdiUkVBeGhSV0JPSW81WFUzbzBkZlVaNjI1?= =?utf-8?B?aVd5L09LcFdNMGFOd3FESHZKQ3V6bDJNZmw1WHAwb1BrbmtPbVBhd0haZm53?= =?utf-8?B?amdIQkgvSG0wSGorNmp0bHNOajNwWEdPZHJNN29MZmFjUm05cnBXQ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Vl5TTlHMFNBR0x1YTRNRVIxejlWZDkxUVJRQWJR?= =?utf-8?B?N1ViUmdSd001akp4TDJaV0hVNEVSNUlWVDZzRTJTbmdiZjhkQTkxT2k2SGJR?= =?utf-8?Q?zYC3coeUMK7R4Jz/xy+x3RWpI?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcd8079f-66a3-4361-0fdb-08dcb6f74a64 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2024 15:40:40.2933 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hC4bqi3gfTJnvB+zLwgqJVBOZCQfi8lZOwgYmHxnRLsQZxccTLaoW9v90+rfTT3f X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8661 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 On 8/1/2024 11:53 AM, Hemant Agrawal wrote: > From: Vinod Pullabhatla > > Add support to set Tx rate on DPAA platform through PMD APIs > > Signed-off-by: Vinod Pullabhatla > Signed-off-by: Rohit Raj <...> > diff --git a/drivers/net/dpaa/rte_pmd_dpaa.h b/drivers/net/dpaa/rte_pmd_dpaa.h > index ec45633ba2..b48adff570 100644 > --- a/drivers/net/dpaa/rte_pmd_dpaa.h > +++ b/drivers/net/dpaa/rte_pmd_dpaa.h > @@ -1,5 +1,5 @@ > /* SPDX-License-Identifier: BSD-3-Clause > - * Copyright 2018 NXP > + * Copyright 2018,2022 NXP > */ > > #ifndef _PMD_DPAA_H_ > @@ -31,4 +31,27 @@ > int > rte_pmd_dpaa_set_tx_loopback(uint16_t port, uint8_t on); > > +/** > + * Set TX rate limit > + * > + * @param port_id > + * The port identifier of the Ethernet device. > + * @param burst > + * Max burst size(KBytes) of the Ethernet device. > + * 0 - Disable TX rate limit. > + * @param rate > + * Max rate(Kb/sec) of the Ethernet device. > + * 0 - Disable TX rate limit. > + * @return > + * 0 - if successful. > + * <0 - if failed, with proper error code. > + * > + * @warning > + * @b EXPERIMENTAL: this API may change, or be removed, without prior notice > + */ > +__rte_experimental > +int > +rte_pmd_dpaa_port_set_rate_limit(uint16_t port_id, uint16_t burst, > + uint32_t rate); > + > We are trying to avoid from PMD specific APIs as much as possible. Can't this be implemented via TM / metering? Or flow API?