From patchwork Fri Aug 11 22:22:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130217 X-Patchwork-Delegate: david.marchand@redhat.com 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 585C943038; Sat, 12 Aug 2023 00:23:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D62884326C; Sat, 12 Aug 2023 00:23:05 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id EE29D40F16 for ; Sat, 12 Aug 2023 00:23:02 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 0D34F20FD0C5; Fri, 11 Aug 2023 15:23:01 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 0D34F20FD0C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=6FkmY6WwycWTyFLT+MRUzrYMCpRi9kdu+knkFJjBh+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AqO/SxcLc+y0f1Ll3Et3NZRo6emqtt9vUgLpEQyO3kiHLcDSBkgH11YxIhp/MHdsM SgXbgeQDK/etaXhVYkhJYmxjni24sYYo6hZ1adalq8hj4rGofRVAadPAMgHcmsEUMx Jf9WT9U215y/KdcjkGZjDOVLk7Zjr30sa3q/aeLI= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 01/32] timer: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:16 -0700 Message-Id: <1691792567-10805-2-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/timer/rte_timer.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/timer/rte_timer.h b/lib/timer/rte_timer.h index c8710c4..d3927d5 100644 --- a/lib/timer/rte_timer.h +++ b/lib/timer/rte_timer.h @@ -64,7 +64,6 @@ enum rte_timer_type { * config) and an owner (the id of the lcore that owns the timer). */ union rte_timer_status { - RTE_STD_C11 struct { uint16_t state; /**< Stop, pending, running, config. */ int16_t owner; /**< The lcore that owns the timer. */ From patchwork Fri Aug 11 22:22:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130216 X-Patchwork-Delegate: david.marchand@redhat.com 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 B5BC243038; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63C7D4325F; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E8DB740E0F for ; Sat, 12 Aug 2023 00:23:02 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 1D31920FD0DE; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1D31920FD0DE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=TIRCWXtETPbzffOpCVRu6W45XmKOgURlAsEa2QdpQHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cLyFvpYbGGRfGugKYmQ2GKl/ELCaSdgpilL4iKQcH7tRQ75YSuYKSOLzNslzDmOsV Kzu6a/ClVX+gDzcxP9kqlf0Z+ORi+v2BMe1VpIOY7Pe+VUzWwpIAB6wpeMKRcx3SjV xJobtSjO76iCbMG/6ryuAGhM2FxS+ty3lHMXrg5I= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 02/32] stack: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:17 -0700 Message-Id: <1691792567-10805-3-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/stack/rte_stack.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/stack/rte_stack.h b/lib/stack/rte_stack.h index 278a5bd..921d29a 100644 --- a/lib/stack/rte_stack.h +++ b/lib/stack/rte_stack.h @@ -78,7 +78,6 @@ struct rte_stack { const struct rte_memzone *memzone; uint32_t capacity; /**< Usable size of the stack. */ uint32_t flags; /**< Flags supplied at creation. */ - RTE_STD_C11 union { struct rte_stack_lf stack_lf; /**< Lock-free LIFO structure. */ struct rte_stack_std stack_std; /**< LIFO structure. */ From patchwork Fri Aug 11 22:22:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130218 X-Patchwork-Delegate: david.marchand@redhat.com 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 F34E843038; Sat, 12 Aug 2023 00:23:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B79F43260; Sat, 12 Aug 2023 00:23:08 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 0029640F17 for ; Sat, 12 Aug 2023 00:23:02 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 2D44220FD0E0; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2D44220FD0E0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=XilVMcLekdqQw0on/0zbmkpqdlo27ZA/mxi3V0SGoMk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MNQeCzgNJUeACPJPTgK2TCZmQhpLp+gUPl5hi3QTy1YSXCK6w2pYMz26ax7DzyIMd q807thNeHlwDBwUJAGBCsPOGSrxI1CIQDI1Q+Yl9KDWzHpbzMJu3LSrsNZQ9wwBYtv 9yX3tKVoUPzjfFspnPWgRs5rGAtl9dlNx2N47+qg= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 03/32] security: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:18 -0700 Message-Id: <1691792567-10805-4-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/security/rte_security.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h index 3b2df52..3f8abfe 100644 --- a/lib/security/rte_security.h +++ b/lib/security/rte_security.h @@ -94,7 +94,6 @@ struct rte_security_ctx { struct rte_security_ipsec_tunnel_param { enum rte_security_ipsec_tunnel_type type; /**< Tunnel type: IPv4 or IPv6 */ - RTE_STD_C11 union { struct { struct in_addr src_ip; @@ -664,7 +663,6 @@ struct rte_security_session_conf { /**< Type of action to be performed on the session */ enum rte_security_session_protocol protocol; /**< Security protocol to be configured */ - RTE_STD_C11 union { struct rte_security_ipsec_xform ipsec; struct rte_security_macsec_xform macsec; @@ -1050,7 +1048,6 @@ struct rte_security_stats { enum rte_security_session_protocol protocol; /**< Security protocol to be configured */ - RTE_STD_C11 union { struct rte_security_macsec_secy_stats macsec; struct rte_security_ipsec_stats ipsec; @@ -1126,7 +1123,6 @@ struct rte_security_capability { /**< Security action type*/ enum rte_security_session_protocol protocol; /**< Security protocol */ - RTE_STD_C11 union { struct { enum rte_security_ipsec_sa_protocol proto; @@ -1237,7 +1233,6 @@ struct rte_security_capability_idx { enum rte_security_session_action_type action; enum rte_security_session_protocol protocol; - RTE_STD_C11 union { struct { enum rte_security_ipsec_sa_protocol proto; From patchwork Fri Aug 11 22:22:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130219 X-Patchwork-Delegate: david.marchand@redhat.com 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 1FA2A43038; Sat, 12 Aug 2023 00:23:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7B42643265; Sat, 12 Aug 2023 00:23:09 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 247E3410DC for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 3CF2A20FD0E4; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3CF2A20FD0E4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=NilPvL5C6QvRs1ETGHalP7b/B/jJcs7qmE+q7Orb3RA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c/A3SIfMLkhNtz1k/7dmnYG0H5IHak6wsmGo/TB7Czq6b2ZNgmu6/DXEpoWNmeR9z 6HsczKAUJu/NJHAMPnFV6O4OBO5RB0GNJ4uxKn2i47IgGUdzNqaoOk+DC6O6q/UW/Z KiSTtAH088BMQ4wX8NZywS0IGv/P1F3/+OUqvxeo= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 04/32] sched: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:19 -0700 Message-Id: <1691792567-10805-5-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/sched/rte_sched.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/sched/rte_sched.c b/lib/sched/rte_sched.c index a1ca710..751f6cf 100644 --- a/lib/sched/rte_sched.c +++ b/lib/sched/rte_sched.c @@ -81,7 +81,6 @@ struct rte_sched_queue { struct rte_sched_queue_extra { struct rte_sched_queue_stats stats; - RTE_STD_C11 union { struct rte_red red; struct rte_pie pie; @@ -180,7 +179,6 @@ struct rte_sched_subport { bool cman_enabled; enum rte_sched_cman_mode cman; - RTE_STD_C11 union { struct rte_red_config red_config[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE][RTE_COLORS]; struct rte_pie_config pie_config[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE]; From patchwork Fri Aug 11 22:22:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130222 X-Patchwork-Delegate: david.marchand@redhat.com 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 2BA2643038; Sat, 12 Aug 2023 00:23:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FC094327D; Sat, 12 Aug 2023 00:23:13 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id B1E6A400EF for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 4C81D20FD0E6; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4C81D20FD0E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=fIT1D5jaZJPcvoZ7Vm0g3Ph4GF7omBwRDeodgfB23Zw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FPKQkKrosLvAm0j/20AYz2Scm4SaI7/Q5UlGDhq2NdMCANpx0QP3J1dRUzThDVc+w E7J8whH82BEK55y5IAylkZ6zWxbZfLiM9Fwh97SMzB80cFP3SXhUrv1/uoIgHtPFzs T8UPM6dXvkbJUJyf3+Hz5L40k+fVs/6JQTsgQnis= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 05/32] ring: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:20 -0700 Message-Id: <1691792567-10805-6-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/ring/rte_ring_core.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ring/rte_ring_core.h b/lib/ring/rte_ring_core.h index 82b2370..d1e59bf 100644 --- a/lib/ring/rte_ring_core.h +++ b/lib/ring/rte_ring_core.h @@ -68,7 +68,6 @@ enum rte_ring_sync_type { struct rte_ring_headtail { volatile uint32_t head; /**< prod/consumer head. */ volatile uint32_t tail; /**< prod/consumer tail. */ - RTE_STD_C11 union { /** sync type of prod/cons */ enum rte_ring_sync_type sync_type; @@ -130,7 +129,6 @@ struct rte_ring { char pad0 __rte_cache_aligned; /**< empty cache line */ /** Ring producer status. */ - RTE_STD_C11 union { struct rte_ring_headtail prod; struct rte_ring_hts_headtail hts_prod; @@ -140,7 +138,6 @@ struct rte_ring { char pad1 __rte_cache_aligned; /**< empty cache line */ /** Ring consumer status. */ - RTE_STD_C11 union { struct rte_ring_headtail cons; struct rte_ring_hts_headtail hts_cons; From patchwork Fri Aug 11 22:22:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130220 X-Patchwork-Delegate: david.marchand@redhat.com 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 1CD4943038; Sat, 12 Aug 2023 00:23:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9926A43259; Sat, 12 Aug 2023 00:23:10 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id B46B140F16 for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 6594B20FD0E8; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6594B20FD0E8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=qe5zt1wcdOSpzHhG1eS8vSp7gVpOoIeCDiFjGaLr3BM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iZ+SX/hgQlouoNnOBHkl4jvU1Kjb1+YyFgR4y8dBkFL10a4jjv/TATjDKGgGTSSpn uDhZGWbUSXZMt4ptoldKK/sD08qWUqpOwyt4fqOxEnaxbxzmJwrDFEPObL9iwYBLrx PNvF9PGhBJXT+Loky2iaBqACDCQg6I/DrLpdXAcs= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 06/32] regexdev: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:21 -0700 Message-Id: <1691792567-10805-7-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/regexdev/rte_regexdev.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/regexdev/rte_regexdev.h b/lib/regexdev/rte_regexdev.h index 25476f1..d50af77 100644 --- a/lib/regexdev/rte_regexdev.h +++ b/lib/regexdev/rte_regexdev.h @@ -1246,7 +1246,6 @@ struct rte_regexdev_xstats_map { * @see struct rte_regex_ops::matches */ struct rte_regexdev_match { - RTE_STD_C11 union { uint64_t u64; struct { @@ -1260,7 +1259,6 @@ struct rte_regexdev_match { */ uint16_t start_offset; /**< Starting Byte Position for matched rule. */ - RTE_STD_C11 union { uint16_t len; /**< Length of match in bytes */ @@ -1393,7 +1391,6 @@ struct rte_regex_ops { */ /* W3 */ - RTE_STD_C11 union { uint64_t user_id; /**< Application specific opaque value. An application may use @@ -1406,7 +1403,6 @@ struct rte_regex_ops { }; /* W4 */ - RTE_STD_C11 union { uint64_t cross_buf_id; /**< ID used by the RegEx device in order to support cross From patchwork Fri Aug 11 22:22:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130221 X-Patchwork-Delegate: david.marchand@redhat.com 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 DE51F43038; Sat, 12 Aug 2023 00:23:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D236443270; Sat, 12 Aug 2023 00:23:11 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id B1F5A40E0F for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 7DE1720FD0EA; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7DE1720FD0EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=SumtoDcPVTGaMj0P3BMsvpSWGnMbrVMCTKRd6+dCPpI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qbjsygjt6v8Zzagm26x8oFfm8F/OnpGGI5zCjNkA+zsVAbLUxaiqKeKEajVMcoWYi Io3Jg+g7Rkf2hq+b9e6OrKkCrI11B62ZoWhevtdPXXJ6mFmXiyApF8FLieWkyaYeus ZxzlgF0F6iDBzmYe5JcE1/44aKm9mY6i9zKvitPA= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 07/32] rawdev: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:22 -0700 Message-Id: <1691792567-10805-8-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/rawdev/rte_rawdev.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/rawdev/rte_rawdev.h b/lib/rawdev/rte_rawdev.h index 36c9c9a..7d5764d 100644 --- a/lib/rawdev/rte_rawdev.h +++ b/lib/rawdev/rte_rawdev.h @@ -291,7 +291,6 @@ struct rte_rawdev { /**< Driver info. supplied by probing */ const char *driver_name; - RTE_STD_C11 /**< Flag indicating the device is attached */ uint8_t attached : 1; /**< Device state: STARTED(1)/STOPPED(0) */ From patchwork Fri Aug 11 22:22:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130223 X-Patchwork-Delegate: david.marchand@redhat.com 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 AACDB43038; Sat, 12 Aug 2023 00:23:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 61F0C43281; Sat, 12 Aug 2023 00:23:14 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id C5E3C410FA for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 98D9C20FD0EC; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 98D9C20FD0EC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=yoxQsRNoVfl9RKyQG6ymiOHSh9/G2lGngJ+GIDWwkNI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m9LPsEzc3mu5s9Q2yV9B95t83NdnZkXQ02bTYxaQOma8NKQGAYIUOGGXNFYbskIxY 7V6Ru2SIPXh5c4ibK+QyMDEZevqfL6cXP6HbF0BrhLpepUNH3PgKIC3qGHMaoVNS2u jsSqqgcPh+KWVUhPQnpRE2/4IEnsm/WzmDK53wPg= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 08/32] power: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:23 -0700 Message-Id: <1691792567-10805-9-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/power/rte_power.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/power/rte_power.h b/lib/power/rte_power.h index 5e2b87c..4d70d9a 100644 --- a/lib/power/rte_power.h +++ b/lib/power/rte_power.h @@ -216,10 +216,8 @@ typedef uint32_t (*rte_power_freqs_t)(unsigned int lcore_id, uint32_t *freqs, * Power capabilities summary. */ struct rte_power_core_capabilities { - RTE_STD_C11 union { uint64_t capabilities; - RTE_STD_C11 struct { uint64_t turbo:1; /**< Turbo can be enabled. */ uint64_t priority:1; /**< SST-BF high freq core */ From patchwork Fri Aug 11 22:22:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130228 X-Patchwork-Delegate: david.marchand@redhat.com 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 4A80243038; Sat, 12 Aug 2023 00:24:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70AD643295; Sat, 12 Aug 2023 00:23:20 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id C1335410DC for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id A939820FD0ED; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A939820FD0ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=H7yF9FF5XsQIalvXbxJzsNNQ9GqiMFnaxW2UjgAUEE0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vx6r5SzalTCNGafklfGU1SW5oRE7H+PtL4Wxs7RY5QR5jGf9pFJuiaXdn3yJxWjQC ZzP8HToXPdbMy/q2rpl434xnNnj8Js3XL5x0G2YlKtOwnbI0P8BBFXjYLJGIgwKwnz 0j/J7nNgdW/z/BlAi7T3gwPn9cxwE7NWr1+z6X/g= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 09/32] pipeline: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:24 -0700 Message-Id: <1691792567-10805-10-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/pipeline/rte_pipeline.h | 1 - lib/pipeline/rte_swx_ipsec.h | 1 - lib/pipeline/rte_table_action.h | 4 ---- 3 files changed, 6 deletions(-) diff --git a/lib/pipeline/rte_pipeline.h b/lib/pipeline/rte_pipeline.h index 68ab40d..ec51b9b 100644 --- a/lib/pipeline/rte_pipeline.h +++ b/lib/pipeline/rte_pipeline.h @@ -212,7 +212,6 @@ struct rte_pipeline_table_entry { /** Reserved action */ enum rte_pipeline_action action; - RTE_STD_C11 union { /** Output port ID (meta-data for "Send packet to output port" action) */ diff --git a/lib/pipeline/rte_swx_ipsec.h b/lib/pipeline/rte_swx_ipsec.h index a43e341..7c07fdc 100644 --- a/lib/pipeline/rte_swx_ipsec.h +++ b/lib/pipeline/rte_swx_ipsec.h @@ -263,7 +263,6 @@ struct rte_swx_ipsec_sa_params { /** Crypto operation parameters. */ struct { - RTE_STD_C11 union { struct { /** Crypto cipher operation parameters. */ diff --git a/lib/pipeline/rte_table_action.h b/lib/pipeline/rte_table_action.h index 82bc9d9..5dffbeb 100644 --- a/lib/pipeline/rte_table_action.h +++ b/lib/pipeline/rte_table_action.h @@ -225,7 +225,6 @@ struct rte_table_action_meter_profile { /** Traffic metering algorithm. */ enum rte_table_action_meter_algorithm alg; - RTE_STD_C11 union { /** Only valid when *alg* is set to srTCM - IETF RFC 2697. */ struct rte_meter_srtcm_params srtcm; @@ -487,7 +486,6 @@ struct rte_table_action_encap_vxlan_params { struct rte_table_action_ether_hdr ether; /**< Ethernet header. */ struct rte_table_action_vlan_hdr vlan; /**< VLAN header. */ - RTE_STD_C11 union { struct rte_table_action_ipv4_header ipv4; /**< IPv4 header. */ struct rte_table_action_ipv6_header ipv6; /**< IPv6 header. */ @@ -508,7 +506,6 @@ struct rte_table_action_encap_config { uint64_t encap_mask; /** Encapsulation type specific configuration. */ - RTE_STD_C11 union { struct { /** Input packet to be encapsulated: offset within the @@ -547,7 +544,6 @@ struct rte_table_action_encap_params { /** Encapsulation type. */ enum rte_table_action_encap_type type; - RTE_STD_C11 union { /** Only valid when *type* is set to Ether. */ struct rte_table_action_encap_ether_params ether; From patchwork Fri Aug 11 22:22:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130225 X-Patchwork-Delegate: david.marchand@redhat.com 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 B3A2B43038; Sat, 12 Aug 2023 00:24:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C76A543289; Sat, 12 Aug 2023 00:23:16 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id B75DD40F17 for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id B90E020FD0F1; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B90E020FD0F1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=rzP5dj3BA9orkfiq5qin5YXA9YBFhEOyhm8OjYhXgIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nwsvgzsIcDxJqKNr/ur12LgnH4qe800TdoqVFvz7H6lIUDVF1lJrgJWiOx5qZ81If c256611Q5Py3UI9ywO2dgHJR/yeVz3IFArRk5ZGZvcD1+u9AQQ4QWEgBi2lP3gP5x0 ugfqJdt4yyo9TnIl2hwFDB63ZaY0EUWeNZsyCf48= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 10/32] net: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:25 -0700 Message-Id: <1691792567-10805-11-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/net/rte_ecpri.h | 3 --- lib/net/rte_higig.h | 1 - lib/net/rte_l2tpv2.h | 2 -- 3 files changed, 6 deletions(-) diff --git a/lib/net/rte_ecpri.h b/lib/net/rte_ecpri.h index 73b8a45..137c44f 100644 --- a/lib/net/rte_ecpri.h +++ b/lib/net/rte_ecpri.h @@ -66,7 +66,6 @@ /** * eCPRI Common Header */ -RTE_STD_C11 struct rte_ecpri_common_hdr { union { rte_be32_t u32; /**< 4B common header in BE */ @@ -123,7 +122,6 @@ struct rte_ecpri_msg_gen_data { /** * eCPRI Message Header of Type #4: Remote Memory Access */ -RTE_STD_C11 struct rte_ecpri_msg_rm_access { #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN uint32_t ele_id:16; /**< Element ID */ @@ -169,7 +167,6 @@ struct rte_ecpri_msg_event_ind { /** * eCPRI Combined Message Header Format: Common Header + Message Types */ -RTE_STD_C11 struct rte_ecpri_combined_msg_hdr { struct rte_ecpri_common_hdr common; union { diff --git a/lib/net/rte_higig.h b/lib/net/rte_higig.h index bba3898..7991f6d 100644 --- a/lib/net/rte_higig.h +++ b/lib/net/rte_higig.h @@ -136,7 +136,6 @@ struct rte_higig2_ppt_type1 { * * higig2 header */ -RTE_STD_C11 struct rte_higig2_hdr { struct rte_higig2_frc fcr; union { diff --git a/lib/net/rte_l2tpv2.h b/lib/net/rte_l2tpv2.h index d41123a..9cda347 100644 --- a/lib/net/rte_l2tpv2.h +++ b/lib/net/rte_l2tpv2.h @@ -94,7 +94,6 @@ /** * L2TPv2 Common Header */ -RTE_STD_C11 struct rte_l2tpv2_common_hdr { union { /** header flags and protocol version */ @@ -218,7 +217,6 @@ struct rte_l2tpv2_msg_without_all_options { /** * L2TPv2 Combined Message Header Format: Common Header + Options */ -RTE_STD_C11 struct rte_l2tpv2_combined_msg_hdr { struct rte_l2tpv2_common_hdr common; /**< common header */ union { From patchwork Fri Aug 11 22:22:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130224 X-Patchwork-Delegate: david.marchand@redhat.com 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 D644743038; Sat, 12 Aug 2023 00:24:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C02143284; Sat, 12 Aug 2023 00:23:15 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E18134323A for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id C817020FD0F7; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C817020FD0F7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=7obHHDRP7OkoKbv2sNgKugmQhioGL/WUAKmZG02IcpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l6zV3/G0bFCkQV2GPL8I2qPiJevHFIkbSCiRxmcmXTUgXOxqvoaXIpIDaKN0IK8lP Hqgkgu1QYmYB/ce02u6AEqAc+24tlz6Iu/1pkvxHU7OscsyU+ztVYoLTLhp/jpVe1u qZPyQ/s4lLfvFtnb+82k8+ZoN/uIs9qe/ybRty8c= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 11/32] mldev: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:26 -0700 Message-Id: <1691792567-10805-12-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/mldev/rte_mldev.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/mldev/rte_mldev.h b/lib/mldev/rte_mldev.h index 222ecbd..fc3525c 100644 --- a/lib/mldev/rte_mldev.h +++ b/lib/mldev/rte_mldev.h @@ -433,7 +433,6 @@ struct rte_ml_op { /**< Input buffer to hold the inference data. */ struct rte_ml_buff_seg output; /**< Output buffer to hold the inference output by the driver. */ - RTE_STD_C11 union { uint64_t user_u64; /**< User data as uint64_t.*/ From patchwork Fri Aug 11 22:22:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130226 X-Patchwork-Delegate: david.marchand@redhat.com 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 8627843038; Sat, 12 Aug 2023 00:24:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 04ADA4328F; Sat, 12 Aug 2023 00:23:18 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E7D8A43251 for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id D830F20FD0F9; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D830F20FD0F9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=rot9lyQHqShm4Aau93pVG3zcUTdSMgjVzZP+ArcQlsI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JRFKWI5RewBQBQ0pxsQExu42yr+D/TgsOT3G5053kaRs1dx1DNEmwdadH0EDYkUpx 3Ki3QccnmrC2+DIKhjhmau1AK3EWMZndJqBxKWkVkoBJFM+0FMbLGbTluXu0w2HV4y 9Fq7OXCuZDW5rX7TDV4qETAbAvXcHzxh7zND/39s= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 12/32] mempool: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:27 -0700 Message-Id: <1691792567-10805-13-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/mempool/rte_mempool.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/mempool/rte_mempool.h b/lib/mempool/rte_mempool.h index 160975a..a05b25d 100644 --- a/lib/mempool/rte_mempool.h +++ b/lib/mempool/rte_mempool.h @@ -218,7 +218,6 @@ struct rte_mempool_info { */ struct rte_mempool { char name[RTE_MEMPOOL_NAMESIZE]; /**< Name of mempool. */ - RTE_STD_C11 union { void *pool_data; /**< Ring or pool to store objects. */ uint64_t pool_id; /**< External mempool identifier. */ From patchwork Fri Aug 11 22:22:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130229 X-Patchwork-Delegate: david.marchand@redhat.com 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 77C5343038; Sat, 12 Aug 2023 00:24:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 89CA643299; Sat, 12 Aug 2023 00:23:21 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id F235243259 for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id E6EC120FD0FC; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E6EC120FD0FC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792582; bh=0FCxgwqa21ilOgfnVim9zCg/p6KPJK1EvNrbv1bTQu0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BiyfGA+yvWFJOEgp2hm85YDyPAasNUAgeBVNTQxAMuGjXw5EDFoeQbrh3UiUAQjfz JtHw1Bx3aLg4UL3QUYQpBUiyhiUJUvfAokFm6KusZTLWXJ2ZVJmdeXKdLk1q58ja6M ZBbOuGgD6NVRClAJ1iAoTlyz98Gdp2a/U/zFcX3Y= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 13/32] mbuf: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:28 -0700 Message-Id: <1691792567-10805-14-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/mbuf/rte_mbuf_core.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/mbuf/rte_mbuf_core.h b/lib/mbuf/rte_mbuf_core.h index 2030b3b..e9bc0d1 100644 --- a/lib/mbuf/rte_mbuf_core.h +++ b/lib/mbuf/rte_mbuf_core.h @@ -522,7 +522,6 @@ struct rte_mbuf { * would have RTE_PTYPE_L2_ETHER and not RTE_PTYPE_L2_VLAN because the * vlan is stripped from the data. */ - RTE_STD_C11 union { uint32_t packet_type; /**< L2/L3/L4 and tunnel information. */ __extension__ @@ -531,7 +530,6 @@ struct rte_mbuf { uint8_t l3_type:4; /**< (Outer) L3 type. */ uint8_t l4_type:4; /**< (Outer) L4 type. */ uint8_t tun_type:4; /**< Tunnel type. */ - RTE_STD_C11 union { uint8_t inner_esp_next_proto; /**< ESP next protocol type, valid if @@ -555,7 +553,6 @@ struct rte_mbuf { /** VLAN TCI (CPU order), valid if RTE_MBUF_F_RX_VLAN is set. */ uint16_t vlan_tci; - RTE_STD_C11 union { union { uint32_t rss; /**< RSS hash result if RSS enabled */ @@ -614,7 +611,6 @@ struct rte_mbuf { #endif /* fields to support TX offloads */ - RTE_STD_C11 union { uint64_t tx_offload; /**< combined for easy fetch */ __extension__ From patchwork Fri Aug 11 22:22:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130227 X-Patchwork-Delegate: david.marchand@redhat.com 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 12DAB43038; Sat, 12 Aug 2023 00:24:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FDBC43292; Sat, 12 Aug 2023 00:23:19 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id ECE2143254 for ; Sat, 12 Aug 2023 00:23:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 027BD20FD400; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 027BD20FD400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=zg6pyf6tByIFXoAdz0AJlWPW/wtOWqgd9Kp4w60DKtM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BGr2c3KlSR+fVbo7NPLJvjbcAL1GbQqR3fAcZIVFui2wXF0ewX/nUdvKVEnE/K5Bz 62pmnc52yeEwyawAcsfuz+BO137BklTuIX9ZSooh50hu4FZlIw2+7FCGAzcWdAOGkl x+cVZy9Z7sZVDiayCgf6iusrfN5BTmIupl+aQr40= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 14/32] ip_frag: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:29 -0700 Message-Id: <1691792567-10805-15-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/ip_frag/ip_reassembly.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ip_frag/ip_reassembly.h b/lib/ip_frag/ip_reassembly.h index ef9d8c0..a9f97ae 100644 --- a/lib/ip_frag/ip_reassembly.h +++ b/lib/ip_frag/ip_reassembly.h @@ -33,7 +33,6 @@ struct ip_frag { struct ip_frag_key { uint64_t src_dst[4]; /* src and dst address, only first 8 bytes used for IPv4 */ - RTE_STD_C11 union { uint64_t id_key_len; /* combined for easy fetch */ __extension__ From patchwork Fri Aug 11 22:22:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130230 X-Patchwork-Delegate: david.marchand@redhat.com 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 B26FC43038; Sat, 12 Aug 2023 00:24:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A10ED4329C; Sat, 12 Aug 2023 00:23:22 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 2C80F40F16 for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 11E1E20FD404; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 11E1E20FD404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=gsSlIo7L1gpNy8xE4BUKh0f0qlpwba7+hMIRIgPA7Sk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tLKzizly2FPk5UGRypmgdGpas9Ug8PK6kCy5V0jo0kxJkKc543iYLfdS77v1ijSze 8fcsLeoaiHPfM+Bb6jvrRQMC1IWxS6ysht0D5SD2IE4E7D/cwxOKM1XEFr9h4zM02V cfyMit4ph8VMYUls9caIg7RIAI4s6myofWaQhRng= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 15/32] hash: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:30 -0700 Message-Id: <1691792567-10805-16-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/hash/rte_thash.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/hash/rte_thash.h b/lib/hash/rte_thash.h index 7b1d154..da06cd5 100644 --- a/lib/hash/rte_thash.h +++ b/lib/hash/rte_thash.h @@ -73,7 +73,6 @@ struct rte_ipv4_tuple { uint32_t src_addr; uint32_t dst_addr; - RTE_STD_C11 union { struct { uint16_t dport; @@ -91,7 +90,6 @@ struct rte_ipv4_tuple { struct rte_ipv6_tuple { uint8_t src_addr[16]; uint8_t dst_addr[16]; - RTE_STD_C11 union { struct { uint16_t dport; From patchwork Fri Aug 11 22:22:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130231 X-Patchwork-Delegate: david.marchand@redhat.com 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 DFCD843038; Sat, 12 Aug 2023 00:24:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACECA432A2; Sat, 12 Aug 2023 00:23:23 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 2C67240E0F for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 230DD20FD407; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 230DD20FD407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=2j1KtRPVmBX2yZiPnM1MfBjEo0MkzAZwlTcDjebv/nc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TiUN7UGl4HMes/dOvH3DuiAt9BypR/vQzBD4hnzpykCoScp/AJNeo4Azj0KVNy3kI HWP7dV+7T/KRUJH4m/S8A1FONgbimtuA2LnRtt1B/O+HWRLuX7orpiaS6samFtF/rs dQUCf2FfcH8IDxcixpmENFTJ0NH202m0/kEh4flk= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 16/32] graph: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:31 -0700 Message-Id: <1691792567-10805-17-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/graph/rte_graph.h | 3 --- lib/graph/rte_graph_worker_common.h | 4 ---- 2 files changed, 7 deletions(-) diff --git a/lib/graph/rte_graph.h b/lib/graph/rte_graph.h index 7e94c15..eca32a4 100644 --- a/lib/graph/rte_graph.h +++ b/lib/graph/rte_graph.h @@ -168,7 +168,6 @@ struct rte_graph_param { uint64_t num_pkt_to_capture; /**< Number of packets to capture. */ char *pcap_filename; /**< Filename in which packets to be captured.*/ - RTE_STD_C11 union { struct { uint64_t rsvd; /**< Reserved for rtc model. */ @@ -192,7 +191,6 @@ struct rte_graph_cluster_stats_param { /**< Stats print callback function. NULL value allowed, in that case, * default print stat function used. */ - RTE_STD_C11 union { void *cookie; FILE *f; /**< File pointer to dump the stats when fn == NULL. */ @@ -218,7 +216,6 @@ struct rte_graph_cluster_node_stats { uint64_t prev_objs; /**< Previous number of processed objs. */ uint64_t prev_cycles; /**< Previous number of cycles. */ - RTE_STD_C11 union { struct { uint64_t sched_objs; diff --git a/lib/graph/rte_graph_worker_common.h b/lib/graph/rte_graph_worker_common.h index a382459..7d6973c 100644 --- a/lib/graph/rte_graph_worker_common.h +++ b/lib/graph/rte_graph_worker_common.h @@ -59,7 +59,6 @@ struct rte_graph { uint8_t model; /**< graph model */ uint8_t reserved1; /**< Reserved for future use. */ uint16_t reserved2; /**< Reserved for future use. */ - RTE_STD_C11 union { /* Fast schedule area for mcore dispatch model */ struct { @@ -105,7 +104,6 @@ struct rte_node { /** Original process function when pcap is enabled. */ rte_node_process_t original_process; - RTE_STD_C11 union { /* Fast schedule area for mcore dispatch model */ struct { @@ -123,12 +121,10 @@ struct rte_node { uint64_t total_cycles; /**< Cycles spent in this node. */ uint64_t total_calls; /**< Calls done to this node. */ uint64_t total_objs; /**< Objects processed by this node. */ - RTE_STD_C11 union { void **objs; /**< Array of object pointers. */ uint64_t objs_u64; }; - RTE_STD_C11 union { rte_node_process_t process; /**< Process function. */ uint64_t process_u64; From patchwork Fri Aug 11 22:22:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130232 X-Patchwork-Delegate: david.marchand@redhat.com 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 0E72743038; Sat, 12 Aug 2023 00:24:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B3B0E432A9; Sat, 12 Aug 2023 00:23:24 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 2E7F94325A for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 3268820FD40A; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3268820FD40A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=8qJXlUD/AEfQ1mVV6E0dUBLTFN2wbz6nne2qFayjIGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kDilqjJuHRWPlVd4dK/6HXf4JaZz3LC8q/ryIIRnO2MDh0+MgZb6pbrWjsySMAv6l 9lBLRD7tWNgUmrdZDtEJ/16tWWCauQIe2VWTatBRBR85XQxgm2kDWKOFDIf9WNTLDV fw7xZr9T7fY1KVvF5Uip8GZhw3NzpeJ7jab6ErKo= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 17/32] eventdev: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:32 -0700 Message-Id: <1691792567-10805-18-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/eventdev/event_timer_adapter_pmd.h | 1 - lib/eventdev/eventdev_pmd.h | 2 -- lib/eventdev/rte_event_eth_rx_adapter.c | 1 - lib/eventdev/rte_event_timer_adapter.h | 2 -- lib/eventdev/rte_eventdev.h | 1 - 5 files changed, 7 deletions(-) diff --git a/lib/eventdev/event_timer_adapter_pmd.h b/lib/eventdev/event_timer_adapter_pmd.h index 8f3e6c4..65b421b 100644 --- a/lib/eventdev/event_timer_adapter_pmd.h +++ b/lib/eventdev/event_timer_adapter_pmd.h @@ -108,7 +108,6 @@ struct rte_event_timer_adapter_data { uint32_t service_id; /**< Service ID*/ - RTE_STD_C11 uint8_t started : 1; /**< Flag to indicate adapter started. */ } __rte_cache_aligned; diff --git a/lib/eventdev/eventdev_pmd.h b/lib/eventdev/eventdev_pmd.h index c68c3a2..f62f42e 100644 --- a/lib/eventdev/eventdev_pmd.h +++ b/lib/eventdev/eventdev_pmd.h @@ -135,7 +135,6 @@ struct rte_eventdev_data { void *dev_stop_flush_arg; /**< User-provided argument for event flush function */ - RTE_STD_C11 uint8_t dev_started : 1; /**< Device state: STARTED(1)/STOPPED(0) */ @@ -155,7 +154,6 @@ struct rte_eventdev { struct rte_device *dev; /**< Device info. supplied by probing */ - RTE_STD_C11 uint8_t attached : 1; /**< Flag indicating the device is attached */ diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c index f7f93cc..5c93967 100644 --- a/lib/eventdev/rte_event_eth_rx_adapter.c +++ b/lib/eventdev/rte_event_eth_rx_adapter.c @@ -52,7 +52,6 @@ * Used to store port and queue ID of interrupting Rx queue */ union queue_data { - RTE_STD_C11 void *ptr; struct { uint16_t port; diff --git a/lib/eventdev/rte_event_timer_adapter.h b/lib/eventdev/rte_event_timer_adapter.h index 9ac35b7..fbdddf8 100644 --- a/lib/eventdev/rte_event_timer_adapter.h +++ b/lib/eventdev/rte_event_timer_adapter.h @@ -473,7 +473,6 @@ enum rte_event_timer_state { * The generic *rte_event_timer* structure to hold the event timer attributes * for arm and cancel operations. */ -RTE_STD_C11 struct rte_event_timer { struct rte_event ev; /**< @@ -539,7 +538,6 @@ struct rte_event_timer_adapter { const struct event_timer_adapter_ops *ops; /**< Functions exported by adapter driver */ - RTE_STD_C11 uint8_t allocated : 1; /**< Flag to indicate that this adapter has been allocated */ } __rte_cache_aligned; diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h index b6a4fa1..2ba8a7b 100644 --- a/lib/eventdev/rte_eventdev.h +++ b/lib/eventdev/rte_eventdev.h @@ -1273,7 +1273,6 @@ struct rte_event_vector { * The generic *rte_event* structure to hold the event attributes * for dequeue and enqueue operation */ -RTE_STD_C11 struct rte_event { /** WORD0 */ union { From patchwork Fri Aug 11 22:22:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130236 X-Patchwork-Delegate: david.marchand@redhat.com 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 66CB043038; Sat, 12 Aug 2023 00:25:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D29E432B7; Sat, 12 Aug 2023 00:23:29 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 820ED43262 for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 4211320FD40D; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4211320FD40D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=fTY6sQOeQ6Ua/IHrWZ+8y/SY87OWiqDoTQY3AZ40zM8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=onOlBJ4zIauDj/bV+fATaDomfDAECn0OK5m4XFVxEf6fBsj2dTfH/0r7KSC46dyiC 2algfOGtXS7OpyaVtr+d83vF6xrphFleFrcMGY15NJnZefQgn91fp21KA5i4+XsAIK znb2PgxDYON4KfEFrYWJ4tXTQkaU+MMy5O5JpHow= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 18/32] ethdev: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:33 -0700 Message-Id: <1691792567-10805-19-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/ethdev/rte_flow.h | 11 ----------- lib/ethdev/rte_mtr.h | 1 - lib/ethdev/rte_tm.h | 3 --- 3 files changed, 15 deletions(-) diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index 86ed98c..2ebb76d 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -726,7 +726,6 @@ struct rte_flow_item_quota { * RTE_FLOW_ITEM_TYPE_HIGIG2 * Matches higig2 header */ -RTE_STD_C11 struct rte_flow_item_higig2_hdr { struct rte_higig2_hdr hdr; }; @@ -848,7 +847,6 @@ struct rte_flow_item_raw { * the EtherType/TPID field. Also, it's possible to leave the two fields unused. * If this is the case, both tagged and untagged packets will match the pattern. */ -RTE_STD_C11 struct rte_flow_item_eth { union { struct { @@ -890,7 +888,6 @@ struct rte_flow_item_eth { * If the @p eth_proto of @p hdr and @p has_more_vlan fields are not specified, * then any tagged packets will match the pattern. */ -RTE_STD_C11 struct rte_flow_item_vlan { union { struct { @@ -1075,7 +1072,6 @@ struct rte_flow_item_sctp { * * Matches a VXLAN header (RFC 7348). */ -RTE_STD_C11 struct rte_flow_item_vxlan { union { struct { @@ -1246,7 +1242,6 @@ struct rte_flow_item_fuzzy { * * Matches a GTPv1 header. */ -RTE_STD_C11 struct rte_flow_item_gtp { union { struct { @@ -1322,7 +1317,6 @@ struct rte_flow_item_geneve { * * Matches a VXLAN-GPE header. */ -RTE_STD_C11 struct rte_flow_item_vxlan_gpe { union { struct { @@ -1352,7 +1346,6 @@ struct rte_flow_item_vxlan_gpe { * * Matches an ARP header for Ethernet/IPv4. */ -RTE_STD_C11 struct rte_flow_item_arp_eth_ipv4 { union { struct { @@ -1874,7 +1867,6 @@ struct rte_flow_item_integrity { * @see rte_flow_action_rss */ uint32_t level; - RTE_STD_C11 union { __extension__ struct { @@ -3893,7 +3885,6 @@ enum rte_flow_field_id { */ struct rte_flow_action_modify_data { enum rte_flow_field_id field; /**< Field or memory type ID. */ - RTE_STD_C11 union { struct { /** Encapsulation level and tag index or flex item handle. */ @@ -4200,7 +4191,6 @@ struct rte_flow_error { * @see RTE_FLOW_CONV_OP_RULE * @see rte_flow_conv() */ -RTE_STD_C11 struct rte_flow_conv_rule { union { const struct rte_flow_attr *attr_ro; /**< RO attributes. */ @@ -5002,7 +4992,6 @@ struct rte_flow_tunnel { enum rte_flow_item_type type; uint64_t tun_id; /**< Tunnel identification. */ - RTE_STD_C11 union { struct { rte_be32_t src_addr; /**< IPv4 source address. */ diff --git a/lib/ethdev/rte_mtr.h b/lib/ethdev/rte_mtr.h index 7e6a66b..30e6c6b 100644 --- a/lib/ethdev/rte_mtr.h +++ b/lib/ethdev/rte_mtr.h @@ -129,7 +129,6 @@ struct rte_mtr_meter_profile { /** Traffic metering algorithm. */ enum rte_mtr_algorithm alg; - RTE_STD_C11 union { /** Items only valid when *alg* is set to srTCM - RFC 2697. */ struct { diff --git a/lib/ethdev/rte_tm.h b/lib/ethdev/rte_tm.h index 4103c49..08c5faf 100644 --- a/lib/ethdev/rte_tm.h +++ b/lib/ethdev/rte_tm.h @@ -500,7 +500,6 @@ struct rte_tm_level_capabilities { */ int leaf_nodes_identical; - RTE_STD_C11 union { /** Items valid only for the non-leaf nodes on this level. */ struct { @@ -851,7 +850,6 @@ struct rte_tm_node_capabilities { */ int shaper_shared_byte_mode_supported; - RTE_STD_C11 union { /** Items valid only for non-leaf nodes. */ struct { @@ -1108,7 +1106,6 @@ struct rte_tm_node_params { /** Number of shared shaper IDs in the *shared_shaper_id* array. */ uint32_t n_shared_shapers; - RTE_STD_C11 union { /** Parameters only valid for non-leaf nodes. */ struct { From patchwork Fri Aug 11 22:22:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130235 X-Patchwork-Delegate: david.marchand@redhat.com 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 BB3D343038; Sat, 12 Aug 2023 00:25:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18E71432B1; Sat, 12 Aug 2023 00:23:28 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 89E0643263 for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 5111920FD40F; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5111920FD40F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=gzvIEaYluF+FT22NR2wcMXHEG2PyvxsQoikAalGzbH4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JBxClxh8bpzF1iSf+3qIkk+EM/nFTHG3yyGfNBeo1uDfVpjtNgVPbFeRv7HwB+vHx FMzoOYnnljon0nk5/hPqRG2cLG+24rP5cg/ohPUw/It7n9CQG1Dk9Cv5Hq94icmmR4 XWHnt25Y7MQhQfz9sDTncvXkLWMbyQn3PJ27O8do= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 19/32] dmadev: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:34 -0700 Message-Id: <1691792567-10805-20-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/dmadev/rte_dmadev.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h index e61d719..b157ab7 100644 --- a/lib/dmadev/rte_dmadev.h +++ b/lib/dmadev/rte_dmadev.h @@ -484,7 +484,6 @@ struct rte_dma_port_param { * @see enum rte_dma_port_type */ enum rte_dma_port_type port_type; - RTE_STD_C11 union { /** PCIe access port parameters. * From patchwork Fri Aug 11 22:22:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130242 X-Patchwork-Delegate: david.marchand@redhat.com 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 D944E43038; Sat, 12 Aug 2023 00:25:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF255432D2; Sat, 12 Aug 2023 00:23:35 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 8E27343264 for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 601DB20FD411; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 601DB20FD411 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=C/YMA9yN6s5RVxyM4rq37Jk8pnAt+mXJnaXpNtocpe0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J5yT0ybrwtIGMS6ImfK8dfB/nJfg8rEzQLZHerDQFkTCBGe42IRgKoRaff36/yZId JRaHoALo6j2Wwo7ZL++PBs+QTMQK6Oa578EYT8u9W7kReVnVnJKaOIWA3F3OOOZeV3 YJbFpDx+SSfKbZz7BX/8LS3kJ1qKxIgBdv/y2hGc= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 20/32] cryptodev: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:35 -0700 Message-Id: <1691792567-10805-21-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/cryptodev/cryptodev_pmd.h | 2 +- lib/cryptodev/rte_crypto_asym.h | 4 ---- lib/cryptodev/rte_crypto_sym.h | 3 --- lib/cryptodev/rte_cryptodev.h | 2 -- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h index 4c98ced..3bb3d95 100644 --- a/lib/cryptodev/cryptodev_pmd.h +++ b/lib/cryptodev/cryptodev_pmd.h @@ -683,7 +683,7 @@ uint8_t rte_cryptodev_allocate_driver(struct cryptodev_driver *crypto_drv, * @internal * Cryptodev asymmetric crypto session. */ -RTE_STD_C11 struct rte_cryptodev_asym_session { +struct rte_cryptodev_asym_session { uint8_t driver_id; /**< Session driver ID. */ uint16_t max_priv_data_sz; diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h index 8b5794f..cbcfe1d 100644 --- a/lib/cryptodev/rte_crypto_asym.h +++ b/lib/cryptodev/rte_crypto_asym.h @@ -310,7 +310,6 @@ struct rte_crypto_rsa_xform { enum rte_crypto_rsa_priv_key_type key_type; - RTE_STD_C11 union { rte_crypto_uint d; /**< the RSA private exponent */ @@ -625,7 +624,6 @@ struct rte_crypto_asym_xform { enum rte_crypto_asym_xform_type xform_type; /**< Asymmetric crypto transform */ - RTE_STD_C11 union { struct rte_crypto_rsa_xform rsa; /**< RSA xform parameters */ @@ -725,7 +723,6 @@ struct rte_crypto_sm2_op_param { * Structure describing asymmetric crypto operation params. */ struct rte_crypto_asym_op { - RTE_STD_C11 union { struct rte_cryptodev_asym_session *session; /**< Handle for the initialised session context */ @@ -733,7 +730,6 @@ struct rte_crypto_asym_op { /**< Session-less API crypto operation parameters */ }; - RTE_STD_C11 union { struct rte_crypto_rsa_op_param rsa; struct rte_crypto_mod_op_param modex; diff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/cryptodev/rte_crypto_sym.h index 76c868c..bde8010 100644 --- a/lib/cryptodev/rte_crypto_sym.h +++ b/lib/cryptodev/rte_crypto_sym.h @@ -594,7 +594,6 @@ struct rte_crypto_sym_xform { /**< next xform in chain */ enum rte_crypto_sym_xform_type type ; /**< xform type */ - RTE_STD_C11 union { struct rte_crypto_auth_xform auth; /**< Authentication / hash xform */ @@ -641,7 +640,6 @@ struct rte_crypto_sym_op { struct rte_mbuf *m_src; /**< source mbuf */ struct rte_mbuf *m_dst; /**< destination mbuf */ - RTE_STD_C11 union { void *session; /**< Handle for the initialised crypto/security session context */ @@ -649,7 +647,6 @@ struct rte_crypto_sym_op { /**< Session-less API crypto operation parameters */ }; - RTE_STD_C11 union { struct { struct { diff --git a/lib/cryptodev/rte_cryptodev.h b/lib/cryptodev/rte_cryptodev.h index ba73037..9246df9 100644 --- a/lib/cryptodev/rte_cryptodev.h +++ b/lib/cryptodev/rte_cryptodev.h @@ -109,7 +109,6 @@ struct rte_crypto_param_range { struct rte_cryptodev_symmetric_capability { enum rte_crypto_sym_xform_type xform_type; /**< Transform type : Authentication / Cipher / AEAD */ - RTE_STD_C11 union { struct { enum rte_crypto_auth_algorithm algo; @@ -198,7 +197,6 @@ struct rte_cryptodev_capabilities { enum rte_crypto_op_type op; /**< Operation type */ - RTE_STD_C11 union { struct rte_cryptodev_symmetric_capability sym; /**< Symmetric operation capability parameters */ From patchwork Fri Aug 11 22:22:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130234 X-Patchwork-Delegate: david.marchand@redhat.com 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 A2CA543038; Sat, 12 Aug 2023 00:24:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DCB9D43280; Sat, 12 Aug 2023 00:23:26 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 408164325D for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 6F87F20FD416; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6F87F20FD416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=rE+Yz/qHLJLV4g0DuUU5P9kbRs2G+AD1aKpPsOeda/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=shJgVmZs4uUkPFCGE0jhYGdXr2pTPvipezjwrrGDDPrdOm7X6vrs5Z0kK8fU6zgoL ZGAu2j0gnGpFOD7oPEb+4s4cdwI+815APy2BalhhT3nPYpj87i2FBEQ70JCJeE9JNR wstFhpKGuLXGKKTpDHV3ZQdwohy3HR8uDDcRA4SA= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 21/32] examples/ipsec-secgw: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:36 -0700 Message-Id: <1691792567-10805-22-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- examples/ipsec-secgw/event_helper.h | 2 -- examples/ipsec-secgw/flow.c | 1 - 2 files changed, 3 deletions(-) diff --git a/examples/ipsec-secgw/event_helper.h b/examples/ipsec-secgw/event_helper.h index af5cfcf..dfb81bf 100644 --- a/examples/ipsec-secgw/event_helper.h +++ b/examples/ipsec-secgw/event_helper.h @@ -164,7 +164,6 @@ struct eventmode_conf { uint32_t eth_portmask; /**< Mask of the eth ports to be used */ union { - RTE_STD_C11 struct { uint64_t sched_type : 2; /**< Schedule type */ @@ -213,7 +212,6 @@ struct eh_conf { /* Workers registered by the application */ struct eh_app_worker_params { union { - RTE_STD_C11 struct { uint64_t burst : 1; /**< Specify status of rx type burst */ diff --git a/examples/ipsec-secgw/flow.c b/examples/ipsec-secgw/flow.c index 1bcf86c..05a62c3 100644 --- a/examples/ipsec-secgw/flow.c +++ b/examples/ipsec-secgw/flow.c @@ -19,7 +19,6 @@ struct flow_rule_entry { uint8_t is_eth; uint8_t is_ipv4; uint8_t is_ipv6; - RTE_STD_C11 union { struct { struct rte_flow_item_ipv4 spec; From patchwork Fri Aug 11 22:22:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130240 X-Patchwork-Delegate: david.marchand@redhat.com 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 7243143038; Sat, 12 Aug 2023 00:25:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 88D76432C7; Sat, 12 Aug 2023 00:23:33 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id AA8AB43267 for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 7E6FF20FD418; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7E6FF20FD418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=3p3OH0Nud60mqjHthbG2dPS+vnHlOn6ehHyLIcncdzQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gzfFAyt2KWKH6Bh+E4wHdyQTJnC8iQK+Jph7GruEuHxaTg262aHni9QTTtuExKsqT NZ5lw4URq5py5xA6hJJVOHYUgHkQtAdCYltbaUQGBE7AFoma/X8frraA/PSPHF0qTF fKr56VX7RekgZKqCcrc+zpKOP5KWEu19p9/RLYpI= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 22/32] examples/ip_pipeline: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:37 -0700 Message-Id: <1691792567-10805-23-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- examples/ip_pipeline/pipeline.h | 2 -- examples/ip_pipeline/thread.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/examples/ip_pipeline/pipeline.h b/examples/ip_pipeline/pipeline.h index 083d5e8..22f04fd 100644 --- a/examples/ip_pipeline/pipeline.h +++ b/examples/ip_pipeline/pipeline.h @@ -211,7 +211,6 @@ struct pipeline * struct table_rule_match_acl { int ip_version; - RTE_STD_C11 union { struct { uint32_t sa; @@ -254,7 +253,6 @@ struct table_rule_match_hash { struct table_rule_match_lpm { int ip_version; - RTE_STD_C11 union { uint32_t ipv4; uint8_t ipv6[16]; diff --git a/examples/ip_pipeline/thread.c b/examples/ip_pipeline/thread.c index 9817657..b46f64b 100644 --- a/examples/ip_pipeline/thread.c +++ b/examples/ip_pipeline/thread.c @@ -650,7 +650,6 @@ struct pipeline_msg_req { enum pipeline_req_type type; uint32_t id; /* Port IN, port OUT or table ID */ - RTE_STD_C11 union { struct pipeline_msg_req_port_in_stats_read port_in_stats_read; struct pipeline_msg_req_port_out_stats_read port_out_stats_read; @@ -712,7 +711,6 @@ struct pipeline_msg_rsp_table_rule_time_read { struct pipeline_msg_rsp { int status; - RTE_STD_C11 union { struct pipeline_msg_rsp_port_in_stats_read port_in_stats_read; struct pipeline_msg_rsp_port_out_stats_read port_out_stats_read; From patchwork Fri Aug 11 22:22:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130238 X-Patchwork-Delegate: david.marchand@redhat.com 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 A2DDD43038; Sat, 12 Aug 2023 00:25:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74555432BF; Sat, 12 Aug 2023 00:23:31 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 617B5410FA for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 8DE3B20FD41B; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8DE3B20FD41B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=gVwiS2J/VLrobJ1pfpQEaQGCtUnALZQy0sQiDiW0JNI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GqY9kp3MiyUCvdzjK7LRT3Iz60qEV/HP+xEougYybuJhyc1UPf3DIxWuA4VocRAuh Zkn+lwwXcau8fUN+Bo/LJ3o6lUG/sCKrEWivZpGSZbloE2EJY9kuhtqYAwq0epUSgM Z/7++el1XaMKp1Epo3IN/VOn4uFQJuqLVHTRmj4w= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 23/32] net/sfc: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:38 -0700 Message-Id: <1691792567-10805-24-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- drivers/net/sfc/sfc_flow.h | 2 -- drivers/net/sfc/sfc_mae.h | 1 - drivers/net/sfc/sfc_stats.h | 1 - 3 files changed, 4 deletions(-) diff --git a/drivers/net/sfc/sfc_flow.h b/drivers/net/sfc/sfc_flow.h index 601f93e..06738fe 100644 --- a/drivers/net/sfc/sfc_flow.h +++ b/drivers/net/sfc/sfc_flow.h @@ -109,7 +109,6 @@ struct sfc_flow_spec { /* Flow specification type (engine-based) */ enum sfc_flow_spec_type type; - RTE_STD_C11 union { /* Filter-based (VNIC level flows) specification */ struct sfc_flow_spec_filter filter; @@ -149,7 +148,6 @@ enum sfc_flow_parse_ctx_type { struct sfc_flow_parse_ctx { enum sfc_flow_parse_ctx_type type; - RTE_STD_C11 union { /* Context pointer valid for filter-based (VNIC) flows */ efx_filter_spec_t *filter; diff --git a/drivers/net/sfc/sfc_mae.h b/drivers/net/sfc/sfc_mae.h index 059718e..646d055 100644 --- a/drivers/net/sfc/sfc_mae.h +++ b/drivers/net/sfc/sfc_mae.h @@ -25,7 +25,6 @@ /** FW-allocatable resource context */ struct sfc_mae_fw_rsrc { unsigned int refcnt; - RTE_STD_C11 union { efx_counter_t counter_id; efx_mae_aset_id_t aset_id; diff --git a/drivers/net/sfc/sfc_stats.h b/drivers/net/sfc/sfc_stats.h index aae8243..597e14d 100644 --- a/drivers/net/sfc/sfc_stats.h +++ b/drivers/net/sfc/sfc_stats.h @@ -26,7 +26,6 @@ * required. */ union sfc_pkts_bytes { - RTE_STD_C11 struct { uint64_t pkts; uint64_t bytes; From patchwork Fri Aug 11 22:22:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130239 X-Patchwork-Delegate: david.marchand@redhat.com 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 BF3C443038; Sat, 12 Aug 2023 00:25:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79DFE432C5; Sat, 12 Aug 2023 00:23:32 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 690D443260 for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 9D9DB20FD41E; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9D9DB20FD41E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=oV9KygINXA91UamujSR5hLV9OouBYGMNgxyLPEvgjw0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g5lF8/uPg7UIWLGVHsGWDnuY/j0RponY2IqnDLxSzEnD1tVw1yK7JX/Mf/xolDA8V 4efe8XMToS4A4eJ9OudMDFkcRihUjSATfbkO4i/98QDlaL6o7rwgejEwYxO24ShsG+ pjvE2AjnnW9p3wSsM5yHoHEGyAyxPgNQG3V4bUdM= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 24/32] net/octeontx: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:39 -0700 Message-Id: <1691792567-10805-25-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- drivers/net/octeontx/octeontx_rxtx.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/octeontx/octeontx_rxtx.h b/drivers/net/octeontx/octeontx_rxtx.h index b63a5ed..b6e3515 100644 --- a/drivers/net/octeontx/octeontx_rxtx.h +++ b/drivers/net/octeontx/octeontx_rxtx.h @@ -28,7 +28,6 @@ #define PTYPE_SIZE OCCTX_PKI_LTYPE_LAST /* octeontx send header sub descriptor structure */ -RTE_STD_C11 union octeontx_send_hdr_w0_u { uint64_t u; struct { @@ -53,7 +52,6 @@ }; }; -RTE_STD_C11 union octeontx_send_hdr_w1_u { uint64_t u; struct { From patchwork Fri Aug 11 22:22:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130233 X-Patchwork-Delegate: david.marchand@redhat.com 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 C1A9D43038; Sat, 12 Aug 2023 00:24:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D6F734329E; Sat, 12 Aug 2023 00:23:25 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 925FA43265 for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id AE17720FD421; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com AE17720FD421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=ITu8Ez/gp2gwebZGGePOJRLzw3f2zUoSqwI021Fv42s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sE3SqqQmZL7sqHO0Ach52ZtPlsaOWQIsAA/CDAMH9/+JTBU6o6O5o1KOEeYGNmPVR fGxoseXaBT0F2dEHmHs2jBo5YxWgZ8AiJgdUcHY6pKzNyaZ9Gv+LZ4MFA8rpkKESpI xtj5GPDbXp7ZXm0FqVdmfFH3YQTANZjjEeVcBEow= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 25/32] net/mlx5: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:40 -0700 Message-Id: <1691792567-10805-26-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- drivers/net/mlx5/mlx5.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index b753493..3785103 100644 --- a/drivers/net/mlx5/mlx5.h +++ b/drivers/net/mlx5/mlx5.h @@ -1535,7 +1535,6 @@ struct mlx5_rxq_obj { LIST_ENTRY(mlx5_rxq_obj) next; /* Pointer to the next element. */ struct mlx5_rxq_ctrl *rxq_ctrl; /* Back pointer to parent. */ int fd; /* File descriptor for event channel */ - RTE_STD_C11 union { struct { void *wq; /* Work Queue. */ @@ -1555,7 +1554,6 @@ struct mlx5_rxq_obj { struct mlx5_ind_table_obj { LIST_ENTRY(mlx5_ind_table_obj) next; /* Pointer to the next element. */ uint32_t refcnt; /* Reference counter. */ - RTE_STD_C11 union { void *ind_table; /**< Indirection table. */ struct mlx5_devx_obj *rqt; /* DevX RQT object. */ @@ -1570,7 +1568,6 @@ struct mlx5_hrxq { struct mlx5_list_entry entry; /* List entry. */ uint32_t standalone:1; /* This object used in shared action. */ struct mlx5_ind_table_obj *ind_table; /* Indirection table. */ - RTE_STD_C11 union { void *qp; /* Verbs queue pair. */ struct mlx5_devx_obj *tir; /* DevX TIR object. */ @@ -1590,7 +1587,6 @@ struct mlx5_hrxq { struct mlx5_txq_obj { LIST_ENTRY(mlx5_txq_obj) next; /* Pointer to the next element. */ struct mlx5_txq_ctrl *txq_ctrl; /* Pointer to the control queue. */ - RTE_STD_C11 union { struct { void *cq; /* Completion Queue. */ From patchwork Fri Aug 11 22:22:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130237 X-Patchwork-Delegate: david.marchand@redhat.com 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 73CFF43038; Sat, 12 Aug 2023 00:25:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64BDB432BD; Sat, 12 Aug 2023 00:23:30 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id ABF8443268 for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id BDBEB20FD423; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com BDBEB20FD423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=rzGBSZBKZlUl2Y30IM8n66vRoKrTr0C5bCrlKXhGBwQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rq/xgahteVXAtPJ08hTkEasL0dqmgq17wkMz6skc1np08tNtbeB4LENJknuJTDRzX jlH2zlvuRlboAWaZokIPfq655bV5YVbA+Jt/cVadaiU+dSjnB98AdL1WtWjYuVZ5ik ER3RZ4zHAUOLq6OlWeI54fqhc6CAfc3tlWxZY+T0= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 26/32] net/mlx4: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:41 -0700 Message-Id: <1691792567-10805-27-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- drivers/net/mlx4/mlx4.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h index 4023a47..d90570a 100644 --- a/drivers/net/mlx4/mlx4.h +++ b/drivers/net/mlx4/mlx4.h @@ -79,7 +79,6 @@ struct mlx4_mp_param { enum mlx4_mp_req_type type; int port_id; int result; - RTE_STD_C11 union { uintptr_t addr; /* MLX4_MP_REQ_CREATE_MR */ } args; From patchwork Fri Aug 11 22:22:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130243 X-Patchwork-Delegate: david.marchand@redhat.com 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 D35B343038; Sat, 12 Aug 2023 00:25:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 11F4C432D6; Sat, 12 Aug 2023 00:23:37 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id B71DC43269 for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id CD21D20FD425; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com CD21D20FD425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=4U2G2YDQruFDxUNjxhZtzmASxllgs1e6B0OabDorTeI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hRKqgPRfihlrwpWZ2RsgPbGaf84tUUzpEKWtOYBvRPgQc6jYOrmkQC3F5GvNqwp/l xSMosbt39D/OI1UdQwMCs5ZOtqiqMKWUnDH2wzLVfckDdp8hnMe68gtg4I2EzhczUz pSTvnqgrdsbW2leFahFz7P1j4XagTPJyjL2ynpTw= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 27/32] net/igc: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:42 -0700 Message-Id: <1691792567-10805-28-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- drivers/net/igc/igc_ethdev.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/igc/igc_ethdev.h b/drivers/net/igc/igc_ethdev.h index 8d7eb54..d3d3ddd 100644 --- a/drivers/net/igc/igc_ethdev.h +++ b/drivers/net/igc/igc_ethdev.h @@ -177,7 +177,6 @@ struct igc_ntuple_info { /* Structure of n-tuple filter */ struct igc_ntuple_filter { - RTE_STD_C11 union { uint64_t hash_val; struct igc_ntuple_info tuple_info; @@ -215,7 +214,6 @@ enum igc_filter_type { struct rte_flow { TAILQ_ENTRY(rte_flow) node; enum igc_filter_type filter_type; - RTE_STD_C11 char filter[0]; /* filter data */ }; From patchwork Fri Aug 11 22:22:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130241 X-Patchwork-Delegate: david.marchand@redhat.com 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 0E10F43038; Sat, 12 Aug 2023 00:25:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFFFA432CD; Sat, 12 Aug 2023 00:23:34 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id D793D40F17 for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id DE8D020FD427; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com DE8D020FD427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=kjmE/QGYNd+/27v5aJNO+BuZFNdoi4XrJ1t+faq3FKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l9dI8OFb4Si1wt39XLXxY6pJ5tm2/MjP94TeOslw1U8dj69Ij4gI5liQmLd2f86Ye p9/5GQOLUMR5dFd00/DP+R/l8v3v2PW8TmNLM0K1x91zHJV5cX1Y6e/MUgVR88oD4t SkgY9CaNRAX+8Up+wi0goh+pypEzs0QDsKozw4CA= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 28/32] net/avp: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:43 -0700 Message-Id: <1691792567-10805-29-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- drivers/net/avp/rte_avp_common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/avp/rte_avp_common.h b/drivers/net/avp/rte_avp_common.h index 4e82ec0..908b31b 100644 --- a/drivers/net/avp/rte_avp_common.h +++ b/drivers/net/avp/rte_avp_common.h @@ -8,7 +8,6 @@ #ifdef __KERNEL__ #include -#define RTE_STD_C11 #else #include #include @@ -76,7 +75,6 @@ struct rte_avp_device_config { */ struct rte_avp_request { uint32_t req_id; /**< Request id */ - RTE_STD_C11 union { uint32_t new_mtu; /**< New MTU */ uint8_t if_up; /**< 1: interface up, 0: interface down */ From patchwork Fri Aug 11 22:22:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130245 X-Patchwork-Delegate: david.marchand@redhat.com 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 4749143038; Sat, 12 Aug 2023 00:25:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 29D37432E0; Sat, 12 Aug 2023 00:23:39 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 12BFA43251 for ; Sat, 12 Aug 2023 00:23:05 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id EEFBC20FD42A; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com EEFBC20FD42A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=ZmD/9JBh0kzizbJ9ci/0A4kHO3bPJqsdYU4V0CWlsrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=roJTPw6pnt/K3xy7dwV6psvWU1gIA4Scil2Lzc8NZSNeteicTDdYu+9rF6CX3KMap arr6ZeM/Ap5bqF0owiKqWLr/d8GGpAPh0GvIuEGDV2APsR178Db9DVRPMtFsn+HTu3 ZuY61MNRASvh1sylw7KS0OFMszTKtlI0YP6+4Ba4= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 29/32] dma/idxd: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:44 -0700 Message-Id: <1691792567-10805-30-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- drivers/dma/idxd/idxd_hw_defs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/idxd/idxd_hw_defs.h b/drivers/dma/idxd/idxd_hw_defs.h index a38540f..7113d22 100644 --- a/drivers/dma/idxd/idxd_hw_defs.h +++ b/drivers/dma/idxd/idxd_hw_defs.h @@ -31,7 +31,6 @@ struct idxd_hw_desc { uint32_t op_flags; rte_iova_t completion; - RTE_STD_C11 union { rte_iova_t src; /* source address for copy ops etc. */ rte_iova_t desc_addr; /* descriptor pointer for batch */ From patchwork Fri Aug 11 22:22:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130244 X-Patchwork-Delegate: david.marchand@redhat.com 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 97ABE43038; Sat, 12 Aug 2023 00:25:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CEF4432DC; Sat, 12 Aug 2023 00:23:38 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 33B1A410DC for ; Sat, 12 Aug 2023 00:23:05 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 09FAC20FD42C; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 09FAC20FD42C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792584; bh=rld5oFEeBRoe+PaASVxzefPlUpkKWyRIuSZsCk66+zw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s/xegl/j9qK+UhFSP/3d3xVslch33lO3d5p5p3SD44nLHPqvpPMIgY3tzSKWqwk6O 3ezEoKM+G3bjFJ13LNmU2vEJ1sniOjOIsz/zTscsjxTM+8RtEZSflzVWOW4LTkSfE8 NEeJ5WEFNdQ3Bc+0eiqfl9um6eBGjge8At5DOYhQ= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 30/32] common/mlx5: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:45 -0700 Message-Id: <1691792567-10805-31-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- drivers/common/mlx5/mlx5_common_mp.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/common/mlx5/mlx5_common_mp.h b/drivers/common/mlx5/mlx5_common_mp.h index 34e4fae..ab8bccc 100644 --- a/drivers/common/mlx5/mlx5_common_mp.h +++ b/drivers/common/mlx5/mlx5_common_mp.h @@ -38,7 +38,6 @@ struct mlx5_mp_arg_queue_id { struct mlx5_mp_arg_mr_manage { struct mlx5_common_device *cdev; - RTE_STD_C11 union { struct { struct rte_mempool *mempool; @@ -53,7 +52,6 @@ struct mlx5_mp_param { enum mlx5_mp_req_type type; int port_id; int result; - RTE_STD_C11 union { struct mlx5_mp_arg_mr_manage mr_manage; /* MLX5_MP_REQ_MEMPOOL_(UN)REGISTER, MLX5_MP_REQ_CREATE_MR */ From patchwork Fri Aug 11 22:22:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130246 X-Patchwork-Delegate: david.marchand@redhat.com 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 4F2D643038; Sat, 12 Aug 2023 00:26:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 269FD432E5; Sat, 12 Aug 2023 00:23:40 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 4211D43254 for ; Sat, 12 Aug 2023 00:23:05 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 19CD820FD42E; Fri, 11 Aug 2023 15:23:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 19CD820FD42E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792584; bh=L3Z1+oveHbFlqZ4ggudmXoYeDqVC2xPMfpRtGvI/Qmc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U7tf0vrSLJy5zlu5ZQ6ZQ7GFLt+4GJbiK72BxDuDsRRDc78Jfold8QnClZtIHXNtN Ft9vKZQaKvJPKEXRxf8Dqr2jEfYJltI2nBOHjw44VLawreN3eWTnpjOCnpViSZ6pqG a4zApdFyc6VSm19lFA6PTaRTbE1HgAON6IZocx2U= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 31/32] common/cnxk: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:46 -0700 Message-Id: <1691792567-10805-32-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- drivers/common/cnxk/hw/nix.h | 7 ------- drivers/common/cnxk/roc_nix.h | 1 - drivers/common/cnxk/roc_npc.h | 3 --- drivers/common/cnxk/roc_platform.h | 1 - 4 files changed, 12 deletions(-) diff --git a/drivers/common/cnxk/hw/nix.h b/drivers/common/cnxk/hw/nix.h index 26dcda6..319fe36 100644 --- a/drivers/common/cnxk/hw/nix.h +++ b/drivers/common/cnxk/hw/nix.h @@ -1622,7 +1622,6 @@ struct nix_send_crc_s { }; /* NIX send extended header sub descriptor structure */ -PLT_STD_C11 union nix_send_ext_w0_u { uint64_t u; struct { @@ -1642,7 +1641,6 @@ struct nix_send_crc_s { }; }; -PLT_STD_C11 union nix_send_ext_w1_u { uint64_t u; struct { @@ -1672,7 +1670,6 @@ struct nix_send_ext_s { }; /* NIX send header sub descriptor structure */ -PLT_STD_C11 union nix_send_hdr_w0_u { uint64_t u; struct { @@ -1686,7 +1683,6 @@ struct nix_send_ext_s { }; }; -PLT_STD_C11 union nix_send_hdr_w1_u { uint64_t u; struct { @@ -1728,7 +1724,6 @@ struct nix_send_jump_s { }; /* NIX send memory sub descriptor structure */ -PLT_STD_C11 union nix_send_mem_w0_u { uint64_t u; struct { @@ -1756,7 +1751,6 @@ struct nix_send_mem_s { }; /* NIX send scatter/gather sub descriptor structure */ -PLT_STD_C11 union nix_send_sg2_s { uint64_t u; struct { @@ -1771,7 +1765,6 @@ struct nix_send_mem_s { }; }; -PLT_STD_C11 union nix_send_sg_s { uint64_t u; struct { diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h index 9c2ba9a..66f0597 100644 --- a/drivers/common/cnxk/roc_nix.h +++ b/drivers/common/cnxk/roc_nix.h @@ -294,7 +294,6 @@ struct roc_nix_stats { }; struct roc_nix_stats_queue { - PLT_STD_C11 union { struct { /* Rx */ diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h index 07e6634..48e550a 100644 --- a/drivers/common/cnxk/roc_npc.h +++ b/drivers/common/cnxk/roc_npc.h @@ -67,7 +67,6 @@ struct roc_ether_addr { struct roc_ether_hdr { struct roc_ether_addr d_addr; /**< Destination address. */ - PLT_STD_C11 union { struct roc_ether_addr s_addr; /**< Source address. */ struct { @@ -77,7 +76,6 @@ struct roc_ether_hdr { uint16_t ether_type; /**< Frame type. */ } __plt_aligned(2); -PLT_STD_C11 struct roc_npc_flow_item_eth { union { struct { @@ -101,7 +99,6 @@ struct roc_vlan_hdr { uint16_t eth_proto; /**< Ethernet type of encapsulated frame. */ } __plt_packed; -PLT_STD_C11 struct roc_npc_flow_item_vlan { union { struct { diff --git a/drivers/common/cnxk/roc_platform.h b/drivers/common/cnxk/roc_platform.h index 9884398..08f83ab 100644 --- a/drivers/common/cnxk/roc_platform.h +++ b/drivers/common/cnxk/roc_platform.h @@ -43,7 +43,6 @@ #define PLT_ASSERT RTE_ASSERT #define PLT_VERIFY RTE_VERIFY #define PLT_MEMZONE_NAMESIZE RTE_MEMZONE_NAMESIZE -#define PLT_STD_C11 RTE_STD_C11 #define PLT_PTR_ADD RTE_PTR_ADD #define PLT_PTR_SUB RTE_PTR_SUB #define PLT_PTR_DIFF RTE_PTR_DIFF From patchwork Fri Aug 11 22:22:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 130247 X-Patchwork-Delegate: david.marchand@redhat.com 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 56D6843038; Sat, 12 Aug 2023 00:26:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38E4A432EB; Sat, 12 Aug 2023 00:23:41 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 9215F43259 for ; Sat, 12 Aug 2023 00:23:05 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 291B720FD430; Fri, 11 Aug 2023 15:23:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 291B720FD430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792584; bh=PEqFiP1X+PRQjXZpXAhkaabdTwED01yUm2I9SpZIneg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KYMCDEWOXjUSVaWNE6aBn645PDaxSBVfaKd0zM3UNHkVfuYRqjcxSkHBtGvT631Uk w52o4Yk+a+jV7efoD5RDs0v84HBGrF9mBGWsfzVLREeslmsdyZw+lP0h7GtwJQhgkL srsrWFEQiW8LJkyBe37ypU7tfLlijTdUXWntec6Q= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 32/32] eal: remove use and definition of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:47 -0700 Message-Id: <1691792567-10805-33-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use and definition of RTE_STD_C11 macro. Signed-off-by: Tyler Retzlaff --- lib/eal/common/eal_common_proc.c | 1 - lib/eal/common/eal_interrupts.h | 1 - lib/eal/common/malloc_mp.h | 2 -- lib/eal/include/generic/rte_atomic.h | 2 -- lib/eal/include/rte_common.h | 7 ------- lib/eal/include/rte_devargs.h | 1 - lib/eal/include/rte_memory.h | 2 -- lib/eal/include/rte_memzone.h | 1 - lib/eal/linux/eal_vfio.h | 1 - lib/eal/x86/include/rte_atomic_32.h | 1 - lib/eal/x86/include/rte_cycles.h | 1 - 11 files changed, 20 deletions(-) diff --git a/lib/eal/common/eal_common_proc.c b/lib/eal/common/eal_common_proc.c index 02d4599..c4981f2 100644 --- a/lib/eal/common/eal_common_proc.c +++ b/lib/eal/common/eal_common_proc.c @@ -80,7 +80,6 @@ struct pending_request { struct rte_mp_msg *request; struct rte_mp_msg *reply; int reply_received; - RTE_STD_C11 union { struct { struct async_request_param *param; diff --git a/lib/eal/common/eal_interrupts.h b/lib/eal/common/eal_interrupts.h index 482781b..c9d6744 100644 --- a/lib/eal/common/eal_interrupts.h +++ b/lib/eal/common/eal_interrupts.h @@ -6,7 +6,6 @@ #define EAL_INTERRUPTS_H struct rte_intr_handle { - RTE_STD_C11 union { struct { int dev_fd; /**< VFIO/UIO cfg device file descriptor */ diff --git a/lib/eal/common/malloc_mp.h b/lib/eal/common/malloc_mp.h index 8d14868..43dc2a8 100644 --- a/lib/eal/common/malloc_mp.h +++ b/lib/eal/common/malloc_mp.h @@ -39,7 +39,6 @@ struct malloc_req_alloc { }; struct malloc_req_free { - RTE_STD_C11 union { void *addr; uint64_t addr_64; @@ -49,7 +48,6 @@ struct malloc_req_free { struct malloc_mp_req { enum malloc_req_type t; - RTE_STD_C11 union { struct malloc_req_alloc alloc_req; struct malloc_req_free free_req; diff --git a/lib/eal/include/generic/rte_atomic.h b/lib/eal/include/generic/rte_atomic.h index aef44e2..82b9bfc 100644 --- a/lib/eal/include/generic/rte_atomic.h +++ b/lib/eal/include/generic/rte_atomic.h @@ -1069,9 +1069,7 @@ static inline void rte_atomic64_clear(rte_atomic64_t *v) /** * 128-bit integer structure. */ -RTE_STD_C11 typedef struct { - RTE_STD_C11 union { uint64_t val[2]; #ifdef RTE_ARCH_64 diff --git a/lib/eal/include/rte_common.h b/lib/eal/include/rte_common.h index 15765b4..77f937e 100644 --- a/lib/eal/include/rte_common.h +++ b/lib/eal/include/rte_common.h @@ -34,13 +34,6 @@ #endif #endif -/** C extension macro for environments lacking C11 features. */ -#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L -#define RTE_STD_C11 __extension__ -#else -#define RTE_STD_C11 -#endif - /* * RTE_TOOLCHAIN_GCC is defined if the target is built with GCC, * while a host application (like pmdinfogen) may have another compiler. diff --git a/lib/eal/include/rte_devargs.h b/lib/eal/include/rte_devargs.h index 38dee2f..9126798 100644 --- a/lib/eal/include/rte_devargs.h +++ b/lib/eal/include/rte_devargs.h @@ -78,7 +78,6 @@ struct rte_devargs { enum rte_dev_policy policy; /** Name of the device. */ char name[RTE_DEV_NAME_MAX_LEN]; - RTE_STD_C11 union { const char *args; /**< legacy name. */ const char *drv_str; /**< driver-related part of device string. */ diff --git a/lib/eal/include/rte_memory.h b/lib/eal/include/rte_memory.h index 99a1139..3a1c607 100644 --- a/lib/eal/include/rte_memory.h +++ b/lib/eal/include/rte_memory.h @@ -47,7 +47,6 @@ */ struct rte_memseg { rte_iova_t iova; /**< Start IO address. */ - RTE_STD_C11 union { void *addr; /**< Start virtual address. */ uint64_t addr_64; /**< Makes sure addr is always 64 bits */ @@ -65,7 +64,6 @@ struct rte_memseg { * together with the array itself. */ struct rte_memseg_list { - RTE_STD_C11 union { void *base_va; /**< Base virtual address for this memseg list. */ diff --git a/lib/eal/include/rte_memzone.h b/lib/eal/include/rte_memzone.h index ebcdae9..931497f 100644 --- a/lib/eal/include/rte_memzone.h +++ b/lib/eal/include/rte_memzone.h @@ -51,7 +51,6 @@ struct rte_memzone { char name[RTE_MEMZONE_NAMESIZE]; /**< Name of the memory zone. */ rte_iova_t iova; /**< Start IO address. */ - RTE_STD_C11 union { void *addr; /**< Start virtual address. */ uint64_t addr_64; /**< Makes sure addr is always 64-bits */ diff --git a/lib/eal/linux/eal_vfio.h b/lib/eal/linux/eal_vfio.h index dc8ef32..23a787a 100644 --- a/lib/eal/linux/eal_vfio.h +++ b/lib/eal/linux/eal_vfio.h @@ -148,7 +148,6 @@ struct vfio_iommu_type { struct vfio_mp_param { int req; int result; - RTE_STD_C11 union { int group_num; int iommu_type_id; diff --git a/lib/eal/x86/include/rte_atomic_32.h b/lib/eal/x86/include/rte_atomic_32.h index c885a66..0f25863 100644 --- a/lib/eal/x86/include/rte_atomic_32.h +++ b/lib/eal/x86/include/rte_atomic_32.h @@ -25,7 +25,6 @@ rte_atomic64_cmpset(volatile uint64_t *dst, uint64_t exp, uint64_t src) { uint8_t res; - RTE_STD_C11 union { struct { uint32_t l32; diff --git a/lib/eal/x86/include/rte_cycles.h b/lib/eal/x86/include/rte_cycles.h index a461a4d..23d664b 100644 --- a/lib/eal/x86/include/rte_cycles.h +++ b/lib/eal/x86/include/rte_cycles.h @@ -25,7 +25,6 @@ { union { uint64_t tsc_64; - RTE_STD_C11 struct { uint32_t lo_32; uint32_t hi_32;