From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4 06/16] ethdev: remove C99 flexible arrays from flow API Date: Tue, 17 Apr 2018 22:18:22 +0200 Message-ID: <6000733.QRpK3ykViv@xps> References: <20180410162022.9101-1-adrien.mazarguil@6wind.com> <20180416150525.2817-1-adrien.mazarguil@6wind.com> <20180416150525.2817-7-adrien.mazarguil@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Ferruh Yigit To: Adrien Mazarguil Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 50E7FA499 for ; Tue, 17 Apr 2018 22:18:25 +0200 (CEST) In-Reply-To: <20180416150525.2817-7-adrien.mazarguil@6wind.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" 16/04/2018 18:22, Adrien Mazarguil: > This patch replaces C99-style flexible arrays in struct rte_flow_action_rss > and struct rte_flow_item_raw with standard pointers to the same data. > > They proved difficult to use in the field (e.g. no possibility of static > initialization) and unsuitable for C++ applications. > > Affected PMDs and examples are updated accordingly. > > This breaks ABI compatibility for the following public functions: > > - rte_flow_copy() > - rte_flow_create() > - rte_flow_query() > - rte_flow_validate() > > Signed-off-by: Adrien Mazarguil > --- > app/test-pmd/cmdline_flow.c | 117 +++++++++++++++++--------------- > app/test-pmd/config.c | 25 ++++--- > doc/guides/prog_guide/rte_flow.rst | 18 ++--- > drivers/net/mlx4/mlx4_flow.c | 22 +++--- > drivers/net/mlx5/mlx5_flow.c | 20 +++--- > examples/ipsec-secgw/ipsec.c | 17 ++--- > lib/librte_ether/rte_flow.c | 25 ++++--- > lib/librte_ether/rte_flow.h | 8 ++- > 8 files changed, 135 insertions(+), 117 deletions(-) There are almost as much insertions as deletions. So it's probably not a bad move. Acked-by: Thomas Monjalon