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 DEBD643A42; Thu, 1 Feb 2024 19:35:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8A2F3402B9; Thu, 1 Feb 2024 19:35:11 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2051.outbound.protection.outlook.com [40.107.220.51]) by mails.dpdk.org (Postfix) with ESMTP id 989B7402A9 for ; Thu, 1 Feb 2024 19:35:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ibb+4TwQ5UENn+HJrJkz8kATbwDaQRhF7TlCtxC5SOrM7IYs5QxP9d1JuA4OE1soHk/7xyJihUC7TPr95UlFlZrgzFaAN8/S+uQtaT3eg31iIxnN0xNj/APl9zeDZZB1LTXw/8LVZrWO7n28Z0Gw4WWu5OVtJI6BujJdMypJzD77H8OT+XuH2rrPLi3OUZDh3o3yhfN3B2z+reAnUxOGyvkm59hzURIq1A3ONF9KCZZ31cZ9QIgowtZITZJxkhYxN3/SRTLcLyhh4jltoW+HJuNuwL7rCbAyqt6rrJwyMidrdwquYKA3MvwF2alK7zB5WZTWb7jwm51zwclBvv5NYg== 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=/KFO2SEQQ/EGr3+6vwD836MocnQz7V3tCuunB3IEVWY=; b=hqRrOEldlycTNyWAZHqPlr79rOKPKhqfRqm4KQnOOFokfjc5xaG+0LMy9Kasi5FBf2ftUv0SjQlmYkXJcsBmkW6O5q4hw8CYqi3lKAuwJecx+2RWtCvaTOZIeALxUpj2S4T8iovTEprDHVUP++TA8C/EN+9pD7igulgj1+szyjEijfVHm2+2PiLD8IkYASZ6e/boiOoFuq+U+8qkGABXZ9R+UCUnynZLQFIASL+As3KGnLYtIcpzQANO1Zwi9+jsFkwTeoF2y2RD5zt/bsSYsZeIE5tTp8f3NHwHLl3zEuVCYdQ9aKK0Vi91uSbmnVCagB9XOmrjAH2ExsZ3BTTyjg== 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=/KFO2SEQQ/EGr3+6vwD836MocnQz7V3tCuunB3IEVWY=; b=eXC0tliRSElzhLyUjIxvQCzzYorBmb1eYbW5SlIf3KTDyJDf8bxOAw1+5DdT/A9SJzDhglIsqRLaqGP2w5a0WG4Iokraewa1t+uIdQM2Rt5O4eCn3Y45tgd+Kbl7aNX/nKqSDyd6GKGiI84UrOlb2TXhPu/HDKIXmhNYU826Hs8= 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 IA0PR12MB8974.namprd12.prod.outlook.com (2603:10b6:208:488::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.23; Thu, 1 Feb 2024 18:35:07 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::815a:45e6:cf5e:479f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::815a:45e6:cf5e:479f%4]) with mapi id 15.20.7270.010; Thu, 1 Feb 2024 18:35:07 +0000 Message-ID: <028e3901-a7e4-4d80-9e17-3cb7073c939f@amd.com> Date: Thu, 1 Feb 2024 18:35:03 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 0/2] multiple representors in one device To: Harman Kalra Cc: dev@dpdk.org References: <20240111064432.193119-1-hkalra@marvell.com> <20240201100219.26677-1-hkalra@marvell.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/6UdcP/0/kEp49a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8Zk= In-Reply-To: <20240201100219.26677-1-hkalra@marvell.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0154.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c7::11) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|IA0PR12MB8974:EE_ X-MS-Office365-Filtering-Correlation-Id: aea250b7-ddff-43c9-c352-08dc23548363 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cTDYKcFLZvKPV6F5qPhGU8F+e8Hmq9C6nAfWXCAi74F5vQ7nGWKLCttEc5LeVNCT9oPp2S2MfUgg29ciV1meoHwuAyvC5i6cDGGu6Tez0b5FYSqsM/trXqBDxcJYP4AGftk4aUgB/pr2qtvWI3IW7gepP6L7MSWokEmG0a8nJfKYu/+vU/FRyGkC8EFYfnzT7ADYd5E1PkC/eFlhvxg2JrypqD6dnaadwWBnXTwDkzInr+U9PdAb+h/THvIJIGZsEvq3yW+7z8JZ4MngaWUFpI4P9YWU7inWYfyF2+boMWyf2ct/nPEMMF4Yb5IJF2HWRW/Rek58PFWh0VYvZ1qEHHtNALe8kGHjPN3nWnmTleIFt4o/G5hIkO4pJu5KVx04hmWCEQDmmlRqEM69H0mj7mJoB9oZTe56HaBwC88hvIyZx316u2ZS6JKxX2b+TYZ+RuC5s/+zJ9RQixIoUxCqUas2AkpZ4qctBuG5dMUi10aNol8xO9N6G7+R83Pa1D3odJwWS5xamwV+iLh1kYnRwafA8wyhWRnPXYZN9w+yKKKkPUBGT336pbjI/dw43ResG7MYyB2NWoqhj/mkf0UP01kGzcS05I6OOCXYtF7vlEclSOHVznpbBXQB8RE9fNb0 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)(376002)(136003)(346002)(396003)(39860400002)(366004)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(2616005)(83380400001)(26005)(41300700001)(478600001)(53546011)(966005)(6486002)(6506007)(6666004)(8676002)(4326008)(6512007)(8936002)(36756003)(44832011)(66556008)(6916009)(316002)(66476007)(66946007)(2906002)(31686004)(38100700002)(5660300002)(86362001)(31696002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cENSZGRtU0w2MVdRVGtlQU1KU29QWUZHcmNPeTcwRXRIa0I4d0poa2dyTlhh?= =?utf-8?B?bmlLdDhJc0twZ1R4NGk5TjA0b0Y3TEY3c0I3UTFabzRMTHpjaFdwU29LRnBj?= =?utf-8?B?YmJRV0MyVEZabG1NNFVXTWkyVHh4VVpmT2pWZFNtRnV2TDdKczlQS2FtQUtr?= =?utf-8?B?dElnNjZ2dURJTE9Jc0Nkbkl1ZDVBNHp6RjhDaE9BMHlNNHFQNXhWZ1Q5dFRy?= =?utf-8?B?eFNpa3V1cTN1MDFaazRPVEF4bVpSSjczUU1MVWZGQ1BQajArdDVpZ1ZOL2lV?= =?utf-8?B?THFKM2RDSWN0QXNvQmwvVjlTLzBHTm9MNS8xOFRXWEs2NmVjNTlRMUZNWmds?= =?utf-8?B?dElOV0NYNHhlVmd2bldmVEJ2UzR1UVdDNkw2Y2ZnRVQ2VmhsQktXN3pka01U?= =?utf-8?B?cVZtYU1rU1JxaG1pU0x1Mk5KNlM4dzUvQmRhelRaUUtmM3M4QWRKYlJjdzZN?= =?utf-8?B?RitETG9hWEZlSHBOUk4vcko5M3p2cVBod3pNaThiVTlJYUQyTmdaT2tKZjI0?= =?utf-8?B?ZlM5VVBjcmlVU2dBczZtTUwwbkVEZUhmT2F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BMSmo5M3IwNFZnR0p0dURhOTIydVJoNXpZN0Y4MSsw?= =?utf-8?B?SHFhakxkMS96UmJzRlJ4UnU4SVJuVHVPVTN1QzJCc21UWjJSQVMxSFB0cnMv?= =?utf-8?B?dEtPMExnRjB5ZzRsR0c5UmVXNkRPMk1IdGZIUTRrb1lwN2dIdkM0aHhYQjZL?= =?utf-8?B?T0N4RTlUY2pFVjZ4WWFER0U4MTU4QWlHNHBHZ0JXenNzbExqRngvSUdnTEwv?= =?utf-8?B?K1pBb1JrcVJSekVqZWtTNmg0d1B6dytDWE5vTWQ4dVdWa014Y21YNlhxa0Nk?= =?utf-8?B?K0pFMVk5MlRSVEJvSlVhcGwyYVRVbno2NUZSUFBQdGJzVWk1cnlETTlBTEtD?= =?utf-8?B?WEtySGNWcnVWSVQrSE9GVEczdjl3WlAxVE9lNmdFTk9NSldGUUJiSkhQM3F3?= =?utf-8?B?T3h4NEtCNS8xUDZITU91NTdBSEtoZndLVkdlRDNVb2k2VC9zeXd6d1NidDRw?= =?utf-8?B?MVlKMjFqdTNHV0NhQUVaYXhEd2JhaE43cmhFL2ZEaUozY2oyL1lVVmE2NmV3?= =?utf-8?B?RnNER2NOVzM4V1AxVkVwd0lJeHNmT0xGYUswdEtJR1pmZHpBd2NpeWx5dE9X?= =?utf-8?B?eC9YbnNsakJFYmNZL2t6c1ZlWmo0SktZSitjZVl2b1MxM0hYODZLM2U0UUZR?= =?utf-8?Q?W84xFaclV/E0Cf46+X/K8rrHK?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: aea250b7-ddff-43c9-c352-08dc23548363 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2024 18:35:07.1254 (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: FEVOiQ6SUInI/nrE/Btd1jIFsoQ7jIqA2d7nGk6gGiW+Y+gNf6Cf/0ZKkVjgqtA2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8974 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 2/1/2024 10:02 AM, Harman Kalra wrote: > Following series adds support to enable creation of multiple representors > under one base device. There may be scenarios where port representors for > multiple PFs or VFs under PF are required and all these representor ports > created under a single pci device. Marvell CNXK port representor solution > is designed around this scenario where all representors are backed by a > single switch device. > > Earlier this change was implemented as part of the Marvell CNXK port > representor series but after suggestions from Thomas we would like > to propose these changes in common code. > https://patches.dpdk.org/project/dpdk/patch/20231219174003.72901-25-hkalra@marvell.com/#166785 > > V5: > - Added test cases to demonstrate valid and invalid cases > - changed the tokenizing logic to address all valid cases > > V4: > - Used MT safe strtok_r in place of strtok > - Reworded some comments > > V3: > - Fix duplicate representor devarg key handling logic > > V2: > - Updated the multiple representor devarg pattern to list > i.e. representor=[pf[0-1],pf2vf[1,2-3],[4-5]] > - Introduced size of array as third argument to rte_eth_devargs_parse() > to avoid array corruption > - Squashed separate document patch > > > Harman Kalra (2): > ethdev: parsing multiple representor devargs string > test/devargs: add eth devargs parse cases > Reviewed-by: Ferruh Yigit Squashed patches while merging, Series applied to dpdk-next-net/main, thanks.