From patchwork Fri Nov 17 04:03:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134435 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 6FA194334C; Fri, 17 Nov 2023 05:04:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 33A39406BA; Fri, 17 Nov 2023 05:04:46 +0100 (CET) Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) by mails.dpdk.org (Postfix) with ESMTP id A1FEA4014F for ; Fri, 17 Nov 2023 05:04:44 +0100 (CET) Received: by mail-oo1-f46.google.com with SMTP id 006d021491bc7-5875c300becso901959eaf.0 for ; Thu, 16 Nov 2023 20:04:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193883; x=1700798683; 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=1GTMDMAqHcBxdQ755NG9J8jKua/cOl+Uer9AforwT6c=; b=LmlziDwpUIvEcR17xf+095Khe64RdfxuklT8hja3uLqmvYT4By4V5O1turtSKBDNrQ oFmyFjkrExDsYQN580cAvi04zvC2vi/iUX+lhZBJfiefWVmPKF409Txe4nqWfiDJsBZZ ibd5BqkvZZKWh8gPrwv2OFkrPYpCGEa0h9KmjtjCEukKbjFddIy2XYDwRcpJT9tT806x 5WhJZ2PFSM29tv5V2rpDiv7s9JvLqOS5ogYav5THv2aqHqYcfM3r2SCXPr9fal3ZajGe P1i2XMxg64xHBpwomxkBPqj2yGSZWJDYjp1tqEwEcbtdRTUxKLjN0c0AMZGD4514te7z xyGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193883; x=1700798683; 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=1GTMDMAqHcBxdQ755NG9J8jKua/cOl+Uer9AforwT6c=; b=gKESEVhpGMrtjNchGgxXTUlkD0baRH34h0byOo39UEfgoMz3VVDfTWm/R30/PoB0+S KsBKpokObBCaQp+GJiyNxnA57/sujHJSP1i7TZ/HMhDtsEUYiL6Cp4camaJ62g/crmbL Z6o902gFErwJ2zknu+2Fj6EQNH9hbtmj+v5xRII/m8L2ph8DZGk72bEUbtG2hleorfBs Jfg2GHiXweKrL67F+1jwP+ODAT4OG5wpYPknmdKnHGfJUgB+8a7pqSudc8wujAeL2TxM 2gfi3cauhEPcJze6hl5O3UxW9HPGayq5aY/B+s8gkR30/XxKjui/V/ODCQeYj+Mbq87i ONBA== X-Gm-Message-State: AOJu0Yysb7Y/4nXp8XAoPjJDoJMsklYze6gIwJRDvSRgMIYCul7rnJ/c 6bbHQiPxUjX4cFvmFakmDdMkGYVcTz+6dKZDVlJ9dQ== X-Google-Smtp-Source: AGHT+IEw0eQbE+Vklf3L4nHGr4A19+YY5xKpQzivrCGDPK9bEpE32SfWomgY6hAwYWBt1ACMrZn3ig== X-Received: by 2002:a05:6358:3416:b0:16b:c403:1689 with SMTP id h22-20020a056358341600b0016bc4031689mr11486666rwd.9.1700193883219; Thu, 16 Nov 2023 20:04:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:42 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Yipeng Wang , Sameh Gobriel Subject: [PATCH v2 01/10] member: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:13 -0800 Message-ID: <20231117040432.131737-2-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/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 04:03:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134436 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 9F9C74334C; Fri, 17 Nov 2023 05:04:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6447440A6D; Fri, 17 Nov 2023 05:04:47 +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 84B274069D for ; Fri, 17 Nov 2023 05:04:45 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6b44befac59so2057003b3a.0 for ; Thu, 16 Nov 2023 20:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193884; x=1700798684; 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=7UPRtCMpCjRTkkmxXEzXuurvH65xr0QIxAIbBb4HVV0=; b=DNDU4u6eq+hIuJ/MtqVKB0GXG6l7yAEDvzkJNCe5KS9tXQIm62UXQYA2M+B0ZQenWU +sdqV0AfCOgADXdwIWFby6TqHWn9LOFrKiZ6rxhB5pE6o/BHukBcLZkH6g0R542Xms1i b/2gtaRIOq49YbUTO699nNEOeyn0amxI4eXxsjUSvFNHvGhm9CqGw/VVmsaQ/1/lx44k hMLLu5io6a9XqBQob5h77O+MXJ2X/eV44xIO0AOd6CqKP2VjVYg0rRqkKEFIc/d9TcuN roXzOWFTpiN1GFzxdISpCHgM7jc1p2unDY3x/R8kKEDTuHEz3uv2iqdKAPit+pDJBHwi 2YFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193884; x=1700798684; 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=7UPRtCMpCjRTkkmxXEzXuurvH65xr0QIxAIbBb4HVV0=; b=q1GeO+hLAVokrxJmG/mSniTxLtJw4dkYmi8gCdM+kQ0IenJPMV/j0VdYZBXDW0+Feq 3q+1AlNzQmJ+vkYQEP73ufvM0HJdB6vYPir3j6my+P/tP/umFEDB8QYJl0LfGhGsMzgP aLVoor8JvcZ3IjlQwPVU6D/FHrpOHHFU5Id7tL3Kk7OqFCSvxqf2N8WR8d9lKp9Qpd0L cmbgOkXGGeQJXsPfOTMDh6quI7px/TMnqm23ZkJ5oVtNtOF5uUxeskrHMOblQPZ3b30R PDCkzeL/i2wKi0Weklf7GGN6HkCpSTFH3oOp5JkKNWpQjpQrCBslQ1AGatKflcsb4ecx WRVQ== X-Gm-Message-State: AOJu0YxkgkRDsL4Ug24ocQD6xbXYuP7cWxlPIxV8rlZYhSkSIUELs7JF dJToXxMGsrvyQCGY+vjrWlatxrz4uPm+RJ3Kavp/Dg== X-Google-Smtp-Source: AGHT+IGtnDRlqVohxc07jLlZgtBGSmsGP3Wlh8YycCjfVnIub65ReTRa/LKlNe1YDFMfNeOIj2YM3Q== X-Received: by 2002:a05:6a21:3384:b0:181:a38c:8106 with SMTP id yy4-20020a056a21338400b00181a38c8106mr5490295pzb.20.1700193884164; Thu, 16 Nov 2023 20:04:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:43 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Fan Zhang Subject: [PATCH v2 02/10] cryptodev: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:14 -0800 Message-ID: <20231117040432.131737-3-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/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 04:03:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134437 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 2540B4334C; Fri, 17 Nov 2023 05:05:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F2D540A75; Fri, 17 Nov 2023 05:04:49 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id 60AB940A4B for ; Fri, 17 Nov 2023 05:04:46 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6bf03b98b9bso2036969b3a.1 for ; Thu, 16 Nov 2023 20:04:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193885; x=1700798685; 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=kKwYCvbq9U5M16MDD2swmluSwPUiEShBw5Zjz7GmxVE=; b=O0WwrkDwiKPPtblVMe0gMyreIQrvrsA7s6yWBmNyTPQDipjXY93W64h3ImAjyeqbLW 9O651Q6KPymonWZlouqaxlUGbFjSd3QpiqotI3O5uIyLJoWpERvb5J7zYHW1QC6I/uhP I8CGoBzxWXph9NDvpTO6EVtGhUEUSqEuUxfAeI8kBpNgHjfr54zHI2qwuyAnJPiMCYdU oMxFJF+NIAeWo1OkCZSn1+Vx3REm/H3QgY43sW9nd9NOK/cskVrozdiMHBql3Y7bav1h N7spVZhPGnS44t3K2YRlvzH+LjwBqZ8PbHqEkBmkXLIRs8U+PTgjDgGyQ5Eh26k1aqlq rIwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193885; x=1700798685; 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=kKwYCvbq9U5M16MDD2swmluSwPUiEShBw5Zjz7GmxVE=; b=dcgf+VdmRukW/LXXVviX1mwUQ6P2iUSbNKLut/IPEoUTMh7bSxhJ/kQHKk5ZPEsAPl 52IAjBpT96b5H+YeilmxMoO1emhQGn8plAqO7llzrX01FutmgUZ05GnR7qIGlJ2ua5nV 2Mjm1HJ2kfHzSOoAYWdNHXgdyF7UEyYsbi8tkOegaVneTNqkNrNE7zUh5HMFPAZ13fOL ML90OHuP2VlfT+UdrXUNIYV/V4WNKmKTcbNbUCNxWEonmEKMjwY3lxtb6ij8OikpJG0z QQsdk4BZgJ9phns4TrI2xfP6UxQV3E+mttq9i0DYVeHe73n9v9YR23mPnxlld4Fyunuw QyAQ== X-Gm-Message-State: AOJu0YwQpc+RAfembodhoLrOLZe4q6fuhtXxOTAIWqxa24UYAZ9aMwJK kiA33xVifJQKvqpMJxgQzXN75KlkeeAz/iwbh8STsw== X-Google-Smtp-Source: AGHT+IHDk6vWDC4drkq0pHn5ugvACe6gYIazkEgtp1V42Q4OFZ8+ODIDejuI0P4m58AOTzzKaAocKw== X-Received: by 2002:a05:6a20:12cd:b0:158:143d:e215 with SMTP id v13-20020a056a2012cd00b00158143de215mr4859188pzg.1.1700193885241; Thu, 16 Nov 2023 20:04:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:44 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal Subject: [PATCH v2 03/10] security: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:15 -0800 Message-ID: <20231117040432.131737-4-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/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 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. */ }; /* From patchwork Fri Nov 17 04:03:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134439 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 DBF2F4334C; Fri, 17 Nov 2023 05:05:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7499540A87; Fri, 17 Nov 2023 05:04:51 +0100 (CET) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id 2A5F54014F for ; Fri, 17 Nov 2023 05:04:48 +0100 (CET) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6c398717726so1454462b3a.2 for ; Thu, 16 Nov 2023 20:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193887; x=1700798687; 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=Cz1MaGDtejvL5poGkQPTKW87qH80W9XwX4k+lqy0vHY=; b=FWpQhhtV4Xhkm8HvyQ+jHhSCoqhQ2ahcMW8uUMpd4BhrbB7nftWGqSkU7eo6ipfzRX v4C+B570PGfmriNxnnj8/xHiHEzAawIE26fnRWFzKbn/pIlu5NZniFFbsR9HQL5a/Yfe ozHWA65MrXv6AYrlAu6/UEkW75wdhteA+B/Uy2PI8SQ7TncirtyAYfgMA2hunDEfJBln Vt8c7x+xqRqGhZ+DvuqUAiWFxFnpbR1rSlC2vr80Mz82urlq+sASUUhC5DKBDUZjL7po oXh1E2BqdVuzIqEieyVmbU2y+SL2penhniQyWeexcXbnzAN7HQVJCBhLne03xoFnoxYo SsQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193887; x=1700798687; 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=Cz1MaGDtejvL5poGkQPTKW87qH80W9XwX4k+lqy0vHY=; b=V6IctCh/Z/V0IM1ZUGUKlXB2aGfoeEmLFAmvHYzDUEZDmUNuE2EbUiqqnRVPi5Ytpf LsJ+MFpIfvTG3bJu2ceY+PB6ct3BGNOWXs/AnYGXq8BqinW565Fr03yjk+tENFVA2e8K a62lMLtv0oF7fqXI8pIFfoEnD5SeTHj9VWYc+ca7+IS3wPsopWdO6c6p6d13ijdZx3Cl wywo2tV4QNxkuaJcJJ8+xSMbJSW4KhyRUnuB58Gv8X9ddDn14qvGqA0c/cSCXXoYmoNo TsIwY1iwF+skOhUTHfBGPjQ9FmUhwH+avSJEZ+hxvGWA1sjTxttqtiM9KkuOcnd0zm3H vEsA== X-Gm-Message-State: AOJu0YzRGc06kLoSrxOpZlW0nHbv8ptUe6VZ/5YX6Pq6+O7bSjnZyF4b W6/i9HAI8hYKiSbhyVhxKXdGJT5eewTD5wGRcCCEzQ== X-Google-Smtp-Source: AGHT+IHmjsy5pntLYVAwwaLvW3sKAdX5dFujbE3iHIq4vtEuKx6geCYjYqX3VRo1hBbqMbHJ31jDTA== X-Received: by 2002:a05:6a00:10c1:b0:690:c75e:25c8 with SMTP id d1-20020a056a0010c100b00690c75e25c8mr18763081pfu.7.1700193887137; Thu, 16 Nov 2023 20:04:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:46 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , =?utf-8?q?Niklas_S=C3=B6?= =?utf-8?q?derlund?= , Chaoyong He Subject: [PATCH v2 05/10] net/nfp: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:17 -0800 Message-ID: <20231117040432.131737-6-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 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 04:03:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134440 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 D41BA4334C; Fri, 17 Nov 2023 05:05:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFE7240DDC; Fri, 17 Nov 2023 05:04:52 +0100 (CET) Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) by mails.dpdk.org (Postfix) with ESMTP id 898BB40A77 for ; Fri, 17 Nov 2023 05:04:49 +0100 (CET) Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-3575287211bso5789215ab.1 for ; Thu, 16 Nov 2023 20:04:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193888; x=1700798688; 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=RwqPAHHYVyITfg6mIlML8F9SDAhO5tocSIb3Vx6Bjtw=; b=qwRBcmyJz/OTIl9bKpQpsdRDYmpvwd9kPBdyouMHyi9h/lAq7nfDUyfO/rlieTvuCI BYp6lRvjRTUFcteUjW/7XK6tyKR3McoZt920KXMBLW4GfYK+jIfD7V8t1umRfk+ijRvg NK15/6eFLgmItnTYYl1PsEBkKVCSXh0uRKZTkwCApADu/Ex81ISPP/goDEqc7pzgEsnk inJxX+x8dWB6fmVqEDihjDU8CYyvrM7E9CKMECge/7+vlC0EmxvJBHUEVEfViC+P9HUk lOMTwtHSWoq9oKOFIBPVA4XTnEANdjBZlx0XPGLFypSPvD4doisavx9g9VQP7EosDk2t gNmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193888; x=1700798688; 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=RwqPAHHYVyITfg6mIlML8F9SDAhO5tocSIb3Vx6Bjtw=; b=skeYr2409un/YMkGUF9CAvVbCxhoW7QdxCFlj/CyyY4mP8sXerrCCAbrHB1ozarlk3 z5XJ4IghK/g+wkp8mqwpAm0u30Z+ZIDEDF3Gw0pDCrJNvkAE9M7UM5tRGRWWW68+N8+F 5wc68DkyREfSbe+LibxAYiD1F3q464U12Qjc08dUMdGdCi3eXcyNGu1wfqxVqpTKS3To GI2TzkiReDML6dKXDS4oEPda0gmRXx6Rwo1SmBKf/BgVLhg2/IiuIP6Kcd7qSenWZO48 MtXTspEarsz4qIcZY4tFZZ8046c72kwJA6jc3e9KoskPogWAzttYYZawjUecOWuVjOCr jkeQ== X-Gm-Message-State: AOJu0YwdaAwFL7UdCBljaZWHnFmfG2cdLzjDm8e3Xs/96Q8Z9trz4HwV YFsyBrr9dDUT4iLWU3OBsP7nAGX1eAgNSxpRxclIyw== X-Google-Smtp-Source: AGHT+IGaK5r0ABUmbcGqrQ/VQ9OyJdX+Oz6aExzb8moU/J2DSEwjzvPkZYR6qf9UgljsnBM0CyHY7g== X-Received: by 2002:a05:6e02:1985:b0:359:53a4:b23c with SMTP id g5-20020a056e02198500b0035953a4b23cmr24332571ilf.6.1700193888403; Thu, 16 Nov 2023 20:04:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:47 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , John Daley , Hyong Youb Kim Subject: [PATCH v2 06/10] net/enic: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:18 -0800 Message-ID: <20231117040432.131737-7-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 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 04:03:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134441 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 388914334C; Fri, 17 Nov 2023 05:05:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BD56D40DF8; Fri, 17 Nov 2023 05:04:53 +0100 (CET) Received: from mail-oo1-f54.google.com (mail-oo1-f54.google.com [209.85.161.54]) by mails.dpdk.org (Postfix) with ESMTP id 983D040A80 for ; Fri, 17 Nov 2023 05:04:50 +0100 (CET) Received: by mail-oo1-f54.google.com with SMTP id 006d021491bc7-587b1231dbeso805667eaf.3 for ; Thu, 16 Nov 2023 20:04:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193889; x=1700798689; 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=BW420YvD1qx1IzdBTn9ZDqrxYuHNyAD7HVBrK7Yw9zQ=; b=oAKKiW4Agc1oh9M4REutzbcBBQ6jIvDdAfSsZEReluBao7QOkQ+NFrcySI1WxdqyyM Sa7NLGZnadrM0dh8u+lPepZxbVGgvkdRwQS0sjG4P2A2kA9qbxiWRR35oifb+uPNRtZP 7xPT4Bs8zZUp0WrxQgjLwnJcuJUYf0sDEq+DLVpTMNAzn4syxLLcAKFYuokcdirQn9wS uXM2M8Wb6up/56qDN87md+/P5yyDWekySac7FAbM+PEzcrRbWyxD3kAIAR7fDEre4kTF GczPArJVgt4v/f9EeknDI5jRidaRkqevpwZjGS2vxowl/3oJi5nXtQvsQFoJfdm381Kn 5tDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193889; x=1700798689; 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=BW420YvD1qx1IzdBTn9ZDqrxYuHNyAD7HVBrK7Yw9zQ=; b=oXig+wU9scu8+DYshKc4acdyz+JZWxXH98GKDlrS8162FEtOrdfdfBh2nBOuTF3599 JUGszJuqdL4O+tmPMV4Sm9q7GMTLohM45cu1vENLTq7DVt8K6Xpde5X1VYvViwAzsp6H EwMYgEfBWRYDCd5uPoTug6ka8vHHlK9uu1t7SMAvrERVDXjHAvgB5ReJZbndHA7hcRFl KgdnwMHsmuFPNUHJx9wB6gi7A9wtNZF1zwPJOiVnlRf5aV3NocJ//Q2aBD0Dswo8aaea 9gSi0NZ7ZoiKRH3s+uaN1eBykmgNrtqE+IxGJxQYPjvHB8M/fz3mMCMYT8n3icF3ckMa Hx4A== X-Gm-Message-State: AOJu0Yw+VZNYbBL5dkiVye6iI1U/FjgswwlFh1hdTxmhEBgDR063DRdP EgkjM3E1xKuNHP2RraiKWdIG2icjFaxY5aShLnlDAg== X-Google-Smtp-Source: AGHT+IGoCxUgBdxSvJKDrhuz3Z9+b7R38d/BrOA7TmSe4gbh1pHcu/KGt5+qvMPky2e9o2mwZon0lw== X-Received: by 2002:a05:6358:6f04:b0:169:98e4:aeeb with SMTP id r4-20020a0563586f0400b0016998e4aeebmr12370629rwn.23.1700193889559; Thu, 16 Nov 2023 20:04:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:48 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Dariusz Sosnowski , Viacheslav Ovsiienko , Ori Kam , Suanming Mou , Matan Azrad Subject: [PATCH v2 07/10] net/mlx5: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:19 -0800 Message-ID: <20231117040432.131737-8-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 --- 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 04:03:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134442 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 E65964334C; Fri, 17 Nov 2023 05:05:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C249140E09; Fri, 17 Nov 2023 05:04:54 +0100 (CET) Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) by mails.dpdk.org (Postfix) with ESMTP id B195040A8A for ; Fri, 17 Nov 2023 05:04:51 +0100 (CET) Received: by mail-oo1-f42.google.com with SMTP id 006d021491bc7-589d412e8aeso809018eaf.3 for ; Thu, 16 Nov 2023 20:04:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193890; x=1700798690; 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=PXsUfn8zlrTPUShdQIh3qsoAkha80TpGHRBI65K5kBI=; b=EQAoMDnnZCX+66mXxAf6c2OKPiwAtvC+xWFGSSxedQdrvbpgBNdcOTt8XGxIvAsqHD M9ot4rgUthIYYrOBw9/09A8yVmONX7TlGrdHVYzY7peXZiJd9IuwVl+vlaEmmQTOZ7sT 8wVvGYp9Ao9enIZQq30gBa4AsFDiI6cnMT5ri84ySTiHG3sztSDjJk18Ydquk1W6owio i8lkb4ucinEVmalILCw19eOb6Zit6VgTxRx1HPAXB5J2yjseA1sHvowtYABDtMh6+lOL J3TDfi5/TrqhMeUAkfjwAKcV0BVksxiVHpALRWSz9vVPR1yu0/OHu/GakhzBABEi20gB xkKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193890; x=1700798690; 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=PXsUfn8zlrTPUShdQIh3qsoAkha80TpGHRBI65K5kBI=; b=JFxCZYYSk4lgskjeizaPia0Bc9rL7yrTfcNJTKliSUp2m8gvvhRbBjD/Sr/cV18BxW ddjphCGc3z1EVXCXAHvTjhZ7SX59zOqmAku59UBjof2MUs7WE4f116KUq/rfgreOD4MB mLl8NXQLcnFrFUKBeg0xJnAgng+KgG2Rc1IC9MaY5B0zpX8SwLKqnYbf8/VDrI9Ke5Yi +7IWg8xw5TnFmjs3Cwl7//LE7K9utmPru8LuYuzfw92WF26cBD6oXMeAhyWHzbKI0D+0 jY68EIMIR4EEZB3BQ9RiE0aPuLn7Vkp851xBKm8zotyUYS1/W5Z1+pokLaEBfpnQK/6y J9EQ== X-Gm-Message-State: AOJu0YxJoz+Ns+6iLu9RqUMJ7WgrRWqRPlJUUgBwGM7/akCltsguT2fj 2x5pgVWKsrRg7+bjkCWp23r2IOc+etZxd4zINEkkOA== X-Google-Smtp-Source: AGHT+IFsR6h9vPaK1rFXKEirpsa3ub8f8tFhpJK0Ck1kp9l7carNkP/zxr2LI/t0URrPdkOe90qzSQ== X-Received: by 2002:a05:6358:787:b0:168:de6a:d653 with SMTP id n7-20020a056358078700b00168de6ad653mr13600059rwj.21.1700193890663; Thu, 16 Nov 2023 20:04:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anoob Joseph , Volodymyr Fialko Subject: [PATCH v2 08/10] pdcp: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:20 -0800 Message-ID: <20231117040432.131737-9-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 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 04:03:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134443 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 D65EC4334C; Fri, 17 Nov 2023 05:05:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC45E40E13; Fri, 17 Nov 2023 05:04:55 +0100 (CET) Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) by mails.dpdk.org (Postfix) with ESMTP id 9C4904014F for ; Fri, 17 Nov 2023 05:04:52 +0100 (CET) Received: by mail-il1-f180.google.com with SMTP id e9e14a558f8ab-35941fd3a60so5929555ab.0 for ; Thu, 16 Nov 2023 20:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193891; x=1700798691; 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=1hT2iJfhwQBSqk5iKgD0BBaFttYbOYUEINng2jJ+cPo=; b=RVg6XGLaF/oziW+kEzch12blvh4IM5HKHhXdDUvwWx1EPSUv9b0mwKXY+7Ioqzk5Xj 5Huxbv/+YR81NVv2urwBiGkoR4HWy1MPfo2N4thybaJv8YW6ytC5TWiRSj2tEFJC5UGM kjwCIkOSgdoB9jLChG6Uje29KJ87H5VMgzv5WlYPQ5nw3QPf3djm7/dXymJIigHFFFsE +Xd3VqyXOom6q8fM+TPmKL/w6DW40pFSWas8HiNSCtrMWJjRptGNrt//P6KSbmopGYQl /Sw9JlLrOyF7g60CsmTZMo0ZCC7t8yTDTDyAjXSsurd/4YEGnz3QzdzXYMQx5ESao67W rklQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193892; x=1700798692; 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=1hT2iJfhwQBSqk5iKgD0BBaFttYbOYUEINng2jJ+cPo=; b=nef4xZ90qD3//8sSqozexAyCrVLDvCci7UoTs3yyUBWfjA4fVzyHFFcLc8ZLkXjIA6 5rSCqWB3gjGSO93UxV4Xwt640sa1VPTsU7MN95exHtdUlhsHX9F62JRvN3uppN1mDbYv SbNppaZgjwFNZrUDbmvHzHvPNINGF91f6qtfwmCzTuBN91WNinIhByMb9d5z5dEky1o3 KU68Gw66s/mvaTH+0bU32fNS6nUR9r/ciYyP85rpAWEFeJsvM6fJIvHGMALCDhzqRRb6 ccKMUgMdSvPITHsdQccW28V0Nxi/UBofs7ivP4yp9ULEfmr8XlzjM57rFs4IgUwXlO3x MqKQ== X-Gm-Message-State: AOJu0YwPa1ra7IgmwM3Gi7MQHRSXW5ae3usDX7+y2Nj0BxT+5iG2N7qF Vhogx1GU2pSbchFIYSJn65eaBaO3LrwU35BLAp8bXA== X-Google-Smtp-Source: AGHT+IG/NgsIFLWR6PHsZAmT9yixBiz4cvgxHTnfZGYr9YP/+v6fRrfdHjFkI0J2JcoJr2hsqWW5Cw== X-Received: by 2002:a05:6e02:1b02:b0:359:cc15:b0b3 with SMTP id i2-20020a056e021b0200b00359cc15b0b3mr23862064ilv.25.1700193891719; Thu, 16 Nov 2023 20:04:51 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:51 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Yuying Zhang , Beilei Xing Subject: [PATCH v2 09/10] net/cpfl: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:21 -0800 Message-ID: <20231117040432.131737-10-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 --- 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 04:03:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134444 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 9391D4334C; Fri, 17 Nov 2023 05:05:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D109340E36; Fri, 17 Nov 2023 05:04:56 +0100 (CET) Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) by mails.dpdk.org (Postfix) with ESMTP id 66346406B6 for ; Fri, 17 Nov 2023 05:04:53 +0100 (CET) Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-35942cb9ef4so5957525ab.3 for ; Thu, 16 Nov 2023 20:04:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193892; x=1700798692; 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=i5kzzoWRuXlnoSGzz8VOgtAixxAobaSo4Uf7RLlJDTI=; b=zr5GNH8Kvfi6kG7rAHa4tNgrM+HGLXzU9zEsTrPnwaU+mPNTBK3TrSVEQ855p95np6 8lj7oB0KvyBdJHyGPKjUh3/XetBmVXMGjGgaIUtUBczQcUHEhhQSjD++TScaiGOvoc0v CqRA+5M7Qn4V1QcEifoL4kUTfQpUCdJW9SN5UBcihiwQy1w1vpTwM7cfyxRy1+N4X8vm sTokeuocC5AEomUiVd5N692AugJ7fXU4tcvfgMGHGJ4nObu4zHA5QV1EHd0Mldj10KJj 7VW2segohOU3DyEmF2WqpYuO00LPF+iaZzbEa0No5ENSnnHJA2GkXwsEwHRTUsnVrm1x tCfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193892; x=1700798692; 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=i5kzzoWRuXlnoSGzz8VOgtAixxAobaSo4Uf7RLlJDTI=; b=VGY3ExTPMxpoFqIhUAfgMiotkJshezKkiapJlrJ6JT3kTUdlbeVKpUJOy5kOdNOstK wfRIvs8eDL3OA5ogsh88mRycOp1qeBRSrHuoe3Y4+x94qbOhsKmWG99LhiU3w/EuJbI+ P5I9YEx21q/uvpNYL2SdVAQrsM/CfTGPGFLWMvJPG5oKhQHfUQnkhhpRFUN3nrOF9T7j vLPwCuOVnkSjj1duBB/PoJPAIGpw2xdvO+wskxn2XEpjZL4FxiWWBdGLgPOamu6+rwkd 0VDm3wDKYk/vQsskpYEz2S4FkkColLwk81uP+3VIGPkkyQw3S6bMgK/OVaP8khUvkyki ig4w== X-Gm-Message-State: AOJu0YxYZZQmBQu/Cu3O+DsV/TS6p/Q0bLDTtURgxPYlo4W4tCRN3XKa cddYzPzRTrnEMp72ojNrqJbxEk5GbR5L8SFFowvxug== X-Google-Smtp-Source: AGHT+IGuKu6XWkPuejRuzdesHMCdO+cV1nqcSP/2FgyH+MRotgKK5IzidfPNRbgvaWuNb4Mu9Rmxqw== X-Received: by 2002:a05:6e02:16cc:b0:359:398d:7c31 with SMTP id 12-20020a056e0216cc00b00359398d7c31mr25795251ilx.4.1700193892598; Thu, 16 Nov 2023 20:04:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:52 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v2 10/10] common/dpaxx: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:22 -0800 Message-ID: <20231117040432.131737-11-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 --- drivers/common/dpaax/caamflib/desc/ipsec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/dpaax/caamflib/desc/ipsec.h b/drivers/common/dpaax/caamflib/desc/ipsec.h index 95fc3ea5ba3b..7bd82e4d0639 100644 --- a/drivers/common/dpaax/caamflib/desc/ipsec.h +++ b/drivers/common/dpaax/caamflib/desc/ipsec.h @@ -350,7 +350,7 @@ struct ipsec_encap_pdb { }; uint32_t spi; uint32_t ip_hdr_len; - uint8_t ip_hdr[0]; + uint8_t ip_hdr[]; }; static inline unsigned int