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 B9903439A6; Tue, 23 Jan 2024 10:44:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A6BE840E68; Tue, 23 Jan 2024 10:44:08 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id CC73240E54 for ; Tue, 23 Jan 2024 10:44:07 +0100 (CET) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 56F885C02BD; Tue, 23 Jan 2024 04:44:07 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 23 Jan 2024 04:44:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1706003047; x=1706089447; bh=81FUD5GMESLdKWTqZ2f6ma6dJ4vLRkeAz0JlX2TMH68=; b= KivGwGJZI+2SDl1GZnDiAwh7Bl6F7cZJR4JMGQ549BgRgRls5Cr8Sk8BkkyHOZEe TjBIRMtUSjw/CS7ENki9a+JsGA4YrwKA4HNTjgAvO4cHfI59Ndhgrk4WqRtNy88c 1ww5A09rm6M3CuI42qc5+x16vMQJtaedgI3fph8ayJbYDTd+8yxz0rlKIXewor6w Mryj6IS4nk5cRKzDJ/d/xDAgnOQK5GGk5/2r+yg7LT1HWzaa10QyoCtIY7+aLI9s LdhpBGnFYS+Q/dt6WJlXtIpP0WpuB0BM+oH9QvDl1s1m2nvnhQpqpZhkz3YgJC5v 2YGtYZtLkvT0jFbV+nS1+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706003047; x= 1706089447; bh=81FUD5GMESLdKWTqZ2f6ma6dJ4vLRkeAz0JlX2TMH68=; b=s jmhFSY9BDBXT0FAl2m3n6V1uC9saNY7DrCki58zQQosHMH3mN8MsqZsI/Kvh3Ohv wzZIzFFGCsfu69EK7Qr/kg9EQRgJPPP14MqagBtX2/O/fVUW8sKJKwqtScIAe4TU 9wky2ryfA99TvLnpxNsaaMTsdYt1iwRt9c5Rzggeh1w9sf3CGkevJUSSmf8lhFc6 W5KzUiBE5pGrbJT1N7ZazbOHNHBzhvZChpOWKSLwRNNiBFT7CIesdeNO5Cz6e+RE ga3PKexiexuoUpxMbn3/zS695iKv2pMGjiB5ntPutZ+D3zwtrqbjYczXTZlTCe1l q9qQ+wSIRcBd1PJMneQSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekkedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedtjeeiieefhedtfffgvdelteeufeefheeujefgueetfedttdei kefgkeduhedtgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Jan 2024 04:44:06 -0500 (EST) From: Thomas Monjalon To: Dariusz Sosnowski , Stephen Hemminger Cc: dev@dpdk.org, Tyler Retzlaff , Viacheslav Ovsiienko , Ori Kam , Suanming Mou , Matan Azrad Subject: Re: [PATCH v5 07/10] net/mlx5: replace zero length array with flex array Date: Tue, 23 Jan 2024 10:44:04 +0100 Message-ID: <1758963.QkHrqEjB74@thomas> In-Reply-To: <20231129024221.57653-8-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231129024221.57653-1-stephen@networkplumber.org> <20231129024221.57653-8-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 29/11/2023 03:39, Stephen Hemminger: > --- a/drivers/net/mlx5/mlx5_tx.h > +++ b/drivers/net/mlx5/mlx5_tx.h > @@ -171,11 +171,12 @@ struct mlx5_txq_data { > struct mlx5_txq_stats stats; /* TX queue counters. */ > struct mlx5_txq_stats stats_reset; /* stats on last reset. */ > struct mlx5_uar_data uar_data; > - struct rte_mbuf *elts[0]; > + struct rte_mbuf *elts[]; > /* Storage for queued packets, must be the last field. */ > } __rte_cache_aligned; > > /* TX queue control descriptor. */ > +__extension__ > struct mlx5_txq_ctrl { struct mlx5_txq_data is included at the end of struct mlx5_txq_ctrl I don't understand why we need to declare an extension here.