[09/32] pipeline: remove use of RTE STD C11 macro

Message ID 1691792567-10805-10-git-send-email-roretzla@linux.microsoft.com (mailing list archive)
State Accepted, archived
Delegated to: David Marchand
Headers
Series Remove use and definition of RTE_STD_C11 macro |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Tyler Retzlaff Aug. 11, 2023, 10:22 p.m. UTC
  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 <roretzla@linux.microsoft.com>
---
 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(-)
  

Patch

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;