From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 4/4] ethdev: Add metadata flow and action items support Date: Fri, 06 Apr 2018 17:57:23 +0200 Message-ID: <1688530.7oQI8JUYAQ@xps> References: <20180405135148.16388-1-declan.doherty@intel.com> <2392634.y0Dprd7BRi@xps> <90f813f1-6306-e6ed-26ea-4f0931bdebaf@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Declan Doherty , dev@dpdk.org, Alex Rosenbaum , Ferruh Yigit , Shahaf Shuler , Qi Zhang , Alejandro Lucero , Andrew Rybchenko , Remy Horton , John McNamara , Rony Efraim , Jingjing Wu , Wenzhuo Lu , Yuanhan Liu , Bruce Richardson To: Mohammad Abdul Awal Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id C09601D28D for ; Fri, 6 Apr 2018 17:57:25 +0200 (CEST) In-Reply-To: <90f813f1-6306-e6ed-26ea-4f0931bdebaf@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 06/04/2018 15:47, Mohammad Abdul Awal: > > On 05/04/2018 17:49, Thomas Monjalon wrote: > > 05/04/2018 15:51, Declan Doherty: > >> +struct rte_flow_item_metadata { > >> + uint32_t id; /**< field identifier */ > >> + uint32_t size; /**< field size */ > >> + uint8_t bytes[]; /**< field value */ > >> +}; > > Spotted C99 syntax of flexible array. > > Are we OK with all supported compilers? > > > Used "uint8_t *bytes;" instead of "uint8_t bytes[];" Why this change? It is changing the size of the structure, isn't it?