From patchwork Tue Nov 7 22:14: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: 133953 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 16D4F432CB; Tue, 7 Nov 2023 23:14:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0532C402D5; Tue, 7 Nov 2023 23:14:48 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 4A19F4025E for ; Tue, 7 Nov 2023 23:14:46 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 9AF4620B74C0; Tue, 7 Nov 2023 14:14:45 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9AF4620B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1699395285; bh=kKHhfIVHCKxHu2sQpCx/VhEMGW31Bvonwfb/l4POF2g=; h=From:To:Cc:Subject:Date:From; b=M+w7JDYsrF/XsEB6YIREVCHJYoCQWylR+IoguiaugSduGHP+2Iux4a6C7BJehZcOa 78jSba7EiXx/nKjxTCaRPiS2IHmZnYhK/l3+6/Fb3U0F+ORbBN/dT6NuRmYWBhQdka zXTfdw7an/lOP4MmFWMkcNlvBxDbCUagTWeILQ4o= From: Tyler Retzlaff To: dev@dpdk.org Cc: Tyler Retzlaff Subject: [PATCH] mbuf: remove use of now unnecessary extension keyword Date: Tue, 7 Nov 2023 14:14:44 -0800 Message-Id: <1699395284-8751-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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 Remove the use of __extension__ on nameless struct and union members they are no longer necessary as they are standard in C11 Signed-off-by: Tyler Retzlaff --- lib/mbuf/rte_mbuf_core.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/mbuf/rte_mbuf_core.h b/lib/mbuf/rte_mbuf_core.h index 5688683..d335ed8 100644 --- a/lib/mbuf/rte_mbuf_core.h +++ b/lib/mbuf/rte_mbuf_core.h @@ -525,7 +525,6 @@ struct rte_mbuf { */ union { uint32_t packet_type; /**< L2/L3/L4 and tunnel information. */ - __extension__ struct { uint8_t l2_type:4; /**< (Outer) L2 type. */ uint8_t l3_type:4; /**< (Outer) L3 type. */ @@ -537,7 +536,6 @@ struct rte_mbuf { * RTE_PTYPE_TUNNEL_ESP tunnel type is set * on both Tx and Rx. */ - __extension__ struct { uint8_t inner_l2_type:4; /**< Inner L2 type. */ @@ -614,7 +612,6 @@ struct rte_mbuf { /* fields to support TX offloads */ union { uint64_t tx_offload; /**< combined for easy fetch */ - __extension__ struct { uint64_t l2_len:RTE_MBUF_L2_LEN_BITS; /**< L2 (MAC) Header Length for non-tunneling pkt.