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 B30EC43A15; Wed, 31 Jan 2024 04:23:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C82A40E96; Wed, 31 Jan 2024 04:23:08 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2082.outbound.protection.outlook.com [40.107.96.82]) by mails.dpdk.org (Postfix) with ESMTP id D79AE40E68 for ; Wed, 31 Jan 2024 04:23:06 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RxhQlj+Mu8Uuexn+8y8s5SK+JwJd1NiL0e4NtEfbqE72obL9BgXiz9GmsNeFFHKZXqf0ujN77kQqv4YYsUDGaZsFZ4rvotpTJ9G+8lsDL2K4zxqJvcu/+DJbmG+buRTXBnlrLmY6d00G6YzVkLsnpIrRYT0J3ERQTlYBOHQla8MNAvwhP+SuS6JVp3f9eiTT+m1UpB6PlrQ2ua6CVMK206EivqFk6mUVx2/yXVDCNT0LT1hGA4Dr0GhuzHTgomU+9CB8FRUeeFnf5LFgOxj5uAqtarjh3nMZmJvGJ/N7NtqNwFinALLYeegL2wvAmGd5YoYORvDn42yspg8KeS4IrA== 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=QCUuXT26fKBcQLpHYiu0wz/oUSheSlABFXtKHdz9yEs=; b=kS53OYbWIXqtcPdQswLS4d13Ofz3I9Kn8GJEK8PNR14OUrJte3zLuASnMai4SdcHuUf9FTLmfXBqxXk4z7lgXY0/WurbHdTeq+Oy3/5NitBC+laVqW+A0rFMxOOCTTRXU89POGI/YRpa+BtH4ZNYUjWK5Th+D/sg7+iQzJm5r5FdTYWjUMqPiVxIy8WVsb7Gjwe+EmK3Moe3Qk+mokIjs5M/cOfWiAqw6fbpkIGIFxxPs00kNEEaPQ6KH/3lZjJC+JKBGE4HHPODXtNw+ime4+0CE+vSLA5c00I9zQonIL11ialvlGzhqomWImbpSC/GaXRUAWmCEAc7Ui6nvliESQ== 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=QCUuXT26fKBcQLpHYiu0wz/oUSheSlABFXtKHdz9yEs=; b=kcelcK/RFeZsqiskk25or2FpLDZNsNM6fkkyXCLtaJWB1pFQ84AkgvSmWFMVNvdC+bl3/vtn+i+jehqattJUMzY9VL/pEi5xbz7j+PEc9UADOc3267alMbRpGCUClA/k4cRViLC7mAywUU2HNPebWRHugMjhzzFP1Ue4BtFkwR0= 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 SJ2PR12MB8160.namprd12.prod.outlook.com (2603:10b6:a03:4af::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.23; Wed, 31 Jan 2024 03:23:02 +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.7249.023; Wed, 31 Jan 2024 03:23:02 +0000 Message-ID: <6b52b19e-d13b-4bcb-a941-43e83cffe12d@amd.com> Date: Wed, 31 Jan 2024 03:22:53 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 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> <20240125160740.1953809-1-venkatx.sivaramakrishnan@intel.com> <20240125160740.1953809-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 N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sKp1maZArGeu+6FuW honeosIrWS98QJmscEhP8ooyJkLDCCOgEk+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: <20240125160740.1953809-2-venkatx.sivaramakrishnan@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0677.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:351::20) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SJ2PR12MB8160:EE_ X-MS-Office365-Filtering-Correlation-Id: 336cd7c4-092d-40a2-6021-08dc220bee9f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bxG2B4xY2Tt5+uRovEJkD0IGsduEdHfjhvExGKKg69uiG10iEgfdBAY9KSRf8m9lJKgDc9q8ILW2o3+sdeId2ggvNoqNkWd/GzJdRakOZVFLqePOd4t8SrASdYfKh0WLDzI3agtQqNY01Q7jrsfsBrZ6aA00/1kRVuu+OJPsv1C0/Va4V6mVY/yFu7HpdRKPfim1CVYfjwoC6yGbu9Lr8hpMtDgVu1jsGD61bs/so2fLFpwsgxWGaU0D2V6sonpmNw7z3pLgE0Ibp+zRY+REuc7sWYaFq4X0uFKsYdUCl0ie0FRAPY0aojyaugrvDE1EF0DcICvrKBG3XBNkIDNmx16gDItacGDONg0kuNLRvFrQCy7EKLAkGjlQ7OoCYiNXCwVX0gjqj/ZI8Z2coR7rmyd6zlHGdPOz8245MtTc0IPofuu+vO0JXHmbPrGS7W+jK94WgNjV2VyBfD6bE21a4j1x4vhz3swGJvOY9tbe0+8nR9IkYcDLD0UTx79+v9J712UWll342QHWSe//nR/5j2AVaxDI5FM2EZS+5zaMEnQqU0TeBS0uBujO6tYEtPHKRAhDXIl4pZ84WW1VxC9BFRBoLp3RZ77N3u47K2pblck7R3koM6uxlVN1rl+Tck3P7ClLWFSgvpNCNf/LhIKo2O0zCsbpULnPnTpvgELmiW8= 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)(366004)(396003)(39860400002)(376002)(346002)(136003)(230922051799003)(64100799003)(186009)(1800799012)(451199024)(41300700001)(8676002)(4326008)(8936002)(44832011)(2906002)(7406005)(7416002)(5660300002)(31696002)(86362001)(110136005)(66946007)(66556008)(66476007)(316002)(36756003)(38100700002)(53546011)(6506007)(6512007)(478600001)(6486002)(6666004)(26005)(2616005)(921011)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RTZCQzFrZ1hMeVI5eXZlc1JWcTNSdU9LeFdMNytwQmorajNBRGovdnNWdGE3?= =?utf-8?B?TFVHZEo1dlJyQ1pHMHpQQ2xLZ2VOTS8zTkdRclAwN3Z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U2daZVpTalFVM1RmV29CazdwMmsveDZ5U2dRa2V2a0k2TUpjMUxxcDdt?= =?utf-8?B?N1BaS05vb2NnMlFjaGQraXFaRmgzM1VBTnZSTmVyeEgzMjBIc3BkVklmM0lr?= =?utf-8?B?VWxIcXBUWWFVWFBnNVhrNzVKWWtWbXc5V2ZiTzM4Ym53dDVXWTZWSzcyZVFs?= =?utf-8?B?c3J4U2lndjVoTWF5cXYvSkFqSVM2OUthVDU2c05KZS9seWFZYjZDOFZJK3Fy?= =?utf-8?Q?yM+ruZ6hktMS7j8f3ro30kAVU?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 336cd7c4-092d-40a2-6021-08dc220bee9f X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2024 03:23:02.5771 (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: rjlmfruk6PtRSNie7L2K+xyf1NTIt5EK+e3Ee+/HpEg8VJ5h2PiOPYq157JWLWgg X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8160 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 1/25/2024 4:07 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. > > Signed-off-by: Sivaramakrishnan Venkat > <...> > @@ -93,7 +93,7 @@ static void axgbe_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id, > struct rte_eth_rxq_info *qinfo); > static void axgbe_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id, > struct rte_eth_txq_info *qinfo); > -const uint32_t *axgbe_dev_supported_ptypes_get(struct rte_eth_dev *dev); > +const uint32_t *axgbe_dev_supported_ptypes_get(struct rte_eth_dev *dev, size_t *no_of_elements); > I asked to join lines, but it was for the instance overall line length less than 80 chars, please break the parameter to next line if it is long. And when breaking please follow the syntax in that driver, some align the parameter to previous paramter, some uses double/triple tabs. <...> > diff --git a/drivers/net/ngbe/ngbe_ptypes.c b/drivers/net/ngbe/ngbe_ptypes.c > index 33f20e9247..57817e9af1 100644 > --- a/drivers/net/ngbe/ngbe_ptypes.c > +++ b/drivers/net/ngbe/ngbe_ptypes.c > @@ -92,7 +92,7 @@ static u32 ngbe_ptype_lookup[NGBE_PTID_MAX] __rte_cache_aligned = { > TPTE(0xCD, ETHER, IPV6, NONE, IP, NONE, IPV6, SCTP), > }; > > -u32 *ngbe_get_supported_ptypes(void) > +u32 *ngbe_get_supported_ptypes(size_t *no_of_elements) > { > static u32 ptypes[] = { > /* For non-vec functions, > @@ -110,10 +110,10 @@ u32 *ngbe_get_supported_ptypes(void) > RTE_PTYPE_INNER_L3_IPV6, > RTE_PTYPE_INNER_L3_IPV6_EXT, > RTE_PTYPE_INNER_L4_TCP, > - RTE_PTYPE_INNER_L4_UDP, > - RTE_PTYPE_UNKNOWN > + RTE_PTYPE_INNER_L4_UDP > Please keep the terminating ',' <...> > diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c > index 5a0c3dc4a6..22de4ad13a 100644 > --- a/drivers/net/thunderx/nicvf_ethdev.c > +++ b/drivers/net/thunderx/nicvf_ethdev.c > @@ -379,7 +379,7 @@ nicvf_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) > } > > static const uint32_t * > -nicvf_dev_supported_ptypes_get(struct rte_eth_dev *dev) > +nicvf_dev_supported_ptypes_get(struct rte_eth_dev *dev, size_t *no_of_elements) > { > size_t copied; > static uint32_t ptypes[32]; > @@ -392,16 +392,13 @@ nicvf_dev_supported_ptypes_get(struct rte_eth_dev *dev) > RTE_PTYPE_L4_TCP, > RTE_PTYPE_L4_UDP, > RTE_PTYPE_L4_FRAG, > - RTE_PTYPE_UNKNOWN > }; > static const uint32_t ptypes_tunnel[] = { > RTE_PTYPE_TUNNEL_GRE, > RTE_PTYPE_TUNNEL_GENEVE, > RTE_PTYPE_TUNNEL_VXLAN, > RTE_PTYPE_TUNNEL_NVGRE, > - RTE_PTYPE_UNKNOWN > }; > - static const uint32_t ptypes_end = RTE_PTYPE_UNKNOWN; > > copied = sizeof(ptypes_common); > memcpy(ptypes, ptypes_common, copied); > @@ -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 = RTE_DIM(ptypes); > I think this is wrong, won't above always result '32', you should use 'copied' instead.