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 ACECD424D4; Wed, 12 Jun 2024 01:39:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4D5C40DD8; Wed, 12 Jun 2024 01:39:25 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2076.outbound.protection.outlook.com [40.107.223.76]) by mails.dpdk.org (Postfix) with ESMTP id 762F240DCB for ; Wed, 12 Jun 2024 01:39:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S0VIWpzZfEZ1BtBBpDXvEkSQTjuthklHy6xvKM18ZCt3TDIDT5TepAKpqoVTUcG3VARhYPFI7zOfjtKkZp4dVNA49jsJrjs88p2i9SVu4UbrNAoWfeiDpLncOS4u7qL4BRAdrSf9I3ja9sRpHvt/f57GOEGO8vnwr0vjWaKMai7hZ4uT/wJcuw8utTFXuDwF8hHhiUWkL+Rx+I1/Tmw0iYjLjjlE4arq0QK6l2PnvxLovmMSg+uWMIpk5QMBlJwsHT4ev920Q9TzX/4oqOIZxQ5CLnxLf3WsLPDZP8mRDJmxw/Q3UwyAz7HxqIUT4fNgqCh4PA1yRBYRd2aEIO0CyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=msAiKCn6tdGvx+9tZvBGjowIn62RuOtgqoYUyDm0toI=; b=nveRA+Rodk0S+oW1Cd2GcObzEDzGIoclr9rNpM6G/ce0FRuLYsB+RkGr8A/zLsZMrrMmg1SW7xv2jQ0lWGhKHgMe8BvNKjTdalUuGY+n2WSD23R/CKkrNEJJoy0yCzr5lCJMQgVT340vLZvIRyAnSgCt5LEDkXsD1hu1S3vQLQxsnKpaxTojK0Tm5c6VelpkeCejJdGQrHfXBSRv/4hKU4KufDsfsyn2PdWSGEtvMUZjwqfCGDsGyWYVDhSflLPfZoFlTSqijMWDioui+JXr+1GIZiDQN7AQjkCgI85vNsZpU0TGeqojALYgYcUIK9JUqf9HOEuBV/pSNZia0D4pGw== 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=msAiKCn6tdGvx+9tZvBGjowIn62RuOtgqoYUyDm0toI=; b=wVX4sko9qTGwP6j46tZQ2PdecA5asuCYtkFhjPqOIHzXnoY+NOTEeZaO9J3uCJzm/zITZ/mGuSBNNjN1NFtl6tyYMgPKEscZbpKXQnnHSYzp2i2U6W+mC/RFZdh/hCce65Lvx7CSyHhPxmWJbh3Dv3UPevibI/djIA+7q8ylKBk= 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 MN2PR12MB4240.namprd12.prod.outlook.com (2603:10b6:208:1d3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Tue, 11 Jun 2024 23:39:20 +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.7633.036; Tue, 11 Jun 2024 23:39:20 +0000 Message-ID: Date: Wed, 12 Jun 2024 00:39:19 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/4] lib/ethdev: add support for displaying lanes capability To: Damodharam Ammepalli , dev@dpdk.org References: <20240602024504.179506-1-damodharam.ammepalli@broadcom.com> <20240602024504.179506-4-damodharam.ammepalli@broadcom.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/6BQJkdyEEBQkE3meNAAoJEFRTPtCK Km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dK+DLHqNxKuyO 8Zk= Cc: Dengdui Huang In-Reply-To: <20240602024504.179506-4-damodharam.ammepalli@broadcom.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P123CA0054.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1::18) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|MN2PR12MB4240:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c9909b8-7e6b-4c62-a0e3-08dc8a6fb78e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230032|376006|366008|1800799016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RDI2NFp5eFJnZ2FiZDBueXBMK0F4ZDc5REgrUkFLR3pWbVpkYy9lbm9rVUdv?= =?utf-8?B?TDFRdG4wMktDbTNwTGZaUFlJVlplS2JsdWQxWmd6UEpRMWpJakxpT1ZGM2pF?= =?utf-8?B?cjJmanhSSDVlNE1Qd3NwZFpnU0s3TUYrYjUzUWluZ1ltNzV5L2VDSm9oaE03?= =?utf-8?B?eDYxOHUwd1FRck1ncjZqZnFrWk1ONURQS20rQU9zSTUzRHNiOU9BN3NSWGNl?= =?utf-8?B?Ym4xWkViVERFM1RNaThCb2d2M2hZT2xNQ1hKdlB0aTFtM3VIR0dDUDRkSlRa?= =?utf-8?B?MWllSHlRZmdXbjZiWWg4SGZvOVZPVlM4MjZoclpJd1hoa3FvOEZyTithckl6?= =?utf-8?B?REVEUHhiQXMyb3Jab2JDMVlxQldGNGt0cUdPbGdBWTFTSVp3VGY0QkRYSEpT?= =?utf-8?B?cW85Zm5LSmo0RHA5S2lpRTIxQ3ovZ1VpdWF5eGpUQjIyT3M2Tk0xb0tQRmU2?= =?utf-8?B?S2dOazlCQVJRMHY3SjNKTGZV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RmQnI1R1VLZkVCN1JNakcyRXBmcnM4SjNiOUpH?= =?utf-8?B?dWt2SUgzNGkwVVNSRkEwWGJYdy9wVkFlaktrUVg2K3kvVFpEN3U1cWV4ZWF5?= =?utf-8?B?OThoYXFSN2RZOTRrcHF3TWYvQmVqL1h6T05iMXJHVEp4Q1pkT1huZGxIUkR0?= =?utf-8?B?V3JZTVRoSG1WRUM0YWhiZTZlL0lScm5Ua3B0cXZYK1dZdFZ3OHdrVytDMnFY?= =?utf-8?B?d2hCSVBWWmRuR3Zuczl1MDlQNmJMSTA2Z1Y1MXdJMm9sY0xUb3UvSGNUUjUx?= =?utf-8?B?OEJmOXJHRU4rUWdRTHIzQjlsWlh6a3c5emszOWt0Y05FWlBZRU9TRy9JU25H?= =?utf-8?Q?cGT+wzna1ZTNi+/57AAxYY/P670LnMFvSC5tEOs?= 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:(13230032)(376006)(366008)(1800799016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a2YzVlh3NE5qK0FMalZDU2Z2eWlvdFJPTktONEV1TDAvZVo5UDRYYytKblhX?= =?utf-8?B?dFNKa0lMa3JDZVdqWWhFRUZiZXFZM21ZV1kxUWhqSHV4c1JDN2dtWlNCSTBM?= =?utf-8?B?cnNWdU5XZEFZN0wxUE5zWktPNFBJMGZkNHNFaW1tNzJnSTAyazF2RjRHYk9C?= =?utf-8?B?LzdEaWFIWFlDMkR6RXFDTGQwNXNaVHlLYmNEK0M1VXdJaUtwSm00eC9BK216?= =?utf-8?B?UHpOZzNVbWhOVitNMTlkMndaeldXa2kvTWJvRHlSSmVNM2pVaml5L1U2L1ZG?= =?utf-8?B?ZFE4MzArWmdSWUpmd2hjVVIvK0cycHIycnd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q?Ng/erNEE5oWlVH9LAt7W3YNnL?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c9909b8-7e6b-4c62-a0e3-08dc8a6fb78e X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2024 23:39:20.7041 (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: 1p7jDGmzKTxM6WqSXrPA9vYgHbsSnkR4/QEDkXUQm+c84GkgjNte3JMBQXxPOxnK X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4240 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 6/2/2024 3:45 AM, Damodharam Ammepalli wrote: > Add new rte_lib callback to display ethernet controller's > supporting speeds and bitmap of supported lanes per speed. > > The new command display looks like this. > > testpmd> show port 0 speed_lanes capabilities > > Supported speeds Valid lanes > ----------------------------------- > 10 Gbps 1 > 25 Gbps 1 > 40 Gbps 4 > 50 Gbps 1 2 > 100 Gbps 1 2 4 > 200 Gbps 2 4 > 400 Gbps 4 8 > testpmd> > Can you please merge this patch with first one, no need to have capability API its own patch Also testpmd patch to get above output is not added yet, please merge testpmd patch and ethdev patch together. Same for others. > Signed-off-by: Damodharam Ammepalli > --- > lib/ethdev/ethdev_driver.h | 21 +++++++++++++++++++++ > lib/ethdev/rte_ethdev.c | 13 +++++++++++++ > lib/ethdev/rte_ethdev.h | 32 ++++++++++++++++++++++++++++++++ > lib/ethdev/version.map | 1 + > 4 files changed, 67 insertions(+) > > diff --git a/lib/ethdev/ethdev_driver.h b/lib/ethdev/ethdev_driver.h > index b1f473e4de..5951986cec 100644 > --- a/lib/ethdev/ethdev_driver.h > +++ b/lib/ethdev/ethdev_driver.h > @@ -1224,6 +1224,26 @@ typedef int (*eth_speed_lanes_get_t)(struct rte_eth_dev *dev, > */ > typedef int (*eth_speed_lanes_set_t)(struct rte_eth_dev *dev, uint32_t speed_lanes_capa); > > +/** > + * @internal > + * Get speed vs number of lanes supported bitmap that controller supports > + * > + * @param dev > + * ethdev handle of port. > + * @param speed_lanes_capa > + * int array of size max speeds bitmap ie 17 > + * @return > + * Negative errno value on error, 0 on success. > + * > + * @retval 0 > + * Success, driver updates the speed_lanes_capa bitmap. > + * @retval -ENOTSUP > + * Operation is not supported. > + * @retval -EIO > + * Device is removed. > + */ > +typedef int (*eth_speed_lanes_get_capa_t)(struct rte_eth_dev *dev, uint32_t *speed_lanes_bmap); > + > 'speed_lanes_bmap' is an array of bitmaps, and each element in array for a specific speed, but speed is not explicit, it is found by index defined by 'RTE_ETH_LINK_SPEED_XXX'. Instead, for more explicit information, can you please check "struct rte_eth_fec_capa" and 'rte_eth_fec_get_capability()' API? Also using same logic helps on consistency. > /** > * @internal > * Dump Tx descriptor info to a file. > @@ -1523,6 +1543,7 @@ struct eth_dev_ops { > eth_speed_lanes_get_t speed_lanes_get; > /** Set number of speed lanes */ > eth_speed_lanes_set_t speed_lanes_set; > + eth_speed_lanes_get_capa_t speed_lanes_get_capa; > }; > > /** > diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c > index 45e2f7645b..1ac5174d62 100644 > --- a/lib/ethdev/rte_ethdev.c > +++ b/lib/ethdev/rte_ethdev.c > @@ -7021,6 +7021,19 @@ rte_eth_speed_lanes_get(uint16_t port_id, struct rte_eth_speed_lanes_capa *capa) > return eth_err(port_id, (*dev->dev_ops->speed_lanes_get)(dev, capa)); > } > > +int > +rte_eth_speed_lanes_get_capa(uint16_t port_id, uint32_t *speed_lanes_bmap) > +{ > + struct rte_eth_dev *dev; > + > + RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); > + dev = &rte_eth_devices[port_id]; > + > + if (*dev->dev_ops->speed_lanes_get == NULL) > + return -ENOTSUP; > Should we verify if 'speed_lanes_bmap' parameter is NULL in the API? > + return eth_err(port_id, (*dev->dev_ops->speed_lanes_get_capa)(dev, speed_lanes_bmap)); > +} > + > int > rte_eth_speed_lanes_set(uint16_t port_id, uint32_t speed_lanes_capa) > { > diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h > index caae1f27c6..b8a29416b6 100644 > --- a/lib/ethdev/rte_ethdev.h > +++ b/lib/ethdev/rte_ethdev.h > @@ -308,6 +308,16 @@ struct rte_eth_stats { > #define RTE_ETH_LINK_SPEED_400G RTE_BIT32(16) /**< 400 Gbps */ > /**@}*/ > > +/**@{@name Link speed lane capabilities > + * Device supported speeds lane bitmap flags > + */ > +#define RTE_ETH_LINK_SPEED_MAX_BIT 17 /**< RTE_ETH_LINK_SPEED_400G bit position + 1 */ > +#define LANE_1 RTE_BIT32(1) > +#define LANE_2 RTE_BIT32(2) > +#define LANE_4 RTE_BIT32(4) > +#define LANE_8 RTE_BIT32(8) > If capability get updated similarly to FEC one, above defines are not needed. > +/**@}*/ > + > /**@{@name Link speed > * Ethernet numeric link speeds in Mbps > */ > @@ -6969,6 +6979,28 @@ int rte_eth_speed_lanes_get(uint16_t port_id, struct rte_eth_speed_lanes_capa *c > __rte_experimental > int rte_eth_speed_lanes_set(uint16_t port_id, uint32_t speed_lanes_capa); > > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change, or be removed, without prior notice > + * > + * Set speed lanes supported by the NIC. > Set?? > + * > + * @param port_id > + * The port identifier of the Ethernet device. > + * @param speed_lanes_bmap > + * speed_lanes_bmap int array updated by driver by valid lanes bmap. > + * > + * @return > + * - (>=0) valid input and supported by driver or hardware. > + * - (-ENOTSUP) if underlying hardware OR driver doesn't support. > + * that operation. > + * - (-EIO) if device is removed. > + * - (-ENODEV) if *port_id* invalid. > + * - (-EINVAL) if *speed_lanes* invalid > 'speed_lanes_bmap' > + */ > +__rte_experimental > +int rte_eth_speed_lanes_get_capa(uint16_t port_id, uint32_t *speed_lanes_bmap); > + > #ifdef __cplusplus > } > #endif > diff --git a/lib/ethdev/version.map b/lib/ethdev/version.map > index 9c27980f3a..c453494b8d 100644 > --- a/lib/ethdev/version.map > +++ b/lib/ethdev/version.map > @@ -327,6 +327,7 @@ EXPERIMENTAL { > rte_flow_template_table_resize_complete; > rte_eth_speed_lanes_get; > rte_eth_speed_lanes_set; > + rte_eth_speed_lanes_get_capa; > }; > > INTERNAL {