From patchwork Fri Nov 17 04:03:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134438 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 D12E34334C; Fri, 17 Nov 2023 05:05:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 65D4840A7D; Fri, 17 Nov 2023 05:04:50 +0100 (CET) Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) by mails.dpdk.org (Postfix) with ESMTP id 4EE5940A6B for ; Fri, 17 Nov 2023 05:04:47 +0100 (CET) Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-5842c251d7cso816241eaf.1 for ; Thu, 16 Nov 2023 20:04:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193886; x=1700798686; 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=ZVeHOz0tireJQZJ6DENmAzwLLGeJ1occjUJSktEbSvI=; b=WzclLoWAy21zFGJwGMaewuk60QlaRfnCdpZPTSos75L/4HE8Msydo4M1AN1UxW40Ee OOQW7wuPBKceczSSlUbhf6x374ErtiNz/P+lVtlSYQe2fugJAOVpNLOWfSdNfaLl18qz nSFprsxkrcfNcDhq8ut4vQnu+JfzJCe7w6HDhxkjq7lUu05LAM7Da4iPxkNZ3xUWUqh8 sKnCg4P/0+ky5wK0pOKBag06mZZGvtZD5W4ZEAUoyRmMJqjJ3tqKcq1JQ3UxKlXhkESK km9fznQfVGmscnGk7yjWXMuSgQj6zw3dTwORYZjpbscbe+D2C1SIxvJU58yPz6qwwHq5 N/8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193886; x=1700798686; 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=ZVeHOz0tireJQZJ6DENmAzwLLGeJ1occjUJSktEbSvI=; b=aH+DvVpa1js1OW1WNYbWny1V7UsnoxZRRG5WD0cIWXb166cYikHjcRmMnUvbqR8rPK bw+BaHF58wQrIwZ+3B1D5csgVdDibqX/oW8X/+Pv/fgI7hd8Sqv/KiAR6GJXtF8YgNA/ 0K7tPvvnSm7pT87ozeLufuBeWmnGlRqP4dc+qrCnLq2koI5//e6nZfMblOvNz6sdev/S Jwq2kTllNPB/RjmP/2aVwyMJEqjA9q5ZBH4S5LRNLNusvctXx8ruqvvEIxD8k/4zhU4T LJe5VaiH0CufpIebDXorUWUlyWRlXDr8anHZXkWzZndnK7YFNN8aQXxKfJo8cCGG+aEB f59Q== X-Gm-Message-State: AOJu0YwxzDvqou+wJbGmPX22C6nsp2gjTA4ocQ13NJp46ewCnp4tXpL0 N3/QugtubpIaIdKOSJzyVXsBGAXY/JKEtrXqNi1nAQ== X-Google-Smtp-Source: AGHT+IHuYkO8jzHpT67iLHN9Fnb1q/KBqOxxJ1P5n+Er4TGb3jHBYhilFvCBNj7aHkZtsdOXaAWFIg== X-Received: by 2002:a05:6358:8814:b0:16b:858c:1ee4 with SMTP id hv20-20020a056358881400b0016b858c1ee4mr13608888rwb.1.1700193886320; Thu, 16 Nov 2023 20:04:46 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id s11-20020a65644b000000b005bcebc93d7asm389873pgv.47.2023.11.16.20.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:45 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH v2 04/10] pipeline: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:16 -0800 Message-ID: <20231117040432.131737-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117040432.131737-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231117040432.131737-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. */ }; /*