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;