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 72D4944087; Tue, 21 May 2024 13:09:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF39A4026C; Tue, 21 May 2024 13:09:11 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2040.outbound.protection.outlook.com [40.107.223.40]) by mails.dpdk.org (Postfix) with ESMTP id 6E78040265 for ; Tue, 21 May 2024 13:09:09 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m4H7l2MMoIT8O74FtZRHCIPnQ3VQrCdO5PzDMuRZmojL0NdfOFAj/oimFtVGW7qfwef2yb7sV+OljAY2e0KNq4KlXNd3mixeeYGWzN8Omvb8E0nBHglNFxaEGaa4ds1MsJmo5qrpF7+vfkR/5uoY6qBpVFY6HAgyMc1UVyg1Nj6JDF9YiRKbgPk2C8g8a7m/M9I1UHXtxHVf0/3CwM54MqIpSzPfngWmUkDg1NLYdMtmxSDOx9oqmRuVywVH4OYZOxUhUp2/z5QH0ZGqQ+0pQmYGbuM/x5n0Bj37AlxBwFAxLbGbrNfLjb2ECyKefiBepmO3mm1li56USQ1RGEUsmA== 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=TGzhkKNCH1AEeTkc+x1G6fEuBzrn559x4vEdYfU9Cls=; b=HkpokM3ZDycvwBTU4tVeHuS0wtGH9fdV4+gTakKH4h8wNFiP9893Tj0CYumXUpjdbnW3YyUCWleVAfs/WSI6FqWtzCDETR2iXVBJLYOYe4hNV3TmzRuu2v9ZPKVSREx7LMOXDlpK/5GbxqO8114BU2qT9jhEa/tQh6iqOwZQ6X4/sIwy4KrA+fhpkZMKnWFmSDOIcRBLGdT4dZQUURDxUcCGf7hBSBlJ2T0nge1tG856DOBva38O8POZek2znpa0hgtVuGuAUiCyzr68KTBU4YGdl+Ic+hFpD6fNVhrTEiK8Wzehb6MYbTiAwb0JXR7Wotd8l7pShjdrwTMCALBQlg== 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=TGzhkKNCH1AEeTkc+x1G6fEuBzrn559x4vEdYfU9Cls=; b=cfHOaprgkGOQnIatVyR52FacnFuReSW6dBj3JKtlGz8X4VFlZ82t94+eLBt37WGftq8IGYgbgdfSt3NM+3x6glaAq0GE4e2nZ9vbiIU4sJASpvNM/W+xBhsF5YMMBFEtMmGVhDGoD5MuABp1m6yd48/pv445pMP5NR4ikjj2QSE= 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 MN0PR12MB6368.namprd12.prod.outlook.com (2603:10b6:208:3d2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Tue, 21 May 2024 11:09:06 +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.7587.035; Tue, 21 May 2024 11:09:06 +0000 Message-ID: <0c46540a-d516-48c9-85c0-eb684b8d0adc@amd.com> Date: Tue, 21 May 2024 12:09:02 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/8] refactor logic to support secondary process To: Chaoyong He , "dev@dpdk.org" Cc: oss-drivers References: <20240419031226.1191069-1-chaoyong.he@corigine.com> <20240419052349.1294696-1-chaoyong.he@corigine.com> <4c98caa6-7887-47bc-a41f-7cfb862e391f@amd.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/6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YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0502.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1ab::21) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|MN0PR12MB6368:EE_ X-MS-Office365-Filtering-Correlation-Id: e11429ef-84cb-47ec-01cb-08dc79866e19 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?dlFwWjBZaUdsZGozMmZ5Q3Q4VkpBNTRrLzlpL1pIZWpoL2F1TnI5UHp1aTJq?= =?utf-8?B?b1BOMVdUTFdlQW5kdlpvUWhCaHpEaUVkUFY2bEVkSGtQRmFFTnBObEJoWnlH?= =?utf-8?B?VmN4SHNmanpEaHZyUjM2amdBWEJPeFV1R25acS9lNXdBVDF0eU5Ud0ZFMEtj?= =?utf-8?B?b3RxSjFhNUVjMnVNM1VXSVV4KzJlcjU2L3d4U3p1eTBQUVh0eHEyTzRIN1E2?= =?utf-8?B?MGU2SHhnNHkwaEtIeDlGM3lOR0hIREF6R0g2MGdPU0k1RkxNVy9YejJjVm1o?= =?utf-8?B?Y090UGRBQzlVTjk4aWlQR3RIdU5VNDJtWVAzZDFQNnptWllDWHZLcFphRTBE?= =?utf-8?B?TkpITHFlNXc1OEg0a0RZek1HcXRGc1hWMzlkSS9mdUpFM1V4OVFYSDBkM2I2?= =?utf-8?B?MVViM0hRcjQ4RENxdlg2SlZLZUpHODBGb0dsSWloY2gyeTA0V1dPckVMTDNP?= =?utf-8?B?VFVXYnVER25TWjFhVmN3YndUNkp1S1A3eU1zYWIxby83VWh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tpdVlKTXBSRVlRbktEc0FjOG5BZ1VKVlVJ?= =?utf-8?B?YkRCZDdDc0crVzhJYWp6VEg0SkZKWUpmVHMxRmVkNlJ3aTVBbTE2UDMvTzdJ?= =?utf-8?B?c04yQU5uMG43c053cFdDVDBUd0tqSmpuVHRTRnhJSk5FanhlRjUwNElXaVZO?= =?utf-8?B?djZMRjlwWUx6VldJZS9tK1hoQTFyTCtNMFEwWUZqN0NrdWpsZnhzYW12SHpp?= =?utf-8?B?bk9ORExVNlpjMjJCRzZ4K3RZdWdVekdxU1BSc2dIVTNrTmlaYXltWmhnNVR4?= =?utf-8?B?eUF0eVg5cXRnSzMvRld1WVVTM0l0eFJmWExKTDhIRW5mOTA3aU1sMzVBPT0=?= 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)(1800799015)(376005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OXJxYUZKNkpaM2U2WkxLMmFNdzcwcnpLcFJEWUJrY1F5NWhBWC9UU1dPV05o?= =?utf-8?B?OXFYZi9EV3gzKzFoWGFkRTVaT2NGenhqM0tUUTlpMUZQV0czRjAzTnhXZXJI?= =?utf-8?B?WFlvK0NkNE51THo2WEdWSXVpU2t2eTlreVdxWEU5ekV4U29BdnB4OExLMUhO?= =?utf-8?B?bjBsbzF1aHBrQlZBeE5MOXRZTjY2VFpCQnZ2R3E3Y0lVL0FKbEFVWlBYdjV4?= =?utf-8?B?MzRPUDdleURvSmlhZHo3QkxmK00wREIyaERPZTZBSGVEQ0NZWmxaN3JsbGZp?= =?utf-8?B?WnREYzI5Y1lPemFpQXl3RllxT1VsOEI3eDVpNEsvMjI0MDhPcHBoamF1SEEr?= =?utf-8?B?a2I3Sy96bjI1Y0NvcjRK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exchange-CrossTenant-Network-Message-Id: e11429ef-84cb-47ec-01cb-08dc79866e19 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2024 11:09:06.2472 (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: DG1JoMXSbFypcHqE7T19kFfjF6tK8qXqSGdm0W+jiEmJTVRe5kIG+Vkcz1lni/1y X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6368 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 5/21/2024 3:17 AM, Chaoyong He wrote: >> On 4/19/2024 6:23 AM, Chaoyong He wrote: >>> Refactor data structure and related logic to make the secondary >>> process can work as expect. >>> >> >> Hi Chaoyong, >> >> Patchset looks good, but I have a question related to the motivation of moving >> so many structs to process private data? >> >> Normally ethdev is process private, and ethdev->data is shared. Primary >> configures the device and secondary learns shared data and uses it for >> datapath. >> There are cases, like file descriptors for same file can be different for different >> process and process private structure is used. >> >> In below patches, device private data level structs seems moved to the process >> private structure, is the intention both primary process and secondary process >> do the control path and configuration? >> If so, just a reminder that this is not intended usage of the multi-process >> support and many control APIs are not designed as thread-safe. >> >> Would you mind describing a little more about your use case that requires >> below process private data changes? > > The main motivation of these changes is to solve the problems when customers using the > secondary process (they use primary process for monitor and secondary process for rx/tx/configuration ...). > Got it, if you want to do 'configuration' on the secondary, it requires more information, and as this is not shared you need to move them to process private. This approach requires synchronizing secondaries for this control path. So more work for the application layer. I understand you are trying to enable your customer, and this is a solution but I am not sure this is the best approach. And this solution won't be portable, because many PMDs won't support configuring from secondary. Can you guide your customer that configuring on primary and limit secondaries for the datapath? This way only some limited information is required to shared with secondaries (lets say like firmware application version) and these can be passed via shared data or even MP communication. Although this is not a hard requirement, I believe this can make both your and your customer's life easier in long run. > The NFP card support different firmware applications, this means we need read message from firmware to > decide to run which logic. > > And with single-pf firmware (this means one PCI BDF address for multi physical ports), we also need > read message (how many ports totally) from firmware before attach to the primary process. > > All this relates with CPP and symbol table, and they are different for primary process and secondary process. > If still put them in the process shared section (ethdev->data), the assignment logic in secondary process will overwrite it > and cause the primary process crash. > > So we move them into the process private section (ethdev->process_private). >