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 5AC2343B67; Wed, 6 Mar 2024 21:54:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C54542EBE; Wed, 6 Mar 2024 21:54:07 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by mails.dpdk.org (Postfix) with ESMTP id DD4A442E7A for ; Wed, 6 Mar 2024 21:54:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709758446; x=1741294446; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=OsUj9yaB3fm1a8ncv9nl0F3fiMvsPd4swsaqLzxBbzQ=; b=lfFMh8l1LXLjYEf0cNn7Xo9ECRbXVKjspUq9pcXuXycJeWwBm3dcIQVe aDjRQ2SO7mTFbA7Z2YTOPII159B+G/RNqONsJaS8v3BeJuKUBdim24nfm x5476rJVplzc/qNr5rx76QTfNVfo0SyAVIlev0vJnqy9Dn77b2CPmH5Zl IjlDpHmDqwtl90HxEgWOgudMB9ZMtLRKCtnufFkxgZYEaC5AgbXrhyNW+ 4riGay2VDbvlG8Kjh28DIddG5pADQbfpUWOpcPpMwCY07DD+zC4qSvDua ZXtEmg2cVgNXhkaC3YY0zEK1Rog2FIWkxGkbeZb9uHIdD8mE1GWBISCle g==; X-IronPort-AV: E=McAfee;i="6600,9927,11005"; a="15836002" X-IronPort-AV: E=Sophos;i="6.06,209,1705392000"; d="scan'208";a="15836002" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2024 12:54:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,209,1705392000"; d="scan'208";a="10294890" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 06 Mar 2024 12:54:05 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 6 Mar 2024 12:54:04 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 6 Mar 2024 12:54:04 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Wed, 6 Mar 2024 12:54:04 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 6 Mar 2024 12:54:03 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hUyVRIn2AKI1cVEolo8c3g2Ds4P0efW1JQodt4tfztISPjqMptIHGM8DVprn17dBkRQGwxeZv4cdl9Up2G6yl89q1TtQzLELDa7MMeB4JjHA+9aMZf4ETxcfKMwQqRHWWY6D07rWmuR2TSAB5W3Hf0CC8au1DBGfm59NeY4gcNY0YZ6btuU5RKym+tuYZvJwmOHAJiHBS8OA5fzUhK6DAxz0Eh+LQGVphMeCPcTg0nMs5MR9kqmwW70603jxH4PoRmyN4zc1MRkxWwHRZvibl/Zk5moERZ0EqvJkZXGjT0zqD+k7E4pdPV0pHJV0KXhwgDSKh4zO+e/7uC/AZCt2zw== 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=1H7HTD/Fijtl1L689vFxzqNunHgerARSZc/fd1n7ZWY=; b=W7VnWZe8RWNO0WquhWKqQKS70xxrSGRe0Pdwza532LyOZGPblf8xwf9vqL6ixUNUSsr5CKm8zqiGZcgT5UinL6rSLbD7I/bCT0WQRw7f5nrbWtk/lvLD5WNr1jq24Yn3RuVfHn85oEjs8B2wcoMbkA7cnNSOnwZs8OWue8lfWMd2diIamAXz1beacUb2Dl/RI9bqKLjDbyKF3s2TGx+tbRcMhZe24P9tRyQ6tSFbJr+ODyBAU/kljgX4ZQ41E6AtQctY7LDluGdkxO6RtIZIgqbGkvByKj3mSWajPx5dTkNqif06+uCzUTI5C5OEzQ+T+H88NzSHMLMWuKD5tG0AQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ0PR11MB5772.namprd11.prod.outlook.com (2603:10b6:a03:422::8) by SA1PR11MB6896.namprd11.prod.outlook.com (2603:10b6:806:2bd::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.24; Wed, 6 Mar 2024 20:54:01 +0000 Received: from SJ0PR11MB5772.namprd11.prod.outlook.com ([fe80::efb3:f2f6:caf5:9edc]) by SJ0PR11MB5772.namprd11.prod.outlook.com ([fe80::efb3:f2f6:caf5:9edc%4]) with mapi id 15.20.7362.019; Wed, 6 Mar 2024 20:54:01 +0000 Message-ID: <535b7f22-6013-406f-ad1d-b58c6f6c945e@intel.com> Date: Wed, 6 Mar 2024 20:53:59 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 5/6] lpm: replace zero length array with flex array Content-Language: en-US To: Tyler Retzlaff , CC: Bruce Richardson , Cristian Dumitrescu , Honnappa Nagarahalli , Sameh Gobriel , Yipeng Wang , , References: <1706134657-17446-1-git-send-email-roretzla@linux.microsoft.com> <1709756036-24068-1-git-send-email-roretzla@linux.microsoft.com> <1709756036-24068-6-git-send-email-roretzla@linux.microsoft.com> From: "Medvedkin, Vladimir" In-Reply-To: <1709756036-24068-6-git-send-email-roretzla@linux.microsoft.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DU2PR04CA0053.eurprd04.prod.outlook.com (2603:10a6:10:234::28) To SJ0PR11MB5772.namprd11.prod.outlook.com (2603:10b6:a03:422::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR11MB5772:EE_|SA1PR11MB6896:EE_ X-MS-Office365-Filtering-Correlation-Id: d084717f-1507-4829-b202-08dc3e1f8cce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HjE97Kf7TOrjhX6pt80Wgaj1atbysXz+HHFwBSV5iYyy8M+5dhzRIU5elozaAiynuwsAAV4qwcLg7iQEeTFihCTMWqZbbqhSrNXfHGLmT4jzz+r4oFmIu0eHhUIbT9HKzYYIagELFE/NS8DQopl7Q7GtsaERDRHD+UMwfeugps5JPUBxfrdIrP7Zqs90ZoLWTvNhkrLenKOB/zV/LFAsYy/GqcjFSoxUdmf/8XzxpCuMRvW+mXczs01vx5wTMVZYwK+BxYGT15IB+1sEC//IrbMKNCk5ukwdcmaj6FF99Jhp8vwRquQdKhacjTU9JiLbWSOBxEgV3ovLoyJ+utJU6SNrlAGx2J4uizJU+UxHGS8UgwlmU9RGzFt6h2T77bNrBJwxuUAiwq1E8ATvcofS9JDi1+kuLCa1qUepIsmMYa0oKYy7TiISv0nRfHb4CLrCLMzUwyrmpNK/7vANIpnGPQLHIOnPZCH3KZeMP6gx2bkjBWCQ2eOHjawh8jo3HxYnhvW3iCpiroKTHmJIYYBrYfXlra6fHhzHITmI6IE27IJt+SHRLXDgiqC8FJpnl6iyoRsnVZPPrKeScaeIm9dLGhIrJo98KG0xV93ZP4PJA2hly1y+9bCwaWG+z/Nf3VmKW3XC6YS2Y7HNovlUlu9Ua6/yzo6yd0GUFlNRfBc5jd0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR11MB5772.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TkFqN0RxOFUraU8xaGdPTXN1SGNGM0pMWjZpa0lHT1FUS1VJUmhqdEhTTm1B?= =?utf-8?B?R3RQOWhlWElyWTR1Nzh6VndvaG1NVStKaXF3TU1ubzNXSEZnbWFqTlV6bS8w?= =?utf-8?B?WFZoUzNuREZZMGt5M0hBZ2tnRkY3Ti91bWVpQ2RoQzFkdVMzTFlKRE9PVWZ2?= =?utf-8?B?SjFaNFZRYWRheHp3b0N1dDRzdUthUnRIT2VhaUVoUUszRDRyYkRTYVZWWjk1?= =?utf-8?B?Tlk1cklkKzVXMitha0JqVmdPNUdLZTJ5alE4N25rbUlpeTVLQXdWcDVhZDJG?= =?utf-8?B?NXFyd0J2RVB3TzNsT3pxdDQyQmExQjNDREloanRwR1BORkdEMWxTRDdIbnpv?= =?utf-8?B?SmMxQkw0bmpsYWszdXlyK0I0NDJYOHc0UXpJU295d2d5QXdkTFFsNStnRDc0?= =?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Exchange-CrossTenant-Network-Message-Id: d084717f-1507-4829-b202-08dc3e1f8cce X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5772.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2024 20:54:01.0189 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: C3prSfjSJv267xrE0a5Gx4Q3NfSv8QisAMuu73PShKVIGiM6APLTAU2dpSfGRUIM96kPqOq38JF93zUO8LpJFxCXaDOrVMgNz310RairLvI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB6896 X-OriginatorOrg: intel.com 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 Acked-by: Vladimir Medvedkin On 06/03/2024 20:13, Tyler Retzlaff wrote: > Zero length arrays are GNU extension. Replace with > standard flex array. > > Signed-off-by: Tyler Retzlaff > Reviewed-by: Morten Brørup > --- > lib/lpm/rte_lpm6.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/lpm/rte_lpm6.c b/lib/lpm/rte_lpm6.c > index 46d8f71..5cc1bb2 100644 > --- a/lib/lpm/rte_lpm6.c > +++ b/lib/lpm/rte_lpm6.c > @@ -107,7 +107,7 @@ struct rte_lpm6 { > > struct rte_lpm_tbl8_hdr *tbl8_hdrs; /* array of tbl8 headers */ > > - alignas(RTE_CACHE_LINE_SIZE) struct rte_lpm6_tbl_entry tbl8[0]; > + alignas(RTE_CACHE_LINE_SIZE) struct rte_lpm6_tbl_entry tbl8[]; > /**< LPM tbl8 table. */ > }; > -- Regards, Vladimir