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 C146543DC1; Tue, 2 Apr 2024 12:15:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4820B4028C; Tue, 2 Apr 2024 12:15:44 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2121.outbound.protection.outlook.com [40.107.237.121]) by mails.dpdk.org (Postfix) with ESMTP id 7E3A34026F for ; Tue, 2 Apr 2024 12:15:43 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lIfORoxxEoxYk5E+DkN6s3gumderpS2RXEglbvur+dMumCABLpCFmR+LySZ24G4ejAoAI1RpGHi3HrfHLKUADnodquHpXMgrEhYZRgxrY2hNSKbfJmoLq9Jz0Hf9wRpr1ThYem+yNCCAb+VyEt0EFOKRENoeWWVhcpTTLBzwyXaGRoiOWj4jniQvDTeQ2g20bFLtdDcxAouXZj1nJiO1TmCMZrpNXVhM1OwgoHJ+iGlR2FfGRgV+tuVzQFkAGmp+Idn1IOcknlI6CX5aR+wSXUeeM9dCqru5Hm2JMtKLDEWEZ5XYixyirt341GlNFgODRvP+6rDemFyj35UvwaiOvQ== 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=5I/M6bckFUprMlDB5nl++N0OVBRy8QBs9jnayGvROgc=; b=OPlEHKO5bAX6Bnhs/dHwnE0Aip4vC/QoQY9s3h3KBkoV/rCp+A7xOFxbA8OcU2OdZAknzAQxgJSZ6vRuvU/57qzGnPkOmvPwubah0n8UKsO21nhszS0CPp4wmi306gmRg6jObZZpnjmV+p/+QugCrmJ1F+IBPg2X/hDxJtfGJmm2y1qf3EhSgQM6hPeNcGFW4qCee2lrBZkq2lb/yhimuuUsUt9LRVOfsL2/eaky0M1c7ULbvxbE9GMVqpqbWIjJiAB+PbXMpnoO0WcZVjnZpq4VDeJggYlt2Irk+nyvA5WCdwqHA1MKzyB0s8NBFj+4/PCKmj0PJ4ylX3OcWIlFrw== 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=5I/M6bckFUprMlDB5nl++N0OVBRy8QBs9jnayGvROgc=; b=AHGPL6X829FgHcs334aBRM91ny3t0/94dpbbGpP1RTX54Vc0Cpy5LJnvwxUsDVS/c1DMIbfO9J7fafg65g+vzuQ/YGy7AVkOAZVsdR0+kAA0njmKS8KTFffS5kmJU9K7/N+2O/MxuvRJpPpAAYn5dGwZ97kPkAB1WoLE/cYFRNI= Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by PH8PR12MB7302.namprd12.prod.outlook.com (2603:10b6:510:221::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Tue, 2 Apr 2024 10:15:38 +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; Tue, 2 Apr 2024 10:15:38 +0000 Message-ID: <2e47e325-d552-4b91-a98e-d4c0cddcaf36@amd.com> Date: Tue, 2 Apr 2024 11:15:34 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 1/8] net/rnp: add skeleton To: 11 , 'Thomas Monjalon' Cc: dev@dpdk.org, andrew.rybchenko@oktetlabs.ru, yaojun@mucse.com References: <20230901023050.40893-1-caowenbo@mucse.com> <20230901023050.40893-2-caowenbo@mucse.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/kE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yO 8Zk= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0057.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2af::14) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|PH8PR12MB7302:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5PXQCcA5/GuxkzJOBUCy4kqMhZ/JZSOAIcuD/Pee2MS1KRIgtrJYTEtbGgI3cuqIX3ftNJ97xOr3shAS9y+0+Rai5QiBJHlWdJ4ACZdcXWk/lyNnwcMc8osfqqd+Cx9FJNiO7wOo4ooTn3DaGesjl5+SwmcLa3kN2H5fbgGdrwEoS+JTiihxVKSEM5usf2qwqNphlSwfazxAJ1FzB2+CWMLyx47jC/TACK/THHxLikZpNB4Ps1bGCFXXV94QLO8KGMtOhwvEz11aeD+tGH2lVjDzEyBZtcziKcJjVUgWSCbPXaT09KjBa+DH2lzMhPyzz9R2EIch5fi3UiugBzUdpcJMrcHBSjJGVBy6wc+aAl0Fq8oAe4k2lIlXW9ak16Nqet3hylPX3Gq8P1khsaEUajA3rkpc/BYV7WdB74zmSY0BTTqBRucEdjD0GBMOY8UHUuH+tDCbGmXtyuVU0EWt24S4DSmnlShAJfUxUPIvEOPVynfK6S1uoIGhbP2lzqbXrx2p+XAmPV0ASLP2gZlDAsAZGuCuZInfK6qohvQFYCQ6+Nrmy7etSJiP6owTf76UacPNPXCSPSFpiaMtacVMSpP9/dm7MVJyp58TBXsdEY5GXqIBdkYcgKswOD+yFnWWPfaNXNk1Xv9ebwwzfhJH6hBLxbeCKPOiBRSXJYwv8wY= 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)(366007)(376005)(1800799015); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eWw0cmoybmdjY2RDSUpxdzZFSnZJcG9ya0JVaEswSDRXSlZwcTVVY21KUVRL?= =?utf-8?B?b2tQa2JJbStoRDVSaTF2MnArVTVjWVdQdGhqSWVmYy9KWUh4SVRZaTdrdzNv?= =?utf-8?B?N0E1dDR3MlJ3UHliNUxQRjMzOWVsVHduamtSUnBWanlqN0RRWXRQbFhqY1kx?= =?utf-8?B?ZkxKNmxnd056TjNTRFpuU0JuT1g4N04wMjg0MXZRekhOQ2l0NUxMZUU5UHI0?= =?utf-8?B?Q2xzS012Sm9xQmdqQmY1K3ppSzBGbVo0Y1hlVHZvWHVyVENadnZyN0JaZFg0?= =?utf-8?B?ak5nVWNDekQxaUU0bkg1WGNxS1BhNHJsdDFHV2hydVptemNJNzhHRlUxUS9y?= =?utf-8?B?ZjhtVHdsdHV1bkp3TTFRN2pYVGhjTDUzNzFDUW9OZFpkd2Njamh6QzlUZGhV?= =?utf-8?B?UVdUcHRFeXk4UEw4SWtZVlRQd254VVEySFNxNndLL1YxTXBxajMwVVNONDMx?= =?utf-8?B?LzRaV0Rod2ZOa3VzazhXa0g1c2RHV09lUThkRG4zUWl2c2o0ZkU1SjdTZ2ZL?= =?utf-8?B?d3d2bHI5a1FoQTgvSWdtS3RRa1F1c3RlNFl6QkdVdGxFaDdEREtrWkdJTE1h?= =?utf-8?B?K0lLRzJFM3dac0ZIeFczekNPZW5pY1lFTDJXZ05lVUUwQytqUWxwKzcrdnZH?= =?utf-8?B?SWg1OHN1YnBoUGM0N2RnUG5MK1FFdWsvVkhmbGgvSTRoOUFTd0VYbFpBeDJ6?= =?utf-8?B?amx5OTB5YkhLYS8xOWwxcWpIdFFFUVF0K3Rqa0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1BIb2dTUGpnUmZ1dGo5NG40aWZ4US91SmJ2WVFCZjZNK3NiTXU2?= =?utf-8?B?bGpHU3QxZTRXdE9WUjFJUUkrOGhoWDdGeEJyL1BSSWhoUjcwNVFOSTBhZS9P?= =?utf-8?B?enZnczA4UkRYNXNwVnBNdEQ2U25sVU0vdWtQaThIREh3OGdVNFhOS2dBWk56?= =?utf-8?B?WXRNVnpCb2pMMmt1ZW1XTStXanJiRElCTEFIMnYvTldmOW5uSWQ0QXNKWE1x?= =?utf-8?B?U0Y5NTQxMDVFYlRaV0ljNXdCbkxJQy8wb3BVZTdSb1BEck95Vm9sYjVTeGww?= =?utf-8?B?S0k2TXhjcHFaWnl3Q2t0UDF1MXhtb3dwT0ZnYkVydURsb3dhMzZxN2hSVlh6?= =?utf-8?B?amdGMHRxaEthVmI2eUJlTTQ1RVJYR1FvY1ZReHhZOGFFbnBpQ3NIWkNVektx?= =?utf-8?B?R3oydFNBUFpUaFJ0Ui9KdStEZWdvNWFIdFBtVUxUTitCVExHeTJMeHl2Rnhy?= =?utf-8?Q?4AfXs1xjtoGup7W5jGelBzOjk?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 69a76102-f4b4-407f-d676-08dc52fdd7ff X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2024 10:15:38.7394 (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: /tgaU13CZs6YvwUHW1sT3c1X4uWvttgo4d32ZsZnawtebV1F3IW0tCXvO6zQiiil X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7302 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/29/2024 2:45 PM, 11 wrote: > Hi Ferruh, > > Thanks for your reminder, I'm sorry for that I had been work on anothing before. > Recendly, I have been reworked on this work. It will miss on release of v24.03. > > For another thing, I'm always confused for the secondary process call like hw->mac_ops this function pointer. > is this method can work normally on secondary process ? > For example,ixgbe on secondary process call ixgbe_get_module_eeprom I fond that it will cause process core-dump. > because of secondary process use primary process function-point address. > Is dpdk plaform allowed user call the eth_dev_ops on secondary process? > I don't find any limit and don't know wether or not to protect this function call work normally. > My driver eth_dev_ops achieve will used some function-pointer, so I'm confued about this. > Wish your kind guidance. >  Hi Wenbo, "struct rte_eth_dev" is per process, not shared, so both primary and and secondary has a copy of it. And during driver initialization, 'eth_dev->dev_ops' is set, so both primary and secondary processes has correct function pointers. ("struct rte_eth_dev_data" is shared, so any pointer withing that struct should be in a shared memory between primary and secondaries.) And there is no restriction for secondary process call 'eth_dev_ops' but this call needs to be synchronized by application, since there is no locking around those functions. Common usecase is primary process runs the control path, uses 'eth_dev_ops' calls, and secondaries only does the datapath on specific set of queues. If you are referring to 'mac_ops', that is another layer of abstraction some drivers use, but those should be tied to ethdev control path functions eventually, so same rule for using ethdev control path applies to them. > > >> -----Original Message----- >> From: Ferruh.Yigit@amd.com >> Sent: 2024年3月29日 19:28 >> To: Wenbo Cao ; Thomas Monjalon >> >> Cc: dev@dpdk.org; andrew.rybchenko@oktetlabs.ru; yaojun@mucse.com >> Subject: Re: [PATCH v6 1/8] net/rnp: add skeleton >> >> On 9/1/2023 3:30 AM, Wenbo Cao wrote: >>> Add Basic PMD library and doc build infrastructure Update maintainers >>> file to claim responsibility. >>> >>> Signed-off-by: Wenbo Cao >>> >> >> Hi Wenbo, >> >> What is the status of the 'rnp' driver, v7 was expected but not received, will >> upstreaming continue for v24.03? > >