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 F168445C59; Sun, 3 Nov 2024 01:46:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D5861402A5; Sun, 3 Nov 2024 01:46:33 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2075.outbound.protection.outlook.com [40.107.93.75]) by mails.dpdk.org (Postfix) with ESMTP id 2B0A44026B for ; Sun, 3 Nov 2024 01:46:32 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZV5uQdF0vMdOMm5l++dAe+r29HEXzDIoDprlufHRIAycgUxtaIl1FnsjebO91sP4xE5JQ8F1JJhp5IpzndlUhJ7d8R9mfBbUAIz2LqbRU1MD/9+TUJjDxW/NsQjmRtEm+cgDk8eYJXDKqH/Pr2vhWXgV9aH0MCE0RYv4da6v41+R5RgjRuyBzmD1J9O7yeu6zP+BnaLetwaPAXdXh38EY5TTyJzlHCxCXGLHPY2Er8h0iPxX+1GKLoibZinm23E8jKqaW2nx7Qhnlpss72NG3IFhn5DGtIA5PajgNEvkzF7gcGbalDcus4yDtHGQIOCfP73pMhGS3ZuhTgEprTdwLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=yJpLVN9sv8uahghE7tS0RsZ8qFAQlkQi2cRQ3u2jzV4=; b=sucdiBYZQPdcB5KGhW240kRHXbPDmkuvGl9FCJMVpIIFi0FV6urFTenKOBajUqUFQlh6j2J5JitKnNaJExniSIQcbqITKVYmnD4l2UCV1Jy74oASxMEQ9JIWwV4TYtTLmW481TyKHVSoeTWBIGGESIxOFiRk0/T0DsjycSGwHMVvF5HxtDWWvMNRUt/Wcn9R4iGfzrvVsYmOAAM5MaWhORbxJpTSL+x2SIt+7fZ9i0TwWeSpsUPm9Jpt35rw4iZ5YakqkZX1eZ+HCAB+cYMyqoqGuOLmD7HX+vbX54Z7osPTFe/nNpv4pZP3pUmjJB1NoQ84dmcAlh0qZFMbzUZJpg== 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=yJpLVN9sv8uahghE7tS0RsZ8qFAQlkQi2cRQ3u2jzV4=; b=U2olYizJiExUTuDa0DKlapYLdKKwj+Iolrq1dWze44CtNCBNCMW5NRo7on4mC7FfviSBPD9Hznyvsl37lUy84W6SW5Z5tfYg91MQ2pZA+0fddxWg2omXJnZ3MVldO7R4fkTsSCYQV4U8I8gEupqzutQQquoNjTZiZvrOQfdFmy0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) by LV3PR12MB9234.namprd12.prod.outlook.com (2603:10b6:408:1a0::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.20; Sun, 3 Nov 2024 00:46:28 +0000 Received: from SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055]) by SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055%4]) with mapi id 15.20.8114.015; Sun, 3 Nov 2024 00:46:27 +0000 Message-ID: Date: Sun, 3 Nov 2024 00:46:21 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 3/4] net/nfp: add support for EEPROM functions To: Chaoyong He , dev@dpdk.org Cc: oss-drivers@corigine.com, James Hershaw References: <20241030082759.209617-1-chaoyong.he@corigine.com> <20241101025713.290462-1-chaoyong.he@corigine.com> <20241101025713.290462-4-chaoyong.he@corigine.com> Content-Language: en-US From: Ferruh Yigit In-Reply-To: <20241101025713.290462-4-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO3P265CA0001.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:bb::6) To SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR12MB8830:EE_|LV3PR12MB9234:EE_ X-MS-Office365-Filtering-Correlation-Id: f1b37c17-e50f-4331-69c4-08dcfba0f35c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?VTZpbXdiVUQ0b0NFcEFyVWlxSHllaXZDVTgxV0k1SWtOYzQzdmpEY3lyWm9r?= =?utf-8?B?UG52QWZSY2k0TFF1YkkwMS9VekwvSGh3dXJKa2VjQTNjM09LeGdjTGFQZmRR?= =?utf-8?B?c2Q3NHlPdjdvNkxOOCtWcnFzMUdCekFGMmQvVkQvYVpxbVY2NUVJRW1HSDNN?= =?utf-8?B?NDZRcG1HbXJ0emlodjNwUnp6ZU5nRXB2Q29PTHlNaUxIWlZBVFNJVVMwME44?= =?utf-8?B?OWNuUDhOaDZRemRIbVJhZzNGa3gwb2hyNzVjZmhNanJLY0xxNUI0eVNLNE9T?= =?utf-8?B?N3pQcWdXckcyN0ZxVElYb0RveVk3NFNkMUNVTmpLQmxYUVNuRzlHTEc1SlBz?= =?utf-8?B?UGdoaGJsbkpqU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2JzUFpqRW85SnloOHErcG54R2xRQmt1N2ZIL2VVZlJoZWky?= =?utf-8?B?QXIwY0UvUHBhempldGQ2MjZsRkFXQ2tCeFE1VTFob1o2TnlmRmYvTnJwK1pJ?= =?utf-8?B?eEpDa1hGaXlQVWFCWko0eTFhclIrUzd2LzEwSkY5MnM2alpuenk1bHcwaUQ3?= =?utf-8?B?RGZzZ0M1OHE5eElBSlNWMkZLZ09HOSsyaXBJNVNDQzBJdXhMSDY2cGI4ZG04?= =?utf-8?B?MG0wNFdHcG1QQy9jVFY3QUR2T2l0bzFnc0ZSV1NSbEtUWms1YTZkcXBicWlE?= =?utf-8?B?ZTRleGEvSmZkWnNpb1NqdHY0VGt2TkRtdFgyQk1UNmFDS3pUZ1F5YlZJNzZk?= =?utf-8?B?U3lBQy9wZ0FRNkw4d3NpUml3b3ZPaVdWdU10OEF0UXNJWmY5Nk1JR2NIRURX?= =?utf-8?B?eXl4Umx1TGswY2toMTNNblUvOWlsOFdYbkxYY1FtWURqQVIzWHVJZjNFWGR0?= =?utf-8?Q?jpVHDQEMnPYHOBf3xqNFFwxH5KP5GmA4tH04gPC?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ2PR12MB8830.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UlI2UTVUYUNUWVFDTDVIN1VjMWl4dlNuejJqc0EwU1hxWTZ3Z25CeEtwTXMw?= =?utf-8?B?Q2NMU1NwSkwxVmcyUkhWeGttYTNoVDJBRDRTR1dJblAyN0J0a0JDTytUdXBG?= =?utf-8?B?bU8wTjNYQ21pU01SUFpLQ2tWWEhKZHBHRmZEdVRIOVNJcVViZ2l0a1RUa0pJ?= =?utf-8?B?WkJZTGRNY1BSZ3Nq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VVE?= =?utf-8?B?VmxQdUtaQVJjazNycWh1V1RCWmpJU1FiamtOUE5zQmc1T0pYRFFwemZNSWtN?= =?utf-8?B?VWU5WE54Z2RYSnNMMDA3NVF3WGI1RGsxNFY4QWtyeTExS053OGhJN3IyTkdD?= =?utf-8?Q?vr1kYU+JNcf1Ykx/82Ng6s59z?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1b37c17-e50f-4331-69c4-08dcfba0f35c X-MS-Exchange-CrossTenant-AuthSource: SJ2PR12MB8830.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2024 00:46:27.8300 (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: 1TOKtZZaNSBNDkCigqj+9RHSskHrmwdm4YAeqebmbIkeZdZArxnUillQfKsU4bNK X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9234 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 11/1/2024 2:57 AM, Chaoyong He wrote: > Add support for the following EEPROM function callbacks: > > .get_eeprom_len > Get the maximum size of the device EEPROM data. > > .get_eeprom > Get the device EEPROM data at a certain offset and length. > > .set_eeprom > Set the device EEPROM data at a certain offset and length. > > Note that for an nfp NIC, the "device EEPROM" is simply a field in the > hwinfo that is used to store a 6B mac address associated with a physical > port. > > .get_module_info > Get information regarding the type and size of the plugin module EEPROM > for a specific port. > > .get_module_eeprom > Get the data stored in the plugin module EEPROM for a specific port. > > Signed-off-by: James Hershaw > Signed-off-by: Chaoyong He > --- > .../net/nfp/flower/nfp_flower_representor.c | 76 ++++++ > drivers/net/nfp/nfp_ethdev.c | 5 + > drivers/net/nfp/nfp_net_common.c | 256 ++++++++++++++++++ > drivers/net/nfp/nfp_net_common.h | 6 + > drivers/net/nfp/nfpcore/nfp_nsp.c | 96 +++++++ > drivers/net/nfp/nfpcore/nfp_nsp.h | 9 + > 6 files changed, 448 insertions(+) > Can you please update nfp.ini to add "EEPROM dump" & "Module EEPROM dump"?