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 193B243A45; Fri, 2 Feb 2024 00:02:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E53A240268; Fri, 2 Feb 2024 00:02:32 +0100 (CET) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2081.outbound.protection.outlook.com [40.107.100.81]) by mails.dpdk.org (Postfix) with ESMTP id D67D340151 for ; Fri, 2 Feb 2024 00:02:30 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GUwLqCpYbQSIvs8CqX41gFJ4AO7jN9kjOmplTf/qoRjtURE3rgVUQ1z/2m8mSwtxjE7kIsFlpuNUtAtjhDDkZSaE1Pl/zKVb3V2F0TOyoyhp5neR1c8uTi6MObqMtwNzLqEb8BRtwVqcVN1vuOncin+XMO6UvvXqZtGz6dYSX7nwA7LgOfxBKajFTItTGg+aZaINlFF1aQwmdgIybjIOUXFzrU6VxNZcEKruwb2Yea08XCELC1ve7+tVstgU/NtQFETbqaYprLMXISzIBXfJgmfhVtj6d4akVpzQFMrQTVXDQGJ6cnvLpC9rvMYJDT+rfKIvdUtgu08xFMHt60ZXSA== 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=EKyeofqP9x85EHAjp8LJDSrxxRkk7NIIzB62K0g7dzw=; b=YdcbUj14djfBTb1K9dw1B/NuBWrN1TgJ1L9rlDMoI/VDF5/VvEcs7LrPf3xn7ucpqfyZaqswGAUJGwz9CFLUIeypqsEXTW87IcHUP2HUK8/va8AFFSBq6ddXqlvR9PdFDQc71gS5XclLx6QEbBfQiJgtznOyhZ7GEAS8FqLoxOWPwtSEBqS9lKRX21oMTd/Zbh6yGMJGDmoRk9cF4O0moMmWi7xpp9Hck3xZ6m0r1gJqs/fB3sz0JWULBQduPw8Uoulp0XTo0lAcScmzxn8HueWqaFVF5Kf+WmjsktaXC9s0hzcIYFVigVENbZY4YWrJAngIuPFTLm4jUxl/zg9RPg== 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=EKyeofqP9x85EHAjp8LJDSrxxRkk7NIIzB62K0g7dzw=; b=GAIgm9Ia4yQUzpU9hAoNBL8cOzZqXzcJT++h3Bar6CZ03Kzkdda93q8+9wmOthK2YnNHWjpf6GPYR2t6bo5i7wQZ9ouxtb3zAILfIvck9vECD6SJO29iSlSGuTv+O/D4IAPJXF4cssSEH2YtK0Mgs186hHikeN8VlB2dE/ryt5s= 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 PH0PR12MB8822.namprd12.prod.outlook.com (2603:10b6:510:28d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.9; Thu, 1 Feb 2024 23:02:28 +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 23:02:28 +0000 Message-ID: Date: Thu, 1 Feb 2024 23:02:18 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 2/2] drivers/net: return number of types in get supported types Content-Language: en-US To: Sivaramakrishnan Venkat , Igor Russkikh , Selwin Sebastian , Ajit Khaparde , Somnath Kotur , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Yuying Zhang , Beilei Xing , Rahul Lakkireddy , Hemant Agrawal , Sachin Saxena , Simei Su , Wenjun Wu , Gagandeep Singh , John Daley , Hyong Youb Kim , Gaetan Rivet , Qi Zhang , Xiao Wang , Jie Hai , Yisen Zhuang , Jingjing Wu , Qiming Yang , Junfeng Guo , Andrew Boyer , Long Li , Matan Azrad , Viacheslav Ovsiienko , Dariusz Sosnowski , Ori Kam , Suanming Mou , Zyta Szpak , Liron Himi , Chaoyong He , Jiawen Wu , Harman Kalra , Devendra Singh Rawat , Alok Prasad , Andrew Rybchenko , Jerin Jacob , Maciej Czekaj , Jian Wang , Jochen Behrens , Thomas Monjalon Cc: dev@dpdk.org, ciara.power@intel.com References: <20231212143722.1803259-1-venkatx.sivaramakrishnan@intel.com> <20240201155021.2388269-1-venkatx.sivaramakrishnan@intel.com> <20240201155021.2388269-2-venkatx.sivaramakrishnan@intel.com> 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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CCOgEk+mJ/JBjzcJGuYn6+Iy/ApMw/vqiLGL1UWekcTA g18mREHqIR+A3ZvypIufSFB52oIs1zD/uh/MgmL62bY/Cw6M2SxiVxLRsav9TNkF6ZaNQCgn GqifliCEMvEuLZRBOZSYH2A/PfwjYW0Ss0Gyfywmb2IA990gcQsXxuCLG7pAbWaeYazoYYEQ NYmWatZNMAs68ERI2zvrVxdJ/fBWAllIEd0uQ4P05GtAHPdTIDQYp545+TPV7oyF0LfXcsQs SFVZE6igdvkjfYmh+QOrHGZvpWXLTmffVf/AQ81wspzbfxJ7sYM4P8Mg5kKOsaoUdyA/2qVe cMh1CLUHXF1GlofpGbe1lj4KUJVse5g3qwV7i9VrseA8c4VIZewdIjkzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240201155021.2388269-2-venkatx.sivaramakrishnan@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO6P123CA0020.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:313::8) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|PH0PR12MB8822:EE_ X-MS-Office365-Filtering-Correlation-Id: 45d1c073-3948-4f37-670f-08dc2379dc91 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WZplLqKuoky+Go8TTrQUICNft+WMZnL+Gj/jRhYCUlr2ckmSVbLDy39kTYMWgVPoIzX5/kApxpbp4qz+4octu8tpGq2jQtgd7ptFW8w9zP9yjR6X/noKTh60WaFm1JUxddwpqzijhp+H+e7sB140Priu4x32ER8uqtExaXYKRb1d9/Ytng5BpZ2rR/wzKF96iqo+cKToHcNoPAOT4HQ8sz3veSo09TMwnnon2kOkgzINGRH5VaJvtS9QqCa3AoAYc2d+F8KKt21CS1SZo2ZiMAz/CJfy68+fa5yr79FFoIzKfEcCerHU/Hz6azsrzY7ZUMUSnn5ro0wIlahIOUrV8/MN2bn43+eMHFq6cNICeXTtTFEmDoAkiVUEx5I3K1UcoXEYGDrD4YwzSl7Jjl6/lTXe3wL2d1djJyHmaSH8kPQCzAHxfrGUrTu79Lu0JoGQCV3OwnuxVHMrC1UmzQlbZ95irC+D9ZP5rNxvd9Yj1KQYU7HnhcW5B+z0qa1EiygD7hGPpt8KxAV7KqAV9jJn5bo5Lvu8Mxpn68+Rhnk0Z9VAfxsD76opFl0xXVfPm66pDLFe5QbN3xhOmH1W0U+gmh1dGF4O+i41txOI8X+U2DJbfZDrquB/mbtfv2cWELnopFv3GHeUVt4crQSORrxEkrpVytLssn6cmwTD2Vv5/JQ= 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)(346002)(376002)(396003)(136003)(366004)(39860400002)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(31686004)(2906002)(7416002)(7406005)(5660300002)(83380400001)(921011)(44832011)(4326008)(8936002)(8676002)(66946007)(31696002)(2616005)(316002)(6506007)(66476007)(66556008)(6512007)(110136005)(478600001)(6666004)(53546011)(86362001)(38100700002)(26005)(41300700001)(36756003)(6486002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YnRNNDUvL0dCU2xKQm40dlBFaitOZUNjeFloRHF5clRtbWRJaDRhVm5DWk1Y?= =?utf-8?B?OFR6MGNLRnFuZHA5aFN0TU5Xd08xMFFmc2FRSWx6Mk9HTUJPR0paeEpzOEtL?= =?utf-8?B?bzk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SktZc1IrejBo?= =?utf-8?B?c1A1RURTSjdkWEtoaFB2cGMzVTFvQjIzYy9NNXJmOGRZUW0yRFZPNW5VZ2VD?= =?utf-8?B?L016V21DQkdqMFlzRkFHUGROWmsvN0psYXNudjRreUJrdE9wRGxlRUNwUHVi?= =?utf-8?B?b3BzS0FocGx4bXRPQWVCaEQ1a0kyQlBGMjFFT1M5Nk9FSWRyU3lYZVlYZ2g5?= =?utf-8?Q?8M1ZC/BqLKJF9SSBF1cmCMDDM?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45d1c073-3948-4f37-670f-08dc2379dc91 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2024 23:02:28.0660 (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: FE/XsfRmlhotnfQ0kZT6QmGhgqBCqZOvqSIHX3djeCDXYSS17u6teyosJHKPdpk9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8822 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 3:50 PM, Sivaramakrishnan Venkat wrote: > Missing "RTE_PTYPE_UNKNOWN" ptype causes buffer overflow. > Enhance code such that the dev_supported_ptypes_get() > function pointer now returns the number of elements to > eliminate the need for "RTE_PTYPE_UNKNOWN" as the last item. > This patch also updates 'buffer_split_supported_hdr_ptypes_get()' dev_ops, for 'rte_eth_buffer_split_get_supported_hdr_ptypes()' etdev API. This wasn't initially intendent but since API behaviour is not impacted, I think there is no problem on extending this improvement to this dev_ops too. Only better to mention from it in the commit log, I will update it while merging. > Signed-off-by: Sivaramakrishnan Venkat > Reviewed-by: Ferruh Yigit <...> > @@ -411,9 +408,9 @@ nicvf_dev_supported_ptypes_get(struct rte_eth_dev *dev) > copied += sizeof(ptypes_tunnel); > } > > - memcpy((char *)ptypes + copied, &ptypes_end, sizeof(ptypes_end)); > > /* All Ptypes are supported in all Rx functions. */ > + *no_of_elements = copied / sizeof(uint32_t); > updating as 'sizeof(ptypes[0])' while merging.