From patchwork Mon Nov 20 17:06:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134487 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 89C7343381; Mon, 20 Nov 2023 18:10:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F61242E33; Mon, 20 Nov 2023 18:09:57 +0100 (CET) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 8645E42E30 for ; Mon, 20 Nov 2023 18:09:54 +0100 (CET) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6c4eb5fda3cso4731296b3a.2 for ; Mon, 20 Nov 2023 09:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500193; x=1701104993; 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=axW83kaFQpytJwtixI/xIohYOx0RntDIlGPypGPEPKgF6+ahT6jcV4/EC2QgCvM09Z 8JK+M35QjOHlsajg4pxFduhiKM585J2D5LvRzKVkV/fpyND4DDd2383Wj7fRbdZ/JaYq 5t78AX6sPlwrpgwyJwfrn8sgWINL1aey15rMajUhSDpm62LzaRDjHCvrAOM0BAOqMbkA sg5oWPMlCTpM1ZOd8U8ptW+/ZVb+oc5TMoayPoezdOUEeiVZlTzGdXvtmT1re4Fl6z+y eqMO1+RKGaOw3TypE2sZOcqqkR26IrHESX5vvJAFXykH2aUBS6l/obh55wjbhkdes/4J DBYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500193; x=1701104993; 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=Zu87nsAd1xufZ/ddbCOjfmMn+CSu7Xub+wz7vMPdYKVsGkYYztSqEe3/vNZFGM71NH fRx/GACnxdhhqzSEMsDqwTZ5yZvO9BwEIZ1eCkNJrXbfTtFaSnNjBrPz0xkk5vG+GQ5E jQmSiutGkdeT91eeuzLyGBeGTkfJDV3LS+gsEdU165MJs3HXLp0NA8RRO9pCdtX7jMY5 +vrGFE66wUDrWIhEmn3cxfxjTiW+RdRL98UsvX4tn/GIhtS6G7Xin7Lt7JjG93tuwFFH YYQ2CIc+mpgDzyc0vK0PnALvUFYLRdboJqXIKl9jrhFLw+ZpekjeECCtizHsINI2tQkY +5ag== X-Gm-Message-State: AOJu0YxTj3L4LR8meQb0GEFtYfU8fiXlsuABEM5lk2Y+JPZZzrxMl1Do 17HRO3sOUBfoyVS0dyzaKEj6jA/SOewBG9vFmYk= X-Google-Smtp-Source: AGHT+IFS3UdoeJKtEzxiDCB6HFtvsZalEsWjdliAfeQKgHWx9zaa+7lf507uFOyyri6ExR0Q7xg7Ug== X-Received: by 2002:a05:6a20:2446:b0:187:b7eb:944d with SMTP id t6-20020a056a20244600b00187b7eb944dmr10523195pzc.13.1700500193351; Mon, 20 Nov 2023 09:09:53 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:52 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Yipeng Wang , Sameh Gobriel Subject: [PATCH v4 01/10] member: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:06:56 -0800 Message-ID: <20231120170942.197172-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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 Mon Nov 20 17:06:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134488 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 4934143381; Mon, 20 Nov 2023 18:10:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C190642E3A; Mon, 20 Nov 2023 18:09:58 +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 5A68042E33 for ; Mon, 20 Nov 2023 18:09:55 +0100 (CET) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6c431b91b2aso3943588b3a.1 for ; Mon, 20 Nov 2023 09:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500194; x=1701104994; 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=JMUx+11rjpf9bU7ONS1V+udoTDSscwR3YdxNfZbKGho=; b=xjqj2Pv/57JYf6yZSuy1JkLuc/EMUS4hSJukSiPoJ+U6WtXVDyaiPeIU1vKdNaiwpF HcpUTwmOHSD0e87S0owvtai5AcqQvOfuNd8zG5A+4zaiVa6swzXTQ8s6wMwP7XnRSyAT ZbUjVkA2ETUJWusR/kmYOfn/z0zjmyo86vd8+Dnmz0r28LgQiCxNx1986y7I6mRec1o8 FxNHyJKyMsSXliEytd/G9hzFCbdwNu6U9eqpbyQng7wUZLptUq5bnfNoZLUpyEBlXRBl kj7JN3y5ulrOCiqplCvIEeJwXtfAKnR6pjWrm2Bx9AdDLsV4XIS7F7QfNMUumAWcH40B +4KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500194; x=1701104994; 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=JMUx+11rjpf9bU7ONS1V+udoTDSscwR3YdxNfZbKGho=; b=Ad7MJtRL1fG+c0CVhhpEyXoNNdB4aQWkakV33xQS95QiVIW3B4vxGIvpGankAEDA0S xQfMBH7kZqIijI68CG8whWPkZJed0xYw62a4OZG76wX97VyiTVCdOWugiewArzpmqIU7 yJs5GKR/5qSkLLbLvSs6DUrAYW/RZWhbRB2N9bPwUYf4DWFXQe8zQRB57NJLChFsDbKf GALwuLKEZ8litSfKzToeWJahSIJpbZaoGm9vy9T9nCnDgdj7MIRSE0muV4F0K4vI3Gbc UpAABDW5qplz6jix8/PGDLazHhLXF42Uy4bXlhXJd6Hqn9wKxCnxEp+Uzsm4B3RRTwIK CATA== X-Gm-Message-State: AOJu0YzWz2QDUyFj/oT26VrT9EKFAOJoLJQmNSSZkBrfE2GFYWkZgzMF JzT+8biOS/HpCpi+9gb1hceNhRcU7JAjqUP6914= X-Google-Smtp-Source: AGHT+IE9on/cfICQ0yrY+dEFQIzdx0CFgy7FMV0+BK1Xqs16mHIJWEwOZr5Ok/HpDuu8hKjRKcDyLw== X-Received: by 2002:a05:6a00:3a12:b0:692:af9c:d96a with SMTP id fj18-20020a056a003a1200b00692af9cd96amr6277327pfb.5.1700500194419; Mon, 20 Nov 2023 09:09:54 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:53 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Ankur Dwivedi , Anoob Joseph , Tejasree Kondoj , Akhil Goyal , Fan Zhang Subject: [PATCH v4 02/10] cryptodev: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:06:57 -0800 Message-ID: <20231120170942.197172-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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 --- drivers/crypto/cnxk/cnxk_se.h | 5 ++++- lib/cryptodev/cryptodev_pmd.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h index c2a807fa9428..f86b859a08a4 100644 --- a/drivers/crypto/cnxk/cnxk_se.h +++ b/drivers/crypto/cnxk/cnxk_se.h @@ -29,8 +29,11 @@ enum cpt_dp_thread_type { CPT_DP_THREAD_TYPE_PT, }; +#define SYM_SESS_SIZE sizeof(struct rte_cryptodev_sym_session) + struct cnxk_se_sess { - struct rte_cryptodev_sym_session rte_sess; + uint8_t rte_sess[SYM_SESS_SIZE]; + uint8_t aes_gcm : 1; uint8_t aes_ccm : 1; uint8_t aes_ctr : 1; 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 Mon Nov 20 17:06:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134489 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 68D6143381; Mon, 20 Nov 2023 18:10:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E32C042E3E; Mon, 20 Nov 2023 18:09:59 +0100 (CET) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id BA3E542E33 for ; Mon, 20 Nov 2023 18:09:56 +0100 (CET) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6cb7951d713so1030686b3a.1 for ; Mon, 20 Nov 2023 09:09:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500195; x=1701104995; 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=yEKzKRIIaWE9lNV1/rByD+w1Et4DAJ7x0JPVtmPYzJo=; b=eCawuYGh4R+xVPNBxgF4m8od2sYdLdYqbwBFxoi/yOVGOrkVYocR6No7mXQFb7663H 77fdDvNgmx7Z2qgVB8R1OVFLJrkkg2aaphm9JEe7tQzPUxL40Yrzdpf9tzRgerDUTR39 7C9s3j7OfQqHHE6e0pc/aC0TJhpBb/h4cxXnMwsLKYTQ3MXDsuo3GJZuNmUKGThiH3vr ljSjh6tfPhFMFZUiw2L9KOUs+oYkXAUIXTAyb2K2i/H7LoRfigiOcQ3IkVj4pJMoL6NF 0dkMl8aE4rd1nHo3LI7DWPTiA+0GTByVcMACDyxGQaT+LWIbcm5i6LA7RfeFA9osP/ek VaXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500195; x=1701104995; 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=yEKzKRIIaWE9lNV1/rByD+w1Et4DAJ7x0JPVtmPYzJo=; b=gKy3KVRnXm6ygx5V31U079hBjDqRtwji83sBVii2W/lOZsJLFtiroVN/sJv/vY1tW1 hybYvbIJ74D2iRvqj3QrNbjg01sTptzcJAwnS6Wya1mFGMFziozpmEwECxVejGAwWOzw 4Q1DiR+CasnSqXCMDTzSccw8ngJg/JLyYfJBrJMF8CFAXZZmB2Nbltk3eWcw2jlvCN9z fzMniTydK/dl7fh765YoaDF3rQqRfjhu9EqIrD3KLHOKfbuPmJ7rAORZsBC9XsZYTFDg H14/JxjCPlTuEdyDnfu8x5F1BXX6nM+YPekQYkvRNaZ3Nv/DgyaUUJi79vTm7KRdk719 s83A== X-Gm-Message-State: AOJu0YznKA/z3QBpO+/Sex4Y6twwzQnKFNzTsEOab7tpfYoz3GRlfBy1 8GyBKHrtGKBYvql0u9hrhhGQHq3rKfcwnZyRxk4= X-Google-Smtp-Source: AGHT+IF7lQRpvwD78twJ9ewAJLOtZNIxIB3vodhTNTc5f37SLqXGO0uGLWYtVwwvnGQRqMP8M7AUSA== X-Received: by 2002:a05:6a00:4502:b0:690:f877:aa1e with SMTP id cw2-20020a056a00450200b00690f877aa1emr121954pfb.12.1700500195497; Mon, 20 Nov 2023 09:09:55 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:54 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Ankur Dwivedi , Anoob Joseph , Tejasree Kondoj , Akhil Goyal Subject: [PATCH v4 03/10] security: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:06:58 -0800 Message-ID: <20231120170942.197172-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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 --- drivers/crypto/cnxk/cn10k_ipsec.h | 4 +++- drivers/crypto/cnxk/cn9k_ipsec.h | 4 +++- lib/security/rte_security_driver.h | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/cnxk/cn10k_ipsec.h b/drivers/crypto/cnxk/cn10k_ipsec.h index 8a93d7406204..144bc8319dea 100644 --- a/drivers/crypto/cnxk/cn10k_ipsec.h +++ b/drivers/crypto/cnxk/cn10k_ipsec.h @@ -24,8 +24,10 @@ struct cn10k_ipsec_sa { }; } __rte_aligned(ROC_ALIGN); +#define SEC_SESS_SIZE sizeof(struct rte_security_session) + struct cn10k_sec_session { - struct rte_security_session rte_sess; + uint8_t rte_sess[SEC_SESS_SIZE]; /** PMD private space */ diff --git a/drivers/crypto/cnxk/cn9k_ipsec.h b/drivers/crypto/cnxk/cn9k_ipsec.h index 1ea946afd8a9..d28642e3a627 100644 --- a/drivers/crypto/cnxk/cn9k_ipsec.h +++ b/drivers/crypto/cnxk/cn9k_ipsec.h @@ -20,8 +20,10 @@ struct cn9k_ipsec_sa { }; } __rte_aligned(8); +#define SEC_SESS_SIZE sizeof(struct rte_security_session) + struct cn9k_sec_session { - struct rte_security_session rte_sess; + uint8_t rte_sess[SEC_SESS_SIZE]; /** PMD private space */ 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 Mon Nov 20 17:06:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134490 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 3E63643381; Mon, 20 Nov 2023 18:10:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7599C42E4B; Mon, 20 Nov 2023 18:10:01 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id A64DF42E35 for ; Mon, 20 Nov 2023 18:09:57 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6be1bc5aa1cso4723349b3a.3 for ; Mon, 20 Nov 2023 09:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500196; x=1701104996; 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=f9i+DblUg5aNIiKJccurswNV8n66Giyrt6QkzMhU03RTB4UjC6bQAZ6ViTWlhsuQAJ 3WF6gdlfDwxKDT4ZeHrjSYXl9hSf2j6t8LyroMdo0vkeh4XhUDuHYYSzQffmuKibV+8t EPG1+xAAt1qHzyR15ZgS5PhjQs9/ps0agWjW6uIqsqAkHfd8585/SVyprGi2/jeW0KMO 08Qb9cI53VqhcUyEWneUNdZ9tKLgI9rkqfjUzTVrCi+a1zngiLMsVNZc0OO88p5wRDyy vn/sOyZOcXEw+D+QbVVPOGDQ0V0UFl1eL25OPvn+4mvNEavBr5vw+VIj0/6aRIDzdIXS Rgrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500196; x=1701104996; 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=O/WeL1aaOgVAqP/FIg+Dyvy2FIEojBXGrra3yLu/wRpk4MwxU7dxJbNl4aC7hOoQmZ AtBmDYB8kgeweUxnvz8GU7CzTj9RNMhk0/RFyro47ICHi2tikMnUDqcOWZdHoPboKqaP hitcWW0kKLYX03a6SVvjF+gSxu5l7csTCNGdlQz/Znf639/NxXhOBMvXkMLYaPvLEMZ3 m3iDpT65y75sPBWv7C3B2/yvrZ9QxFc+afIDA76iYnEpPzHeMhIBHVUuQlxeG/EsnEfw r/BO9awt+XSyY1x/ZfHiCZt95kcBuc8SN7zXklNkzqrJzT1fHg8w87BIgIYqwCPInyJU +Urw== X-Gm-Message-State: AOJu0YwJW5g6xXtRS2DwG2c9idXbdSfUgIgvgjQSA659kIetDlYyMkAK vz0afvFqn9mbRkbmWfwtJo7DM20SSYjf48X9JaE= X-Google-Smtp-Source: AGHT+IEFnHDaR1NlveDhv1dMTiCRIoZud5iWmIsUAhrFrUeV1Ek7NxWsmcxoAcJoRxYxJyGMQspyvg== X-Received: by 2002:a05:6a20:7292:b0:188:1281:8994 with SMTP id o18-20020a056a20729200b0018812818994mr10208019pzk.35.1700500196647; Mon, 20 Nov 2023 09:09:56 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Cristian Dumitrescu Subject: [PATCH v4 04/10] pipeline: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:06:59 -0800 Message-ID: <20231120170942.197172-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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 Mon Nov 20 17:07:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134491 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 1180B43381; Mon, 20 Nov 2023 18:10:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 817DD42E4F; Mon, 20 Nov 2023 18:10:02 +0100 (CET) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 0AD9942E3C for ; Mon, 20 Nov 2023 18:09:59 +0100 (CET) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6cb66fbc63dso1198670b3a.0 for ; Mon, 20 Nov 2023 09:09:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500198; x=1701104998; 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=xzP/9jCx4/55pZRCdDKWWDADwDFjewarBH8P2ukJ5k9wX7hjURFAJGk9Dvsjz40YZr Uvd49CUgqflrTtkDzwv3YDNG5RlVMQa73IHZFrkbifHuC7tBR59ls2dV+KgPTb0iFqkt vru0Kr15sJ+K6C7OI1JtA2602qRIlv8HOd3rgrvP1UMM8UHKiEdRfTXM3d7teUti+2SB otBT5Z0L2d1IRN/fmHosGq8W3XNdr/QXLJOmspNIj4I901FBwYlUa4BiwfdaORiFE6h+ k2yqaGasAo8LJt/qKbJP9KyMGq+AG2XlRtE4zKTyhCFosP/L0F22Vb5f0X8Qt7bpk2IN dk3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500198; x=1701104998; 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=U9QiuNDo/YiJBW27KeNm3QWBXz8fwN746OK3FfsK36B7rLeBrSLJBJSFOls79OMm1s 3zRV9QCNdcreAI1wx48AaDFNnkpG8ETSG0JaR/lS9UWjuIXg2vUgvrtwvhNC1ZbpT1HL qEKQbZn1k2Bi4SNgHTNdNJ/gl4rp3yoS/u1GXmyhQcrIGFtr8p4FBb+G92sGD2dGk4wq SArIWYeeRT/SCZcg3dMiDhCDRHrl/SITyYaBWUW43JS7SKWj1TpNqWvPzYt8rg2iAvUU a6CCGodb81TQIpo3HorkUQoawxdp4KvPXFTDbusPsDJxWe19iR3iAAmqQWHrI3lW350j pg3w== X-Gm-Message-State: AOJu0Yy1baJEtT81a1gJg40bE5xzBL91Gxyrp5jQzlQUcuxTb2+YIP1q g9hyB0YTJR5g1Bcw6KZpUuafeM3JYQHpcWFsWNE= X-Google-Smtp-Source: AGHT+IFGCql5kGZGpVFt01q0SGYFD1fiTSVlOBltKOtDnaqHrmRDJz4tmRneKajSX2sL1JNSykVz0A== X-Received: by 2002:a05:6a00:1803:b0:6c3:4bf2:7486 with SMTP id y3-20020a056a00180300b006c34bf27486mr134595pfa.7.1700500197444; Mon, 20 Nov 2023 09:09:57 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:57 -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 v4 05/10] net/nfp: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:07:00 -0800 Message-ID: <20231120170942.197172-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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 Acked-by: Chaoyong He --- 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 Mon Nov 20 17:07:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134492 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 5409A43381; Mon, 20 Nov 2023 18:10:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9833B42E53; Mon, 20 Nov 2023 18:10:03 +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 8D84B4027A for ; Mon, 20 Nov 2023 18:09:59 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6c34e87b571so3661641b3a.3 for ; Mon, 20 Nov 2023 09:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500198; x=1701104998; 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=ukg5VvJ6iDzDEHQgeEwnu4wKupKKnY5MKLl8KqqjlH+84Wi44GypkaEFXwteiqKa0D LMzM+42AhyoZjnEW3z//95yAXO+WlcKaMzpi1kF3cEXtRAhvCZAkp/VvKKZ/216M315L /ljxRpZShjSLh8H8RQ/HI+Rui7FhzHgdarLhEllCryIGS3w3OadWE8e3YDoZdkssLL6z YwfAKzO6naoL2J6mMgh3QG/OiZzZdQXxeN/uoU5eSR3iEtO9iOakKsMl4R5IMpVBpzOT a3OZ5NP5Ft4pl1+R664rHn2Mq/Srg9P+BUGUmN+7Sk6qwhHsWiKx9jxhOYBAXtOqjYui 1KdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500198; x=1701104998; 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=tyMwcHtIXa6kgYV048bOMMjlHrnQZdQ/x/gOb+uoAuyLwj422m94SgzySGZ+7mZOsF RWvRxM3gqFiD9Zq4eOpFzOiA3UN068tWI8te5d7rNtPtqJwioRzMw7QJHmu/MuGBfvf0 YyeWUcIZ9YtEmqSWD42vBlXnZW2sz/MsYkLZwmmKWa4BS2LPBpI/TPYZntDqBBond4WP P3uf+hmtGxS+ORjKYbk/NyuwHErDq8SxGjRjY6VMMz/qJkQTA4mkN/yD4LOY7iWv3Qof Sou6Nq8jxyYNkwl961coWxNw+LlVlP2wteqwnAs0ZOB0mSQc8aXIZtYsjDosQfDG1L6+ XO1A== X-Gm-Message-State: AOJu0YwopGV7xVN8Tr3tsUyKE6OghZf0QoPPeVaNVZRjKd+VgvCFzfz6 MIg4YCjTM0TtFsiVSCVzAm2/Bac/p5QrlE3cjHc= X-Google-Smtp-Source: AGHT+IG+PkuA7Krl4lO2X8X5XnoglVvD2+tpc5x321BRoHfA/TeDqxZOeJv8SRTHXt2QuXjp6EqjpQ== X-Received: by 2002:a05:6a21:789d:b0:187:15e2:fdd9 with SMTP id bf29-20020a056a21789d00b0018715e2fdd9mr6538690pzc.39.1700500198249; Mon, 20 Nov 2023 09:09:58 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:57 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , John Daley , Tyler Retzlaff , Hyong Youb Kim Subject: [PATCH v4 06/10] net/enic: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:07:01 -0800 Message-ID: <20231120170942.197172-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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 Mon Nov 20 17:07:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134493 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 3628343381; Mon, 20 Nov 2023 18:10:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BC59742E56; Mon, 20 Nov 2023 18:10:04 +0100 (CET) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id C0C6E42E40 for ; Mon, 20 Nov 2023 18:10:00 +0100 (CET) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6c33ab26dddso3952912b3a.0 for ; Mon, 20 Nov 2023 09:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500199; x=1701104999; 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=gu/I48NnJE0tjOGD3OhEB8E8ESrmmEJvWCBDv7JyotU=; b=TzWny6e86v3HoYAM7WDEBD9dkJDMqH3xRX5/Yz6ixSs2rLoPHz6lx1W0gVNZASgISf oxMYo5b9TE80ffSoheY9WlWgFD8UiwEm6NHxuZfvb5sOrUqbsD3N8VZLCorO4Y1ga5QL kTubAB3EdZ8CX8DkrkQO8gKyEtIWBkycxmuNrR1Kws/yYNO1qPLC1463k1lOMEhnmfTn 6wwoY6MZXFZgHCm991U6OeV4WusoyX+nWnKUJax2QwDHUgvZR+19fEiUpuCnRaY78bvM APFl2mOiuiOdN6AZJp+TT5Mj55NTpIvO0nPT4UQhI1wkAj+VyMqDFTEUd5bnkHrkLfoB 6ykQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500199; x=1701104999; 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=gu/I48NnJE0tjOGD3OhEB8E8ESrmmEJvWCBDv7JyotU=; b=h0wE+HvBDlN7gWWDlSwQh6dCxtXuPReV38K3Radu9Hmm1ywDvewLSFk1aocV2ouLPt 6C8fhHgGTddeez2ehCgEbNr9uhOFIkLfQ6qdoQb205izE6SDqKQt0OKQaj4P0iGD+p99 wql4d4wE035nW17fEFQl5oTN2tRhjGJkshR9+OWsjBbvvMmd5aiPwtmaWvkuh0FTUMnv OcvJvqbC2z5bT3H7qQnvfeb8xGVF5WBgP7qGgmssq+tWPf8+q0dVxsU5jQsBINLdMpzd BwQQADlUnETSt5WqVeHXdLCTlR4vH3gWJ2Hd6xwtE8lDRNGWcBCJ9rU/o5DKiWDdSTvW dVdQ== X-Gm-Message-State: AOJu0YybOevpjo+N6Jads6d48KeAD88TCErh46LOtyQM/wtCe5hTYOYJ b+Fn6Kjph5ifybZCg3668FiPJ14SWC9eykpYcwQ= X-Google-Smtp-Source: AGHT+IEYK6WRN27QBokr1FA98cjvYGmkdF3OwnZBs/B5eTGwaV95iimVofE3HOCrb48CFhBRaqG5xQ== X-Received: by 2002:a05:6a21:6d88:b0:18a:b5c3:55c1 with SMTP id wl8-20020a056a216d8800b0018ab5c355c1mr1216744pzb.57.1700500199412; Mon, 20 Nov 2023 09:09:59 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:58 -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 v4 07/10] net/mlx5: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:07:02 -0800 Message-ID: <20231120170942.197172-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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: Dariusz Sosnowski --- 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 | 3 ++- 4 files changed, 6 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..b1e8ea19a2a1 100644 --- a/drivers/net/mlx5/mlx5_tx.h +++ b/drivers/net/mlx5/mlx5_tx.h @@ -171,11 +171,12 @@ struct mlx5_txq_data { struct mlx5_txq_stats stats; /* TX queue counters. */ struct mlx5_txq_stats stats_reset; /* stats on last reset. */ struct mlx5_uar_data uar_data; - struct rte_mbuf *elts[0]; + struct rte_mbuf *elts[]; /* Storage for queued packets, must be the last field. */ } __rte_cache_aligned; /* TX queue control descriptor. */ +__extension__ struct mlx5_txq_ctrl { LIST_ENTRY(mlx5_txq_ctrl) next; /* Pointer to the next element. */ uint32_t refcnt; /* Reference counter. */ From patchwork Mon Nov 20 17:07:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134494 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 A6FEC43381; Mon, 20 Nov 2023 18:10:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C12E42E64; Mon, 20 Nov 2023 18:10:06 +0100 (CET) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id A9EC542E4D for ; Mon, 20 Nov 2023 18:10:01 +0100 (CET) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6c32a20d5dbso4035566b3a.1 for ; Mon, 20 Nov 2023 09:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500200; x=1701105000; 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=kEkQe0pHl2po+k5DxouhYPB/5OHDrrIT8O8Y9kUcOm0j+nYDeq/1p48T3NxXIpT7pz 9pWgYGVWZ3Ci4Pt9IZ6eQfUAK0dduYFdRc6gs0eeOnCzbH4ZxXdDy1DK8EiJ3DORIJ2d MV778pTcq+z+LOK3Q25cCy2Yjd3sjnBW0XhShosTujPHi/yZXxv2P3hUPDiHwZAslRTY R5VAlPIS01icyKZcXamcrql3XMAEDott12dFJD0Vyz8nw99yZ9Iegxq/K43iDsjnJzeO WWCuuN4VSIA/L3SM5M9pNnet+fF2C7ApU3nrilgTbLyXjFk1iRSFavjUmfUZSNzwkVPz I/Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500200; x=1701105000; 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=A/A1NZpCHeszRTYj1MC3eeQBhGtqd3G9zvdeHPGVFmkiG+oTRkQ1mc/qHMdeb1ysG9 7xzgkj+4aDRCJQI//3gUDozFV/D46eXr+SOXR9L7mgk0gCMub7Zct/bPRiSEOoWLHxBF Uv3QWyLUOEiGhIjCZ0bSPvzcJDTk2OMvG9tfB57CzbWLqWtee8Rp/LC3SJu7wj/3w1Nl b3vzT2Bk28VOdhsGiqUhsDB2OXv/Ldio4iAQNx3i4Za8EHPVva9BrsJS9fPOau8Rhyir 4Fus3HSHGCdChmePK+FBi0dGhcwH4XfZtQndN29c03PlJoribSjHbNgl+Uacq+dC7Bro Hr0Q== X-Gm-Message-State: AOJu0YwFHUCBYQJSu/hcQ6Qw0TGr42/0YL/3rQ0Dc3M+OYlE7j42BJCb fugSg93GrwouroVqd4shItrkDfY51805YNrIJdo= X-Google-Smtp-Source: AGHT+IE7vM/yWIfEmsXA98YfeDHzEHcKZic1gVa94x9B43fO9bJTcvLRuxTr3hBVDvnsDohvcR0q0w== X-Received: by 2002:a05:6a20:42a2:b0:187:5c6a:9f17 with SMTP id o34-20020a056a2042a200b001875c6a9f17mr6643376pzj.62.1700500200535; Mon, 20 Nov 2023 09:10:00 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:59 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Anoob Joseph , Volodymyr Fialko Subject: [PATCH v4 08/10] pdcp: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:07:03 -0800 Message-ID: <20231120170942.197172-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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 Mon Nov 20 17:07:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134495 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 406AA43381; Mon, 20 Nov 2023 18:11:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D70042E67; Mon, 20 Nov 2023 18:10:07 +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 F2B4342E51 for ; Mon, 20 Nov 2023 18:10:02 +0100 (CET) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6cb74a527ceso1018530b3a.2 for ; Mon, 20 Nov 2023 09:10:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500202; x=1701105002; 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=roMS4psLoh7+MGWqmYOTd6dnqsKKopGB+C1Oqm5J3BzlokYAL4bugYhz30oW1fKj0q uOK1QHIHOnvBA5lJv3t1/rXdkSboINHqt/xlOX2ZgrllfnTfkWj4Du1u7/fR4ZyArun7 fiKp5AQ4ma1WdI5Rr2GCmg26jXhgBbH6pTBcy3akP4NKLKqxBQnM4rJDaBgBpUsNM+Qk k9czUrrJbN7ed06Lkr/wC3Y/JgZGWln8CX/znQ5sBWrzxMPKeCmYaS7Kc1WxubRZUdak 9ZWULdF37Sz1QFS5szx/YSpMfVJTkkktnjDen21QtvRNnHCQBztS4QlbobRr+WKs6d3s 2CgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500202; x=1701105002; 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=lVN87grhwlYlsiUNHcg+LBQR3waUxKkOcJG2ntNFAcb6ivMQo3Qa8IJfBme5xAWlGe cY2/H+cTBSy6xTfXVMyC0yKe5dI7cJV0ISgF5rM5nDTdnuOkalKNmxBeFgWOul6FO51X 7FOEA3YDDm/vmOYsuc2zZ346G3UoY8KNseP7gczsxmdSf05nv7MITaJmRhWWsbI/qGMf +8ciQz+aCv7NxesJfXtU0BQTBRCcKyYs2EkNnb24I3nbbDBUOQV2mizzaLul00DtQos3 lhOKJWTRawCHOOqJUTXM1QU5Jd2GVU+LLygdsMPuHNWxZS7VoKx+1t6bZsfD9n32nw8S h6tA== X-Gm-Message-State: AOJu0Yzm03eUTV7FM8M//yLbF3K4lzAJq6OEdEyvpVL6OWd8nsxi9r5l HGonq8B8V7O4rA/rlsgxiM0xVvhkHNjGUKAoJf0= X-Google-Smtp-Source: AGHT+IGx4E+iRCXYRjqt9Fy4wNVQl6qgcKIVMz33VxoOSde0RL4ZAGsU24ZN+g76ZgdvjP8JvYh8gQ== X-Received: by 2002:a05:6a00:a19:b0:6b5:86c3:ccaf with SMTP id p25-20020a056a000a1900b006b586c3ccafmr5518293pfh.22.1700500201650; Mon, 20 Nov 2023 09:10:01 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:10:01 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Yuying Zhang , Beilei Xing Subject: [PATCH v4 09/10] net/cpfl: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:07:04 -0800 Message-ID: <20231120170942.197172-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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 Mon Nov 20 17:07:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 134496 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 D17EB43381; Mon, 20 Nov 2023 18:11:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B04F42E6B; Mon, 20 Nov 2023 18:10:08 +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 4FAF242E4A for ; Mon, 20 Nov 2023 18:10:04 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6b87c1edfd5so3665129b3a.1 for ; Mon, 20 Nov 2023 09:10:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500203; x=1701105003; 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=Ew2rz4mjBuGFUWM4YPWUPH7KUB9MO4JRdBs3fFYkYIpOfqIKterEFZXI625l6AWBV9 KzOGl0/o16tf6eNK3ZM6V8Uo/xChYnfyyhrWkkxqXOTLgbok1RGb8tCw/exlkcsHz/Iu IykUI1dNhqaNUvAd+IxJSYqKEEvXcOMVWggGUkol48wJCzBBX95ZkmY9z7GOrB6MTLa+ 9VGjsZxdq3C7jn9MPgpHg/TFVNBwe8ZZWWNYEKHdJw2i5IGAGajzZ17QR1/wmNkY9ol0 A6c6poSpyn4bQ8sJtjo9hDgqRNv3kCOKS/PNs2rABhWANuE6ZalEAk3A6WuqVoeB0N8b s2uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500203; x=1701105003; 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=IxcYxuZlndQE1ppJX/YcSASMc1iesRNhRgK0gNzsLyOeqyi2h4msqny3aMLawpWWNh 7GiA5I+AWpYbSd8LeDBWgi9oQlRjKNY+nrJDhY0jqQr8rXrrzKk8QDLicInxlU81vYqg ntFJR+UqjgGZ8Cye+rERQCj17qF00GfiEsDkE95uqWASpjtANx6s4KosruC6EBZipbYt 1dju858+OTKyn3ZQ6OYFD3ZDQNcshPam1Zm9k8MZuy5w4bstfY/y+sQw+OkyyKA/QHRL Z67xjacsmmd3PPPRLPoaIcjbOQpZSNs/jA/Nrubax9wJO62vpiEEbsg0iCdMtLqwPDPv N4XA== X-Gm-Message-State: AOJu0Yy4zPE/rIw2BpwP6Ot4vLG6D3OdWrJ+0+Aox9YaNrAUeHmOg4ME IX+u04IZ6FBfBsfCSby6chEnMbVvTSvqhLLed6E= X-Google-Smtp-Source: AGHT+IH73CwPTAnOgdeg/meZVTQiFoGgGBOGooYCtPhZZt6FEIb8q/6ZmC5U+MEwMBPz5tycSh0n4g== X-Received: by 2002:a05:6a00:3a0d:b0:68e:2478:d6c9 with SMTP id fj13-20020a056a003a0d00b0068e2478d6c9mr6014854pfb.2.1700500202939; Mon, 20 Nov 2023 09:10:02 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:10:02 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v4 10/10] common/dpaxx: remove zero length array Date: Mon, 20 Nov 2023 09:07:05 -0800 Message-ID: <20231120170942.197172-11-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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 Signed-off-by: Stephen Hemminger Acked-by: Hemant Agrawal --- 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); /*