From patchwork Fri Nov 17 16:18:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134454 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 97FB743355; Fri, 17 Nov 2023 17:20:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E1F2341611; Fri, 17 Nov 2023 17:20:54 +0100 (CET) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 4BA24402C7 for ; Fri, 17 Nov 2023 17:20:52 +0100 (CET) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1cc4f777ab9so19617295ad.0 for ; Fri, 17 Nov 2023 08:20:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238051; x=1700842851; 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=7wQZbESJu/aOiKTzB65D8K/+oyOwJE56LxYKD2atUAk=; b=cthoJSPs905H4lSptmxg81JEYe5YGAREKbz47vR9XenZKzlQk05i96ulHZ6qTzCBup 9iFiq8yhEkSaqkv/3fjWYiqIiSberl3VowWtcaDopdgakgM6e1l4r1ScMk6O1dqr0wAe sGpP9wnvYwQM3oTjhML+GMiXWWZTqGE6gSDENIjuNdxPvPffzArU347tGLEzpXT/6+0R pLnn5pvJiIeRxK+68Wv68OZsyYEmJI9Qd/aena7puOnWb2JvBwTHzk4HadvyH8Yjop8g 6Xh6cbwRgbTBf/fp+0vMDe0KmC0cvaZ3RweqV/aDnln5fVOANqnFWpIn6xNP1EwruzPz oeIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238051; x=1700842851; 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=7wQZbESJu/aOiKTzB65D8K/+oyOwJE56LxYKD2atUAk=; b=sthBi032MW4rOhPiSzPVywJQKs7OgHIrFHY+b0gmIKiBaiOe9i8yTbM8HMoxrMVIKT rN3/b8Jm8YLxFtS7xwUH+Ghp/oWt9P8nvk7L+j2CwtdjExIMgLx7QcVpITLAsMFmn4YZ 31rX2QegqRKzT/TrEd4yIZUGJozW7QfNik1P1UHxtLXcv6EnBIKwQEPkC6RneJvr31pL lfDCWQgNVnqGPp8M7HNPkL1lRkUHjNK8finEMGJrOlWpjCmUomrZI/S+kt0YKVaTtM16 4LKyCzLOX3b2Gs8UI2cgmpEPuZunDvWgowE/aoyBAtN8ZWkzIOLjgTC2UnOx1rQj92p3 ZH2Q== X-Gm-Message-State: AOJu0YwAeferkC81t32Yy8EJEeSCJ4G0eoP7NJQesuMAcBfkPhj7zEUR 5fmoyqpf2hbjjXzkrEpJMCaVHkXDB2Ouc+tXHOtYLw== X-Google-Smtp-Source: AGHT+IHANikzW5CERUUG3nnXwRg1iqoOvFyn31xROihhh6lT4s8CTMdhA9PQTZ+R/J7hhFzcmSZy4Q== X-Received: by 2002:a17:903:516:b0:1cc:5296:10e4 with SMTP id jn22-20020a170903051600b001cc529610e4mr86049plb.22.1700238051093; Fri, 17 Nov 2023 08:20:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Yipeng Wang , Sameh Gobriel Subject: [PATCH v3 01/10] member: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:27 -0800 Message-ID: <20231117162040.241466-2-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/member/rte_member_heap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/member/rte_member_heap.h b/lib/member/rte_member_heap.h index 9c4a01aebe95..ab6319bc2de4 100644 --- a/lib/member/rte_member_heap.h +++ b/lib/member/rte_member_heap.h @@ -26,7 +26,7 @@ struct hash { uint16_t bkt_cnt; uint16_t num_item; uint32_t seed; - struct hash_bkt buckets[0]; + struct hash_bkt buckets[]; }; struct node { From patchwork Fri Nov 17 16:18:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134455 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 6555D43355; Fri, 17 Nov 2023 17:21:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 16580427D9; Fri, 17 Nov 2023 17:20:56 +0100 (CET) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mails.dpdk.org (Postfix) with ESMTP id 57CEB411F3 for ; Fri, 17 Nov 2023 17:20:53 +0100 (CET) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6c4d06b6ddaso1991250b3a.3 for ; Fri, 17 Nov 2023 08:20:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238052; x=1700842852; 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=EIDfdb7SPqwPvD35elFoZyAHyeqtHUhWXEqW9V8Dg/0=; b=1SrmwEqEpwn30wkACrg/lKZn4PYnO9Ft4SZCZGaC8Xp1rXL4VhY+0yRTGLbuEYgkP5 Z87e0KSobxh5ndFNqOFaEJuFqzBUc7ipDb7KgQRO+QNoNCxJPhhUD4KwYLH1NEul6Y+q 1sM91jFjkz7Sa4V5ngGSGcZj8Mv6FxD5VCGjnwRfRXQvXOdlw4aqiaQ+zy5P+/AL7heV ty2O4niEJbdqVIUw1d9WyPcenKPDjVrBcxoNKX6QAoPrzTqX9NPTFoNRvHJZMssiaYG2 IT/CNKYYfHwfjFCRW7RsFDgmJcAIvicBU61ss1IMPm+a0eTnANUK99gBa9ujBFxSOQRN 68GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238052; x=1700842852; 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=EIDfdb7SPqwPvD35elFoZyAHyeqtHUhWXEqW9V8Dg/0=; b=rbKRSh6RMTaZe4edoE6+0f8SYriBO8C0Y1J09esFGkC0ngxGx5RFG+W/pxzCde2VyB ogWkoZOXrpQ2Gn0YcIICoh1JgvV0u6Z9sX5PoiOIIwsyrIe99jXM45/TiArcir2tnio1 CxQOV1twyVboF+Ff5Ypa9sshVDk/PNjI1zt03L4Bhi76G2uNkInBj3CFetK4qLJMTIyM soAnvKwCAmCkLfaMWp+xowc6VJZeM5vsJUSH07Ra7L/3iiSPjZc4Fc+EFu8AbmgFZo0C 0L4CSJ8c7mnOVwQs+XJ32QgjUNER01JCTH7erRk/uldr92u99/WEBiXEmpKSbin1kfPm 0ZJg== X-Gm-Message-State: AOJu0Yz0QacFE71635E5BUfdOMkoPv3npiDWNusOyzq/16n08ggMg94+ m8Qjn4kluunSWCDrScH6HyH6VH91ge0L6LgbcHjcDw== X-Google-Smtp-Source: AGHT+IHMEYDme6HpV2RIFpfLSElSfIl8XbBiBpk7uI42gsNNCr+aYoR0pXXz9/Tk1+ox9D41qiWoFw== X-Received: by 2002:a05:6a20:4297:b0:187:dd5f:93b9 with SMTP id o23-20020a056a20429700b00187dd5f93b9mr5154925pzj.14.1700238052228; Fri, 17 Nov 2023 08:20:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:51 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Akhil Goyal , Fan Zhang Subject: [PATCH v3 02/10] cryptodev: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:28 -0800 Message-ID: <20231117162040.241466-3-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/cryptodev/cryptodev_pmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h index 3bb3d95c1338..0732b356883c 100644 --- a/lib/cryptodev/cryptodev_pmd.h +++ b/lib/cryptodev/cryptodev_pmd.h @@ -153,7 +153,7 @@ struct rte_cryptodev_sym_session { RTE_MARKER cacheline1 __rte_cache_min_aligned; /**< Second cache line - start of the driver session data */ - uint8_t driver_priv_data[0]; + uint8_t driver_priv_data[]; /**< Driver specific session data, variable size */ }; From patchwork Fri Nov 17 16:18:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134456 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 8A21143355; Fri, 17 Nov 2023 17:21:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 91B43427E0; Fri, 17 Nov 2023 17:20:57 +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 1F162415D7 for ; Fri, 17 Nov 2023 17:20:54 +0100 (CET) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1cc5b6d6228so16806895ad.2 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=1700238053; x=1700842853; 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=A6+4yyS7YVr7b27wut0EVsAkSzhnqVRCAf9rUQwdIvc=; b=WYK1iQAtCaxYvQNJGmcs+qHKlLRM31pEPRpRDAGO4b2ABcDUZLSZrGnpRVtWNolWcn ntUSLc3uqbs5mwyoW71eE0M4ZIDsTJwiWaWmU7rYGlj7cjhsHDk5jVU6j+io7Q2C/XMv Q0kKR9UpRDJ4sJePC2NRAml0JWKFlXD/UXcNfeaQX6fL2Wvnfd7B1K4dmYD3ZAAX7Blf ZPwksQlVN1tqiyT82E/iSYBLXFdX4bm3nCpHHnxaj515P55UmDD+5ka9X2MmsIRJRY60 Dd9R594WknAcuksmF7Dz9ajfl3KACzmJHCpFNYeDZyD3I6iNzBEbr0ps+//xOcade1ut 3ilQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238053; x=1700842853; 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=A6+4yyS7YVr7b27wut0EVsAkSzhnqVRCAf9rUQwdIvc=; b=BRJXZqqpgTtYIIGMVy55DEaXVfbusrSquqTfnmJ6l5E/osjcsuQUtDmH7dM9suUUlA 9aOfHC0lOl+SHFcRFCGvJCB9md+qPh5LzxbXoDtLfAW5eSYvobYygmI1bgt6fqtos2dg ayB2Q+1Ao0cdpx4DYz4udViKbVE9+nkwJC/HjIl/XGwSkT+3InB+nuHyQwVdcKF+x5Xi IYE4F7wRlXc6kbbii6kMJJzDY+BJZsb+w0ST4FN+4jXxcSB9/l8aH3xEqreFi+Vvz6na qceq/vndWkoqEmCmqhd0PIQG/jfk34ZdHRJYkwrDCNDe+nYC8+Yp57bq93gNis1vPGmr +gKw== X-Gm-Message-State: AOJu0Yw4pOKmXc9YBU21GkITSvl8vKWV5p0eme9pdpdP4ygOGPhCpsYs mHD8ZH0jNDqmVzjKV4QY6V55hE5gZzO9i04vPPTpkw== X-Google-Smtp-Source: AGHT+IEADBx18JIjH8Y/mVofaeO+UZMm2DOCLnhhcQE7uJ6e1LMvC4hwPiqGo2gXVJUvvPQJePYnLg== X-Received: by 2002:a17:903:24c:b0:1ca:e05a:93a2 with SMTP id j12-20020a170903024c00b001cae05a93a2mr68279plh.32.1700238053113; 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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:52 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Akhil Goyal Subject: [PATCH v3 03/10] security: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:29 -0800 Message-ID: <20231117162040.241466-4-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/security/rte_security_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/security/rte_security_driver.h b/lib/security/rte_security_driver.h index 62664dacdbb4..faa4074f1965 100644 --- a/lib/security/rte_security_driver.h +++ b/lib/security/rte_security_driver.h @@ -33,7 +33,7 @@ struct rte_security_session { /**< session private data IOVA address */ RTE_MARKER cacheline1 __rte_cache_min_aligned; - uint8_t driver_priv_data[0]; + uint8_t driver_priv_data[]; /**< Private session material, variable size (depends on driver) */ }; 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. */ }; /* From patchwork Fri Nov 17 16:18:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134458 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 27E1743355; Fri, 17 Nov 2023 17:21:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35A6242D0B; Fri, 17 Nov 2023 17:21:01 +0100 (CET) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 1633A427D8 for ; Fri, 17 Nov 2023 17:20:56 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1ce627400f6so4610515ad.2 for ; Fri, 17 Nov 2023 08:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238055; x=1700842855; 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=kTuO9VtDRz+m5QW+PF+0IkB1Bw023prdkAXlm+Qq6ec=; b=dqxeExM38FxSZbdJjR1mDXme0OSpbX61I6nWuJMnWLBUQR2NEP8r8/UZPgqvR1bhGc +PDHrtCiTtHdCPxRRXSh0ooYyCnGQ/f3Jh83imGExeNm2XwyVnZM/PZBjPe8BsGnEOGe g/34Pu1aehuxkP2xgoyvKR0dPXGlD2rG/pPs0SrkzbNIxym0zOcmumsWRoK4is09nq6K o8+ajPkxEDkMB6eDsTEsQXsoNWwIWfzOpYh2sbxRJhLD1VPFdQv4wpDRmT1nZycr5Mgn CNjZSKnGiJddh6qo0mAuLjQpHEmtd6vl5vct+O1y2kL2Aqh+8tH1Yi03dBz7KpFwIwQt gh5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238055; x=1700842855; 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=kTuO9VtDRz+m5QW+PF+0IkB1Bw023prdkAXlm+Qq6ec=; b=C1+ywmRCYMiX3QnpG7jT5EZCGMqal5EmKNoBjptZd6AfFPob8Y2dGKHs89TnsMUtB9 t1h7hHwAYXjLICfCAiDLGOMeWH7BIjUSdI1hHHqeqE8+T74rP+ZX7KrnA6CBi07i2zGV gPewRSkYpT7YK35dWvdfR1ZmmMOmhMuVP1Z/KYL57TvpEJQ9zOOhd7AtIh/qKKeFBs1Z M8nwCe5U8bBAMfJDqU3rDJjvFZhm+Ug0QS/wvnkBnUQBfTFED6ptDTRPEzc72L+l05Y0 jqJM4RZYmvNJpeLHYxnj8qepAxTByZG4UWbstH278Gx/8PCxFhvA8qskfOK8UOv7iCGk bgbA== X-Gm-Message-State: AOJu0Yzy32BCpvMtQBKmADZ0+ksQNb/jcrfah3dXbjqr9Uh2LSvPTfwE 65YFis3fjr4oFfZtQW+jMJYubPt5Wmr3ehriMKs/sg== X-Google-Smtp-Source: AGHT+IGabr9iISEqX0TaA3RP0JEG3dDwwD7IbkKBFNM9ffcEl5NEwYLXAHKpwPf9mekQq1ayfv9FyQ== X-Received: by 2002:a17:902:e541:b0:1cc:33f1:3f03 with SMTP id n1-20020a170902e54100b001cc33f13f03mr97126plf.2.1700238054953; Fri, 17 Nov 2023 08:20:54 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:54 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , =?utf-8?q?Niklas_S=C3=B6?= =?utf-8?q?derlund?= , Tyler Retzlaff , Chaoyong He Subject: [PATCH v3 05/10] net/nfp: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:31 -0800 Message-ID: <20231117162040.241466-6-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 Acked-by: Niklas Söderlund Reviewed-by: Tyler Retzlaff --- drivers/net/nfp/flower/nfp_flower_cmsg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/nfp/flower/nfp_flower_cmsg.h b/drivers/net/nfp/flower/nfp_flower_cmsg.h index c2938fb6f63c..f00d2e838d8f 100644 --- a/drivers/net/nfp/flower/nfp_flower_cmsg.h +++ b/drivers/net/nfp/flower/nfp_flower_cmsg.h @@ -73,7 +73,7 @@ struct nfp_flower_cmsg_mac_repr { uint8_t info; uint8_t nbi_port; uint8_t phys_port; - } ports[0]; + } ports[]; }; /* From patchwork Fri Nov 17 16:18:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134459 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 3E08043355; Fri, 17 Nov 2023 17:21:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67D3742D2A; Fri, 17 Nov 2023 17:21:02 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id E86C9427DD for ; Fri, 17 Nov 2023 17:20:56 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1cc5b705769so19397975ad.0 for ; Fri, 17 Nov 2023 08:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238056; x=1700842856; 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=YrPST0zegRM2YtsnMA4HnQPP7UNQ+ucxN8O78SuzEwQ=; b=rQRR4IDZlT/YmZig/OWvFOgzfsjphujDIh9CWUE4tCZzlA0o4Bv6kUtAyWOdYq3Bdf NjDQnL/VIpo9Y3MEhC+hYV6AxAeZU48fyxZgQY9GXbVbTL3G+JTXPx1defD9rZlBvIqa ipXliFRD0TFjD7Sfg0PL/qmkjf8FMzZTjruRfo+S2ndNZUkO+ZQXNB8lgf/SasgNtYk8 FJfmP3PoqN1aUXtP406r7pbrQrG3JiyLz4iC+n7W9qjrIQsSNsADQUHcOrV91jCMWAE7 /RTGDzv0K2nTWgWyXsfbV/cXuEXmIG4w+LYJk0tINsfEmy+ERJJxeHAcAMxeSiKiMG3U XNPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238056; x=1700842856; 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=YrPST0zegRM2YtsnMA4HnQPP7UNQ+ucxN8O78SuzEwQ=; b=K078Z7SVJOPwxJ8ln48S6ZaARskD15lcNGcFCwIch6GCKRoLW+4XuGZMPS3el3VpDX sIOzz2tre7ip2SxVbb142wYKCk1Ov9ynisT21khzV5XIgOTWoxX3HUcP85ZMUZ3wswhO PsDTbmsM1gMnznK3j0O0o9EsYdrTJMsMxwwBiJIBIwyvFd/z/8yUksx6iShk1mc27I2o rPJ5JNFmfWSPtORTBwygtOISEOxfLGIOn807tzRis9/cb+Wa6oldIkQq8ybtqNAFncZd 028oagV7f8dAPiYffGDauDxSffI5DQnm61afKtXVsqmvo9L+TETkfyTJbGs2YRfdsKgk 4QqQ== X-Gm-Message-State: AOJu0YxaTotLSVE6E/8rTPniD7a1EYroyZUh6GCi0LB9ohTADVLNlj1u mRapwKGk2eNMF0fS55wlwD8pNshycGYnBvMmSw2ODw== X-Google-Smtp-Source: AGHT+IHTI6AgJDVvbN+Sw8PSOa0ssALnprMBUVFPZeVjsEyTAz+zf4NlN9A+dFJGTf85p8XxNOI1WA== X-Received: by 2002:a17:902:c40a:b0:1cc:3c2d:1299 with SMTP id k10-20020a170902c40a00b001cc3c2d1299mr58298plk.37.1700238055976; Fri, 17 Nov 2023 08:20:55 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , John Daley , Tyler Retzlaff , Hyong Youb Kim Subject: [PATCH v3 06/10] net/enic: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:32 -0800 Message-ID: <20231117162040.241466-7-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 Acked-by: John Daley Reviewed-by: Tyler Retzlaff --- drivers/net/enic/base/vnic_devcmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/enic/base/vnic_devcmd.h b/drivers/net/enic/base/vnic_devcmd.h index 253a791c3f65..f91cc3078d63 100644 --- a/drivers/net/enic/base/vnic_devcmd.h +++ b/drivers/net/enic/base/vnic_devcmd.h @@ -765,7 +765,7 @@ struct vnic_devcmd_notify { struct vnic_devcmd_provinfo { uint8_t oui[3]; uint8_t type; - uint8_t data[0]; + uint8_t data[]; }; /* From patchwork Fri Nov 17 16:18:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134460 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 85F7243355; Fri, 17 Nov 2023 17:21:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90DA842D2E; Fri, 17 Nov 2023 17:21:03 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id F2623427E3 for ; Fri, 17 Nov 2023 17:20:57 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1cc0e78ec92so16794605ad.3 for ; Fri, 17 Nov 2023 08:20:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238057; x=1700842857; 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=ENHtGgd+53J735ew6Irhe48ejFc2aCrqrU6Z0tmP3sc=; b=DZnfl0tgzcNb10UkAQZxP7ulGt/CKLzT0VnWF6f1qQNIHvM+BsQTqyuDXqjMU7MimI gzUUm9w3PlYYqbaTd8DPsbFDcI5rqxQ0MJFvjKb50p66F8kMeK5LyPHrEELJT/1F22v3 TG1U0+kJsfFhKZstBhGrCrEo9eewcl+w6d8ZCDjGnDte07dzvwo1JWKD2YbWvEflXH3m 0bVD1NANqQzLRG8mKLM6z4ZTdwGjxVZHHZRCvwyy8dzuEzekVgPhHMhAnhVLYd0V38SW mvsnW58xd36MrR3iGW5jL58MsLM9repzSpQcGw1xN9EgPTQ4DKAT1r0LqVh7VOBo4F6p t1yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238057; x=1700842857; 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=ENHtGgd+53J735ew6Irhe48ejFc2aCrqrU6Z0tmP3sc=; b=d9OFS2hBNrb9aAskDxHE1/6XuXZT/mGK8eBkwxkuDBOeOsfDE92B4BMqY9Cq8RmJaw opX/IIh9TnTKhu4cxJlxH1OSDKsjGcd3BzFhMCaETxrmbKOdFlk/pC8eHidLcIIhhDdI HGfSDsrwJYOy47iMdJOLETU1sC+GUDgRSZtYCp4tl+iO8RZLWTxT8TIpDeoz9yPOSg6q vOeNWi063gO0Z8ZOUT1wdrh5vKPMczAIYmIeW6dZsZwQMPZOSIM2JkogPNh3Y1c9I3Q/ GJnLdz5jx7N7gQQRSLTg9eIfPKLxJCR3DdvsDdfycUIKBOyELh4ClGhbkwf19OUhhStn Myew== X-Gm-Message-State: AOJu0YzKvt6tjUACmtFsxp41VI6VtF1IfA7omaoG4qIxhAHinfTQ4LaD PsKRVfuOM4Ny4uBJMULqaG6YQ3mOwZVtZze8mQLnVA== X-Google-Smtp-Source: AGHT+IHgNq6SVAnjmGmAjfwKLukxSpqqumr+DTBbgLq9ehs/U6eGPaMohVgv/6sLRmbJdikmr9jPMw== X-Received: by 2002:a17:902:c409:b0:1cc:6cc3:d9ba with SMTP id k9-20020a170902c40900b001cc6cc3d9bamr78900plk.4.1700238056847; Fri, 17 Nov 2023 08:20:56 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:56 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Dariusz Sosnowski , Viacheslav Ovsiienko , Ori Kam , Suanming Mou , Matan Azrad Subject: [PATCH v3 07/10] net/mlx5: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:33 -0800 Message-ID: <20231117162040.241466-8-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 --- drivers/common/mlx5/mlx5_prm.h | 2 +- drivers/net/mlx5/mlx5.h | 4 ++-- drivers/net/mlx5/mlx5_flow.h | 2 +- drivers/net/mlx5/mlx5_tx.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index 9e22dce6da13..932b89bd79d3 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -5181,7 +5181,7 @@ struct mlx5_ifc_flow_context_bits { u8 reserved_at_e0[0x40]; u8 encrypt_decrypt_obj_id[0x20]; u8 reserved_at_140[0x16c0]; - union mlx5_ifc_dest_format_flow_counter_list_auto_bits destination[0]; + union mlx5_ifc_dest_format_flow_counter_list_auto_bits destination[]; }; struct mlx5_ifc_set_fte_in_bits { diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index f0d63a0ba5f5..89d13900fd3c 100644 --- a/drivers/net/mlx5/mlx5.h +++ b/drivers/net/mlx5/mlx5.h @@ -1308,7 +1308,7 @@ struct mlx5_aso_ct_pool { }; struct mlx5_aso_sq *sq; /* Async ASO SQ. */ struct mlx5_aso_sq *shared_sq; /* Shared ASO SQ. */ - struct mlx5_aso_ct_action actions[0]; + struct mlx5_aso_ct_action actions[]; /* CT action structures bulk. */ }; @@ -1325,7 +1325,7 @@ struct mlx5_aso_ct_pools_mng { rte_spinlock_t ct_sl; /* The ASO CT free list lock. */ rte_rwlock_t resize_rwl; /* The ASO CT pool resize lock. */ struct aso_ct_list free_cts; /* Free ASO CT objects list. */ - struct mlx5_aso_sq aso_sqs[0]; /* ASO queue objects. */ + struct mlx5_aso_sq aso_sqs[]; /* ASO queue objects. */ }; #ifdef PEDANTIC diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h index 6dde9de688b9..b35079b30a6e 100644 --- a/drivers/net/mlx5/mlx5_flow.h +++ b/drivers/net/mlx5/mlx5_flow.h @@ -1257,7 +1257,7 @@ struct rte_flow_hw { cnt_id_t cnt_id; uint32_t mtr_id; uint32_t rule_idx; - uint8_t rule[0]; /* HWS layer data struct. */ + uint8_t rule[]; /* HWS layer data struct. */ } __rte_packed; #ifdef PEDANTIC diff --git a/drivers/net/mlx5/mlx5_tx.h b/drivers/net/mlx5/mlx5_tx.h index e59ce37667ba..2045e5174e6d 100644 --- a/drivers/net/mlx5/mlx5_tx.h +++ b/drivers/net/mlx5/mlx5_tx.h @@ -171,7 +171,7 @@ 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; From patchwork Fri Nov 17 16:18:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134461 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 3869443355; Fri, 17 Nov 2023 17:21:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D689542D55; Fri, 17 Nov 2023 17:21:04 +0100 (CET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id DB9AD402C7 for ; Fri, 17 Nov 2023 17:20:58 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6b7f0170d7bso2089648b3a.2 for ; Fri, 17 Nov 2023 08:20:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238058; x=1700842858; 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=bSeCFlweWgH8tAjxZSpXDWR9DNnF/IzvsHutYS5fvtA=; b=BeDfkTyZNLNzjAhDX0gaIsbVYH+2dlzyWVsH3kVpih42pd5Pna6C+L44o8S8Rl4rXw eXuQrpK0EL0hR4QMUTP9EqbKwwVQED8Nna4Ra4HrRNbUWCLKh6PIzJldJNN1TIJfeK9V xsBvdwmHsX6UfSI37UUOqYhj15KUQ+eeisTAfrzW2QntyNxS3GzpxLZKSmx4G8KQIuWt DI5L/y2/FT8/R4lg0RMA9BRDPwajpfu2UlyfPz7KyyH4W7ijmCxTwE/6RW+Crks1UQ7q W2J+ZJnKMhPsBpwOcatkMjtBJ1v2tumhFh1uYfvP92C98CE/l2uHbnKLcVaU4I1Rf2OX xMWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238058; x=1700842858; 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=bSeCFlweWgH8tAjxZSpXDWR9DNnF/IzvsHutYS5fvtA=; b=gNz28VhAbeW3kD3W1Pf4NqDFRhD68AsnJxHEstcUAk3Izz6lGuO0XB0WxZtX2OXWlf BPKSrKbz8xLNN42r1Vjr36isma8p8Sb8Vsl0ZAyZsN3oUNw5wfoHRKz6G56oJqF/yCXu w4PkkIL5ezdxb7wTGC3op78XS11LaiJz5YdvoSMH5FxBu/UBQOekXhlLX372BDlyL9vX pfO/1q85/AgSIh4gUCEQsXjrXxVG+lZoBmiNaz871K+4Arf+ivrN4e8aoQJvbONu7v6H SU4DkviFXN9a2j1KIdyb8FDncmWEl2lRDw07gIZGugYPv9b8MgrKLS7uqMum3LsZ45zK W1eA== X-Gm-Message-State: AOJu0YzupV/tPW2iCkWTw8W5KemqySq1Tu+4MYUqO2xhDMlaPuhboSXc ectvEebhnnKNDPMXiWvQGN7fLgNp9RZr15ZxUngVjg== X-Google-Smtp-Source: AGHT+IF1eFWynFUWEpntC00aIXgAKNprafn8cSFbNbxDa+Q3dsXG+04BGYwN0xNxSTEMpgMohmTqZQ== X-Received: by 2002:a05:6a20:3c8d:b0:187:3643:ecce with SMTP id b13-20020a056a203c8d00b001873643eccemr11995378pzj.56.1700238057679; Fri, 17 Nov 2023 08:20:57 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:57 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Anoob Joseph , Volodymyr Fialko Subject: [PATCH v3 08/10] pdcp: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:34 -0800 Message-ID: <20231117162040.241466-9-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 Acked-by: Anoob Joseph --- lib/pdcp/pdcp_entity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pdcp/pdcp_entity.h b/lib/pdcp/pdcp_entity.h index 4fc6342a5ced..f854192e98dc 100644 --- a/lib/pdcp/pdcp_entity.h +++ b/lib/pdcp/pdcp_entity.h @@ -185,7 +185,7 @@ struct entity_priv_dl_part { /** Reorder packet buffer */ struct pdcp_reorder reorder; /** Bitmap memory region */ - uint8_t bitmap_mem[0]; + uint8_t bitmap_mem[]; }; struct entity_priv_ul_part { From patchwork Fri Nov 17 16:18:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134462 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 A0F5743355; Fri, 17 Nov 2023 17:21:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 14E8D42D6B; Fri, 17 Nov 2023 17:21:06 +0100 (CET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 991C7402C7 for ; Fri, 17 Nov 2023 17:20:59 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1cc131e52f1so24874715ad.0 for ; Fri, 17 Nov 2023 08:20:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238058; x=1700842858; 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=jDFAqvxBPyvNv6pRUBvjIzCBTh/F97bZyBYTdlZs4SU=; b=OBgiEpMJVuS9nvq1LWGaniZyteAVNKWxjwJ48TDv+fpkWx7dZe8oyTd7LupkdGpaQA OHOlPU4Yq18wTJLCtDtr1s7sE9Qz5Ij1llP1jNGJhtNawWu3E+gygEWkFHC4eM8AxeUM hTXcohKTZjMxnnsqAESydLX9xXPxVQx9uHKeG4+jV2LF8eKta2vRJQtk/zeIUQHJ+8lc EBBtYSThvlGtg8Uatgo0DrbDG67PCzeEdbtmOzuWxJ9tr+sBdvUt5zHv8MpaF2e+3R4o sUAk638w2PcQ9HjUUWLm4MHZ86qgyTVJNoEJ4dQlI8TuxxLE5uU2aunPFTJ4cBzDnXt0 NsLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238058; x=1700842858; 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=jDFAqvxBPyvNv6pRUBvjIzCBTh/F97bZyBYTdlZs4SU=; b=nqawO23vv58qg2gl+7TJ+6ZaDQQhvxNnliIYzI2d0dA8TqAFajMQAainzVcbeIW3qy 1OW2UzuDf+Xfp95Rct70SMgFiV2NVqHUsf4HW/mLQy4vB+cWXYS/IoWFb/akdIen6/FL AMvTK1XSlVGDXkRfbmZ0coPtaDVXdeyBUFn3iw/OI2s+I8iBeoLoxzqUfH3yjoDBPyoT INKgShTESYi+mu+C8Mue1J0Xgc2aTc8uZPDQx/oaDUiDZBO7ilYsquJXU+wV5zZPdTk8 A8BWEXq9xrYd8XF4y58rCSShnh/7gfL6if1Dgp/GNahFPc5W791X5JnDAgll4KzyLEeb o9Og== X-Gm-Message-State: AOJu0YxdfES08hYMkwy0tcKDDgkZDNaUkn5D9F+6kJZKhHZK7SCioYlQ gEx18QpI0/i7seB+EIJcyR5iztmwGLJqvl0fXXcnHQ== X-Google-Smtp-Source: AGHT+IF6PrI1Cil+XjDqsjkVycCQSB7Y2oS6UwC37uTg71V4P/MfPmvIK9+mdXIgSJalpfhzOAJwcg== X-Received: by 2002:a17:902:ecc7:b0:1ce:5ca7:1070 with SMTP id a7-20020a170902ecc700b001ce5ca71070mr2935895plh.16.1700238058641; Fri, 17 Nov 2023 08:20:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:58 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Yuying Zhang , Beilei Xing Subject: [PATCH v3 09/10] net/cpfl: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:35 -0800 Message-ID: <20231117162040.241466-10-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 --- drivers/net/cpfl/cpfl_flow_engine_fxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_flow_engine_fxp.c b/drivers/net/cpfl/cpfl_flow_engine_fxp.c index 8a4e1419b4db..39a281fa61ee 100644 --- a/drivers/net/cpfl/cpfl_flow_engine_fxp.c +++ b/drivers/net/cpfl/cpfl_flow_engine_fxp.c @@ -53,7 +53,7 @@ struct cpfl_rule_info_meta { uint32_t pr_num; /* number of pattern rules */ uint32_t mr_num; /* number of modification rules */ uint32_t rule_num; /* number of all rules */ - struct cpfl_rule_info rules[0]; + struct cpfl_rule_info rules[]; }; static uint32_t cpfl_fxp_mod_idx_alloc(struct cpfl_adapter_ext *ad); From patchwork Fri Nov 17 16:18:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134463 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 C819043355; Fri, 17 Nov 2023 17:22:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C37042D7A; Fri, 17 Nov 2023 17:21:07 +0100 (CET) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id A5EBF42C24 for ; Fri, 17 Nov 2023 17:21:00 +0100 (CET) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1cc68c1fac2so19594575ad.0 for ; Fri, 17 Nov 2023 08:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238059; x=1700842859; 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=T0fmocB3opu4AXHvVFYLFUGkMS73o4AE8HhZQ111gLM=; b=194nKXYV3dOiSFBxQJmXlJtJK0S1nJbYBCvVqPY+ZkdsEc6mV5vfelBAmvYb20vUIq a5WUHAb/akmydN9DXUhvxcACfT9CPUI1cYOzdcK9vNG5MMok88k6fbGNntkJFl6UTp0q 17AtZ66HfukHJoioWwc2YB88k72/QHI+J/Lf0S8Zmvf4QUe5ChbI3Ki4yrs2s59gj1Gq KoE4AFf6P6DRAH+wb1XijVORmBm0R/PTL5jhWPJMke7saF7NVSDSfdDFq6PQBfgh7Zme cz3/zziQ6G5LT9A4KgryUnz+pa1jGTHVqVoLUhHgA6XbQRqOOIyRSMk5Yv6JQP2//0uY usXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238059; x=1700842859; 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=T0fmocB3opu4AXHvVFYLFUGkMS73o4AE8HhZQ111gLM=; b=Z60F04cb31cHwqX8oE33FDG7h1pXdodzPzCDuoRKrAik+PDBCllCBSnISVV9OqbOUI oM/1WGos+YOHAFk/Zig0F0jcpRBceFiO+VsTIHEioZrp8nqj6+6VNTYzF25aimm5J+wm gJoC/blNxTm2ac3+VEjSdwURNnfA100B2ZkoMlpOlBXNL7JLmDNLXPW3AtplPLYWPYRi 4BYFIR2CAAz2HGaYxew/xUe7fEAqglbI63KckqxBDZSA9YsRANOFB9M4B54PB6HZyA0W /ALi2jxgy6vbKcdsKcbt/JL79jPUNtwRNQQekX+TrWS+CCeO0FFtqOVYHEUUAkLgZ4b8 /81w== X-Gm-Message-State: AOJu0YwZQz7E7ay4IQkXd6RsiwCIYmohVs1ldbKAEl6sKV+Onrfd4bNm 8RlnhZy9Da+xXnvk2En2JKVjs0SCt/yOkHQF+xagpw== X-Google-Smtp-Source: AGHT+IF0Rub++WhLxORTJCbeP8YwcFfoI+0uUZ36RxTKJKFqGraD2xVoRcWsmf4jEb1npf5jLqJJrg== X-Received: by 2002:a17:902:8f93:b0:1ca:72f9:253a with SMTP id z19-20020a1709028f9300b001ca72f9253amr65218plo.23.1700238059523; Fri, 17 Nov 2023 08:20:59 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:59 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v3 10/10] common/dpaxx: remove zero length array Date: Fri, 17 Nov 2023 08:18:36 -0800 Message-ID: <20231117162040.241466-11-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 There is a place holder zero length array in this driver. But since the structure is embedded in other structures, it could not have been safely used anyway. There doesn't appear to be any uses of it in the current code. Signed-off-by: Stephen Hemminger --- drivers/common/dpaax/caamflib/desc/ipsec.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/common/dpaax/caamflib/desc/ipsec.h b/drivers/common/dpaax/caamflib/desc/ipsec.h index 95fc3ea5ba3b..9d59b93292f9 100644 --- a/drivers/common/dpaax/caamflib/desc/ipsec.h +++ b/drivers/common/dpaax/caamflib/desc/ipsec.h @@ -336,7 +336,6 @@ struct ipsec_encap_gcm { * @ip_hdr_len: optional IP Header length (in bytes) * reserved - 16b * Opt. IP Hdr Len - 16b - * @ip_hdr: optional IP Header content (only for IPsec legacy mode) */ struct ipsec_encap_pdb { uint32_t options; @@ -350,7 +349,6 @@ struct ipsec_encap_pdb { }; uint32_t spi; uint32_t ip_hdr_len; - uint8_t ip_hdr[0]; }; static inline unsigned int @@ -776,7 +774,7 @@ cnstr_shdsc_ipsec_encap(uint32_t *descbuf, bool ps, bool swap, PROGRAM_SET_36BIT_ADDR(p); phdr = SHR_HDR(p, share, hdr, 0); __rta_copy_ipsec_encap_pdb(p, pdb, cipherdata->algtype); - COPY_DATA(p, pdb->ip_hdr, pdb->ip_hdr_len); + SET_LABEL(p, hdr); pkeyjmp = JUMP(p, keyjmp, LOCAL_JUMP, ALL_TRUE, BOTH|SHRD); if (authdata->keylen) @@ -913,7 +911,7 @@ cnstr_shdsc_ipsec_encap_des_aes_xcbc(uint32_t *descbuf, PROGRAM_CNTXT_INIT(p, descbuf, 0); phdr = SHR_HDR(p, share, hdr, 0); __rta_copy_ipsec_encap_pdb(p, pdb, cipherdata->algtype); - COPY_DATA(p, pdb->ip_hdr, pdb->ip_hdr_len); + SET_LABEL(p, hdr); pkeyjump = JUMP(p, keyjump, LOCAL_JUMP, ALL_TRUE, SHRD | SELF); /*