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 2D7D043DFA; Thu, 4 Apr 2024 15:58:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1F1F40268; Thu, 4 Apr 2024 15:58:38 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2120.outbound.protection.outlook.com [40.107.244.120]) by mails.dpdk.org (Postfix) with ESMTP id 8BDF24025D for ; Thu, 4 Apr 2024 15:58:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C6H6TF0ZfDFIAVto1rnFjDyDhaClLn8ZiNZTYDbbMuon7/SfeyFpEq0rcMPcOL2eJx8jwVCtiewe9ufZ9Pd5OItZiUWnzdRcLcSsRvxN7bDuDrN+uuQ3Jo2SZVgQLUKWFYswdFw0oeTfrfWt4trPugwXHAiDXbJEwW8PpSpSzXXr7lYW0rQSVMlA/9KFcp3JIkFE/Jr6wyzWHfeJQ+sbgRn4qudkBICj0Nm6LQapGenfNCDgDU9L/SfWewk95N3OxLUvyxB59lMmK1Sto2FNpcBh/hZGrOohskpg9HDyJkWmnMJQItpoKoGHLgvkkO2idYePb8DRlFComJnrGC0cSA== 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=m9OLwIuTqeDcPWpHKdXGo1uTZiM5+sGwOI0kPLixDwU=; b=VSINjAhQYOgKXPWsOvrU63c5V9YXFPBjv0UmF/PyZDKt4AC8QUn1cLdp2swHeUvqss0V2zNJCqVJISYnpMeXIXZQ3QLTCEMS43IW3nAYf04hyMtzytmru7wo2B8x3Lwbckd2IoCyT8d1X1cTTH6V28qusppD+AbzrSz489spDN8fZ5f4UK/MufQSqRU8BM6T6m0p+YoIMasEp1xUDFrfFFgwoNgnPp45gvQTkMRYCHOwe365Oi1SuIY1iT0Lxev+/DFl6ClfqGFlwnRODG4FO8dMrzGEXzDcP4qiPx0BIkWHC+6b5COkeOoXl9ch7TCydIY9ZnUNk7PQc5wJIlYxOA== 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=m9OLwIuTqeDcPWpHKdXGo1uTZiM5+sGwOI0kPLixDwU=; b=y3NQjfg4saGPSJhUr0TultGApRBzTKEFcBr0/ANg+Rr9mVCsBU4ravj81ZVsG35vjsJ1Ih1/dpeHhZcAmRiBAdeknJvXA2u7ucUAJDgFLXE2HwjJGYxsTg2VNav9bCQIZBkUf7AMHPAx4YPXemBD5ZCneMQnC6ZKxw7kWyis3Qs= Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by MW4PR12MB6897.namprd12.prod.outlook.com (2603:10b6:303:20a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Thu, 4 Apr 2024 13:58:34 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3%7]) with mapi id 15.20.7409.042; Thu, 4 Apr 2024 13:58:34 +0000 Message-ID: <51c392a2-0154-4191-b6cb-7ead9888eefa@amd.com> Date: Thu, 4 Apr 2024 14:58:29 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/6] support setting lanes To: Dengdui Huang , dev@dpdk.org, damodharam.ammepalli@broadcom.com Cc: aman.deep.singh@intel.com, yuying.zhang@intel.com, thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru, stephen@networkplumber.org, jerinjacobk@gmail.com, ajit.khaparde@broadcom.com, liuyonglong@huawei.com, fengchengwen@huawei.com, haijie1@huawei.com, lihuisong@huawei.com References: <20240312075238.3319480-4-huangdengdui@huawei.com> <20240322070923.244417-1-huangdengdui@huawei.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 aXQgPGZlcnJ1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e cMh1CLUHXF1GlofpGbe1lj4KUJVse5g3qwV7i9VrseA8c4VIZewdIjkzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240322070923.244417-1-huangdengdui@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZPR01CA0215.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b4::9) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|MW4PR12MB6897:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: t3Xb39MqEBC4VF+vuuFWUBHJlJ5diooK5RQ7AQ/jdeQDITmvjsNdDp0zyuEQXFCWs0vv0BsTjHC4wUyobZ73YbjQr9karnrGVIMVXAOBPonzWCfBPQtJoqoxVnjgwiFWPwApoG91tQXVTTb3U8MNCSAmYQbCNLN0oct3ExjjqK3D/vuabD1zn4HtKB+JxWBzNoTdBQkVRn4gtXHCcllYnq4G8nX59FkrJ+N05hvKgYXzeK/X5e2u6m1PcyJ6PXiTbzvW9FRz5sxSUyZkGHNEug4UtCmHy2Tt3yEYyRBM4Ixb3QMS/aZzm1zHJIHbUn5qGZ+CfTfj2tLW0VKVIzDpWZ10fS1EZLb7NmYP0qv8DIWl1Gu6Zz+xSq/4gg5CKOFAmNcPPjEJa6rsDnI8Oyevje1DT5A5YySo2OXRKmNQywb9C0i2rM20Jgsjtfiic5KtZ+pA9MEjE6zPXij8OnSXKIXQvRxa47MEb5o0NX2rtG65nnN9uJiXCpTQPu8yTIqyYUkeDRD2VZTaTXwU2JE4OxedCX8f3YjaBU9AUEFu8Opo4oZaI0BZQsw0+OjppEGXIWjxaNXCWIBoA6/N6YSHegVjeFuQyfu4bGsdwfDQj00r0oW3BRNDRGqUk7pKxpOkGu4E1k299SHX9KfxMzLQqxWBRaM9m5SmQtJjpIoNOXs= 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:(13230031)(376005)(7416005)(366007)(1800799015); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WGpqRlp2MTdMOEd1NWVlcUNVL0hhWTl6QWI2Z0JJTTcvMUhqQTF1TjNSclVn?= =?utf-8?B?QVBsSndSS2x6UmdBais2VE1mN2c0bXp3K0RkSW9NUFVyVVhwclFqY294UnB2?= =?utf-8?B?T01yRjZCQXhyOWFjNk04dUFDRmdJeFoyRmF0TU1KNFdXK0wzdlkvV21keWdV?= =?utf-8?B?bW9aOGpock9hS3hYU0pmVXgwaGkxOGFnSTIvYk1ySWl2WFRQZWoxcHQrOGVY?= =?utf-8?B?OUpldHlHZzZ5KzBJOE5yL2VlMnhXRmRzb004L3padmhhOFRMMXRqZzdwcm9Q?= =?utf-8?B?WGhlalJhTHErVDk0aUQ1ZEVoMmVoWTBWYndhaGdMam1HbDNrbGNOQ3ZaajFX?= =?utf-8?B?Y1NtL0FxaXpFazJueGNUK3hiSHFBeG1GMzVlZEF2YktLYzFXY3h0RGJGMitu?= =?utf-8?B?UzNqRmx5b0V4MDBhbm1wTUtvdG1uMEJmREZaUG4xc2tKUnBHeE1KRFByMHcr?= =?utf-8?B?cURFSFZLZ3F3YjlEd2dOSGhXb2pycklzNDVkMVU3SElwTSs0UGdnQjZxSk11?= =?utf-8?B?REM2ekVvOVhGRWpSeHlEQ0JOdTZJTC83aHl0NHRHZmZSWHdCMW9lVkpXSzRN?= =?utf-8?B?aFczZzMvK3U0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?B?TnZJUGpxZ0xQVnZJNyt5OU56MDQ4QUpQMCtDa2N2bU1NbnBET21hVWVwcmo1?= =?utf-8?B?M0p6STZsODFVZ2h3NWd2RlM5bExmSlR6emJyV3pYKy9oSGduL0Q2M0RwMk1D?= =?utf-8?B?TkxMNnVUTFQ0WWpwbi9kMStmUTdmRm5mSjhFK3o3NkVMc0NPbHE1Y05mVmtY?= =?utf-8?B?OEtlbE41T2d6TlJ6SWlaM2x1aElsSnU0RlpPbXJ0U1EwTm1FU2h0VUh1S1hk?= =?utf-8?B?bnFkcWJTbE9Za1h4bWpRN2Y3T2crTGlpZnNyUzNyWnVBUmpxYnB2L1VNWE11?= =?utf-8?B?WVRlVXhhOWZLRDNkUFJ4dkhueUowamt6OFV4dVlJS1JEYVI0eFJPUHcyN1RG?= =?utf-8?B?eGdLemR2dEM1V25GRWpYalVmVWlUTlZMVTVsaU9UZ2ZpUVp1ZmZGRnRTRW5z?= =?utf-8?B?ZCtjQXdzdGNIOCt6dS9MODhockpZUXE3NzFiK0VrZXJhcmwwQ3NVdmhtYTlL?= =?utf-8?B?a2hNdlJyRW0yeGc5QWhobWtnZzZGdVBJLzNCeUZtVVRXTXBmZGhrM2Z1ajFL?= =?utf-8?B?LzlvNTJxY2dyRlZXa3FLQzZJSlppQVJxQ0ZxejRzYzhaRUk4UFJVMzlieXpJ?= =?utf-8?Q?CmNepL2D/lvJga87tYQIIzANc?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 489112a9-25af-4f9a-d852-08dc54af5195 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2024 13:58:34.6471 (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: 0R8g2SbXiilASX03tHvoGtnwTbw68Pn38RvsdYYYcFekU5ZTgDmeURT+02kbNL2D X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6897 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 3/22/2024 7:09 AM, Dengdui Huang wrote: > At the physical layer, multiple lanes are often used to work together > to achieve higher speeds. So a speeds can be achieved with different > number of lanes. For example, the following solutions can be used to > implement 100G: > 1. Combines four 25G lanes > 2. Combines two 50G lanes > 3. A single 100G lane > > It is assumed that two ports are interconnected and the two ports support > the above three solutions. But, we just configured the speed to 100G and > one port uses four 25G lanes by default and the other port uses two 50G lanes > by default, the port cannot be up. In this case, we need to configure the > ports to use the same solutions (for example, uses two 50G lanes) so that > the ports can be up. > > This patch set add support setting lanes for ethdev. application can use > this feature to configure lanes to help select the same solutions. > Hi Dengdui, Damodharam, As details of the implementation under discussion, I have a high level question. Why/when an application need to configure the lanes explicitly? In above description, it mentions if one port is configured as 4x25G and other 2x50G, port can't be up. How do you end up being in this situation? Lets assume first port is configured as 100G, and FW configured it as 4x25G, and again user configured second port as 100G, why FW can't detect this and configure ports with correct lane configuration? In this case, if we push the responsibility to the user, when user is configuring the second port how she will know what is the lane configuration for first port, and what is the proper lane configuration for the second port? Instead of pushing this configuration to user, why it can't be handled internally? As long as user requested speed configured by device, the lane configuration has no impact to the user, right? Is there a case/reason user need to explicitly set, lets say PAM4 against NRZ? Thanks, ferruh