From patchwork Fri Nov 17 16:18:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134457 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D46E543355; Fri, 17 Nov 2023 17:21:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1BDF942830; Fri, 17 Nov 2023 17:21:00 +0100 (CET) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id 02B6642670 for ; Fri, 17 Nov 2023 17:20:55 +0100 (CET) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1cc29f39e7aso16959475ad.0 for ; Fri, 17 Nov 2023 08:20:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238054; x=1700842854; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+RIkijSvF4hNTPNUihSrigAotEHCXmQgjpgfk7u1xlE=; b=sSMhvL7Pi3lYP1ImMlwMbPOdQ53KPtd3Icm5LxuEThR9LaV/VQUSx5jg7gTklD2AwL O7Jw3erhUIDfwt+ZHzBiutylyd/mSLVJdg63o3vw4XXZafTgv5l8nrTOxZ4GkdZ/KJVk GzKXixf3xwS048/SkG/N5s9eJxzzf1Qm0Dy+kMjHAYG/RsQf5Jx4pYJm3ilx+tGean08 Wnc+hMbEoB3mGpSAAMMVFCkArReUw7/vcA0N9yOAuvCD2VRmKqvKRu6JirhM3jaCcmgG GOdL91P9G6KABz3Kv0LoGJz8w/VA/I3WjpaPeqAuscHC/6rJVlAlXq7sgcD3b5tH0LS6 TbqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238054; x=1700842854; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+RIkijSvF4hNTPNUihSrigAotEHCXmQgjpgfk7u1xlE=; b=GsW61/5R7AoIe9HBMEZC/YRk5wJ2SJNc4v7GBYMG66kky/6JYiYFEm0EtX6W9Wsnma QaDpagLUjc27P1hviHGmw2w2sTJgQcwiyYjFXcA48+Q4wc82IFqPc7TCgNvjlV81HuTw i8b21rsyVNmCrmW0whZObzxaxUs/Az3Vy3XmB6HYUXTl6ktmaMfRizWHaTPosRWlQM/z qzPO/fetoAfFmYAmVGah6R1VWo/UiQcXJaWwklx1LdpN6bX0a8S23uxF2mDrivKFg6i3 41vAt/aFq0YR3lFzHkQbUYqgbHHt+1pIwqkawB5qn40RNlnPAGPLt7GuZx45jUxAfdHQ bpqA== X-Gm-Message-State: AOJu0Yz0Q2qoXx1g0xgB2OUNLL7lWP75kprG0gMX0yh2gkI5kJ/IZ//D fvNKwCD7XWSAuTcIOP1nVpGEFwF13SO/NO9Ug51LnQ== X-Google-Smtp-Source: AGHT+IFPEqUzcchSHz9/lCeaa1sH3lAK304a9CXRExeY1qi68hLkSk2NTMbdKs+o/JqEAwFIWMV8iw== X-Received: by 2002:a17:903:32c3:b0:1cc:453f:517b with SMTP id i3-20020a17090332c300b001cc453f517bmr131553plr.0.1700238053937; Fri, 17 Nov 2023 08:20:53 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id q15-20020a17090311cf00b001c61df93afdsm1564759plh.59.2023.11.17.08.20.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:53 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Cristian Dumitrescu Subject: [PATCH v3 04/10] pipeline: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:30 -0800 Message-ID: <20231117162040.241466-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117162040.241466-1-stephen@networkplumber.org> References: <20231111172153.57461-1-stephen@networkplumber.org> <20231117162040.241466-1-stephen@networkplumber.org> MIME-Version: 1.0 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 Zero length arrays are GNU extension. Replace with standard flex array. Signed-off-by: Stephen Hemminger Reviewed-by: Tyler Retzlaff --- lib/pipeline/rte_swx_pipeline_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pipeline/rte_swx_pipeline_internal.h b/lib/pipeline/rte_swx_pipeline_internal.h index a67b6e965de7..8ec12263b989 100644 --- a/lib/pipeline/rte_swx_pipeline_internal.h +++ b/lib/pipeline/rte_swx_pipeline_internal.h @@ -213,7 +213,7 @@ TAILQ_HEAD(rss_tailq, rss); struct rss_runtime { uint32_t key_size; /* key size in bytes. */ - uint8_t key[0]; /* key. */ + uint8_t key[]; /* key. */ }; /*