From patchwork Sun Oct 24 11:45:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Marchand X-Patchwork-Id: 102707 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 A525BA0C41; Sun, 24 Oct 2021 13:46:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 397B44003E; Sun, 24 Oct 2021 13:46:08 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 9AFDD4003C for ; Sun, 24 Oct 2021 13:46:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635075966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a+h5HbqOeD0oCheU5iVXJtONshgap26cd+O6UoxsJqQ=; b=WxqXQ+1B9Kv4/S5WEHnHEzrNTXD7sfgxa//FIiK9lmc3Knhpa3SaoQ8a/tPfCw7VxkfYwI 6bgVciz5HMRzY92l2l4bKyebEQImOKbid1KHR6v+UmBzRnmyYEREvqfl2ZBKne37jVweRc tiOMkzqPfj3QDRQWceiS7gNPfb+gGVs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-444-V5FNU4gUO3OHgsJ2z63hMg-1; Sun, 24 Oct 2021 07:46:04 -0400 X-MC-Unique: V5FNU4gUO3OHgsJ2z63hMg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E8715802B7A; Sun, 24 Oct 2021 11:46:02 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 45AFB62A41; Sun, 24 Oct 2021 11:46:00 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Olivier Matz , Ferruh Yigit , Ori Kam , Jie Wang , Wenjun Wu , Andrew Rybchenko Date: Sun, 24 Oct 2021 13:45:52 +0200 Message-Id: <20211024114552.6144-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [dpdk-dev] [PATCH] net: fix pedantic build for L2TPv2 definitions 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 Sender: "dev" Build is broken on RHEL7 following introduction of this new protocol. Fixes: 3a929df1f286 ("ethdev: support L2TPv2 and PPP procotol") Signed-off-by: David Marchand Tested-by: Raslan Darawsheh --- lib/net/rte_l2tpv2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/net/rte_l2tpv2.h b/lib/net/rte_l2tpv2.h index 4634964820..670fe5470e 100644 --- a/lib/net/rte_l2tpv2.h +++ b/lib/net/rte_l2tpv2.h @@ -86,6 +86,7 @@ struct rte_l2tpv2_common_hdr { union { /** header flags and protocol version */ rte_be16_t flags_version; + __extension__ struct { #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN rte_be16_t t:1; /**< message Type */