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 F21F1459FF; Sun, 22 Sep 2024 18:26:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8244640274; Sun, 22 Sep 2024 18:26:40 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2062.outbound.protection.outlook.com [40.107.100.62]) by mails.dpdk.org (Postfix) with ESMTP id DAEE34025F for ; Sun, 22 Sep 2024 18:26:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VTCP2u6+xGRbTCSpi8y/qG5eIDoGEaAUgFIxv3kY7O9HsyYE7bR85V/Ujmi3uQ7apJkvezs/0ivEu8KNgx/Znh/rI3jsrlRoZUqaFb4RGq6e+nuninrYHHOVaSMFrUZFbsWUcxA83tD1eyZZPLn1CGwlzjJnBztybjRMCVee4kutBA4B+LiVitL3A7J+9AEvphJrquogOmWzCtYpjWS+uAQ88t9oZ0rJlFUOQy5/2Tz2b6gXnofUN9Om8rAS0pyEAW2tGHU3tIDcyFCNWimHu31qOhzRCJB3+nU1i0vS5jdZnBP3k9UpMv4UPHjkiwlvpAmVIFfHo6E+eg9ZciREew== 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=7qUGTxg7FXRdakVPZoLHItfD5gEgOKZ8aVx/UrRqN7c=; b=SpCanQtzK7v9hqhzxqoOKC8/hNNNIEwILUICU3mAbsegxwCn9Kzysk02Q4M8OYqgDm5fjWHbzlkGH6m41a9czvbKF5eZKRXpSfhL4SL3SBN5lXbSKgb79YvJLrAmLP9ayb60NY7/QwLqa/pSVevhcxA/Cw+9JBxQKgi1gmHmzYNG6ak3hhUkWZrlYdVmsI2hEmMBxCmABzJezQkHZZfPP2QBo7fyIF6l8+d1N448mnmx6M0CcpngVuc00a+YVb0rdW42qq/KcsezZm9mcJXYz2h0dlk6ArOM6I26Mv961JX3SeZO8WA5256JOTnJ4xXr2dgY+0Y6zqbuA+EUMaFkjA== 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=7qUGTxg7FXRdakVPZoLHItfD5gEgOKZ8aVx/UrRqN7c=; b=kv9jOoJW+l+9INPhaEVOz+2Sb+XfBB6WU+I8RUVwvAe16XHcOfbbcDPHuyxa0xjIuzp87MJwzj0bUGtKiILtQTNxTbIj+tbSsnZ4d7i8fUNMOHvCwIyyarTgZ8RMF++ejERwFpNwLvVR7arW666UGkz0fAEBuBKENWJnmoSjJ5k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) by BY5PR12MB4162.namprd12.prod.outlook.com (2603:10b6:a03:201::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Sun, 22 Sep 2024 16:26:36 +0000 Received: from SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055]) by SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055%4]) with mapi id 15.20.7982.022; Sun, 22 Sep 2024 16:26:36 +0000 Message-ID: Date: Sun, 22 Sep 2024 17:26:30 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] ethdev: add traffic manager query function To: Bruce Richardson , dev@dpdk.org Cc: Thomas Monjalon , Andrew Rybchenko , Cristian Dumitrescu References: <20240806152417.3649745-1-bruce.richardson@intel.com> <20240806152417.3649745-5-bruce.richardson@intel.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 AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJkdyEEBQkE3meNAAoJEFR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VM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240806152417.3649745-5-bruce.richardson@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0324.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a4::24) To SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR12MB8830:EE_|BY5PR12MB4162:EE_ X-MS-Office365-Filtering-Correlation-Id: ddff5cff-3c42-4c52-e16f-08dcdb2353e9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?aS9sNTJyL3pBVURMbkw3d2Q0UG9WTUJhbVBDbXBVMGE5S0k5RHJMR3dQUXJt?= =?utf-8?B?Y01jUldwSVJkUnV0d2puSmdFczZnMDlnZDdNbEJVOStjMis2NEY4ai9nZUJ0?= =?utf-8?B?STJyb1FGKzJMdWlZdmNyclkzN0puTEx5TkpsNHY1dlJvNnA3VnFzaE00eDRH?= =?utf-8?B?bWZXV0ZPVXlGUGFweHNtN3VYR3dKTForVXczV2I3NlN3T1c2eHluOGdYV3Ry?= =?utf-8?B?QUxnaUs1YTNLUFdtSS9KUDlucW9mTklXSXdSakdBci9JQTdLZEF4R25wdXpq?= =?utf-8?B?Lzc5YlpJWXdodUhxOE1iV2NKTUwrQVEzQ0ZjZEJpeXpyUXUxU21HT250dGti?= =?utf-8?B?NEsxL1l2RmFibzNQb0NCOFVWVkhxcE15UUxwZUdUR1VxWFNzZEMwTktsamFZ?= =?utf-8?B?WVM5N3Y4azVHOHI0V2h0VVJ6dEVDcXhMV1RSZXVKVDhJNnY0VDRRbGRNRGlD?= =?utf-8?B?QjVpZzlhd2kyY0xjODc3akJZeUIvV1JLdkpKZW5wM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UrYkNpZmYzc0dIdWRubTZ5WTRXLy9NbWpJcWpTUS9Dc1ZsMEFQ?= =?utf-8?B?bFY2eE9PSGZuNzhwVXo1Um1KS3N3VE54TGZNS1p0alp0cEYzTCszdnlBNHk4?= =?utf-8?B?bnVnMForcmMrZCttSGdwNUZXT251MjJ4TFRkU04vd0pRY29GL2tPVHp2MS9i?= =?utf-8?B?NmhWM21WOXZOSEZsaFFPL3AvSGZLYzJ5MC9OOC9DQzlJd2xHdUViczZuUWMz?= =?utf-8?B?akVBNTNyNENrbXdIM0xGalM0NU5LdVpnYml3N3VpYW1JdkVPMEZZTHUvZS9h?= =?utf-8?B?cUVMeGhkZWtmbHArcVFXYXZSUFFtbE5BREtISjdTdkNwZ3BwWVVoTG5zNWpp?= =?utf-8?B?Y2JUNnA4VWFGZ0VvTDFndnA2U2xHSDNTZjcxM1NJMWRKdnRqM0FjbDM4bjlR?= =?utf-8?B?b0IrcEtzQjM4UStFWmUyUT09?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ2PR12MB8830.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eXltMHhLUjRSbmhtWXlTTGZodGZoWTRmeDk3MURQbUxnek9lenh3UjB0T2ZQ?= =?utf-8?B?VnE2bXBkTnVjeEwya20yUy94Wm9ST3NUVkF4QVp0bWswdXlaZktHR1plY3Zm?= =?utf-8?B?cEtBK2phamRpTWJrdXVFY01QVXlMb0QweWxIV3RwZ0U0VW5yQkw1NzhPbno4?= =?utf-8?B?dHBkbUxGb1FqbXQxbHA1R2pBeXNYWVJ6U2s1ZkxNTUlpOHlMeUhJR3U0dUQ1?= =?utf-8?B?T3gyaTZIY3hRRG9IeklwTWc0SHFYY1pXYUFuZjJF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lORGVlNWR1b2dpL284S0FUeW0xOEZNYURjcTZHT3Eyem15RjBs?= =?utf-8?Q?2e/VPTcGDu8qil7i8e+Av30kc?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ddff5cff-3c42-4c52-e16f-08dcdb2353e9 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR12MB8830.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2024 16:26:35.9977 (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: aviFr3o9u09gd5io/Qa85D2kLnijZ/ncRMv5r120WkDdIGS/WPho/EfPYPdj+FRV X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4162 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/6/2024 4:24 PM, Bruce Richardson wrote: > +/** > + * Return information about a traffic management node > + * > + * Return information about a hierarchy node, using the same format of parameters > + * as was passed to the rte_rm_node_add() function. > + * Each of the "out" parameters pointers (except error) may be passed as NULL if the > + * information is not needed by the caller. For example, to one may check if a node id > + * is in use by: > + * > + * struct rte_tm_error error; > + * int ret = rte_tm_node_query(port, node_id, NULL, NULL, NULL, NULL, NULL, &error); > + * if (ret == ENOENT) ... > + * > + * @param[in] port_id > + * The port identifier of the Ethernet device. > + * @param[in] node_id > + * Node ID. Should be a valid node id. > + * @param[out] parent_node_id > + * Parent node ID. > + * @param[out] priority > + * Node priority. The highest node priority is zero. Used by the SP algorithm > + * running on the parent of the current node for scheduling this child node. > + * @param[out] weight > + * Node weight. The node weight is relative to the weight sum of all siblings > + * that have the same priority. The lowest weight is one. Used by the WFQ > + * algorithm running on the parent of the current node for scheduling this > + * child node. > + * @param[out] level_id > + * The node level in the scheduler hierarchy. > + * @param[out] params > + * Node parameters, as would be used when creating the node. > + * @param[out] error > + * Error details. Filled in only on error, when not NULL. > + * @return > + * 0 on success, non-zero error code otherwise. > + * -EINVAL - port or node id value is invalid > + * -ENOENT - no node exists with the provided id > + */ > +int > +rte_tm_node_query(uint16_t port_id, > + uint32_t node_id, > + uint32_t *parent_node_id, > + uint32_t *priority, > + uint32_t *weight, > + uint32_t *level_id, > + struct rte_tm_node_params *params, > + struct rte_tm_error *error); > + > No objection to get an TM node query API overall, but it would be good to get more comment on the what correct API should be, we are missing it. Both because it is not discussed much, and it is first release, better to add this API as experimental. Also we should have an implementation in driver and a sample application usage (testpmd?) with new API. Are these planned separately for this release, or can it be available part of next version of this patch? Finally, does it worth documenting this in release notes, as just a query API I am not sure if this a notable feature, but just a reminder.