From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 35640A3295 for ; Wed, 23 Oct 2019 10:52:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9996A1BFF3; Wed, 23 Oct 2019 10:52:21 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 1C5231BFDB for ; Wed, 23 Oct 2019 10:52:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571820736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zH2ulEkB4FMeDrcn8Pd7DKSx4ldhrBeH/Eukh6FQbKA=; b=Ti3C3+AFJYLMf41rVVkQzNAekClwYeNfz6IarZ0RGOJSCuHIkSlFYf8qgeu/ZU/iIPYccL pdohxDJSx7MoQbz4Xo8rrgGPIEF1dsMSHUp9oZH+3M1U78uiCWXVp7zOgp/GFYlACokcvS R7FBFNVVYCt/OgnZb6udWPnHoPZ/YC8= 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-375-UhPuuFQ5OiaUMYnDAq3SNw-1; Wed, 23 Oct 2019 04:52:13 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4D22C800D49; Wed, 23 Oct 2019 08:52:12 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-129.brq.redhat.com [10.40.204.129]) by smtp.corp.redhat.com (Postfix) with ESMTP id B4B691D9; Wed, 23 Oct 2019 08:52:10 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: olivier.matz@6wind.com, ferruh.yigit@intel.com, stable@dpdk.org Date: Wed, 23 Oct 2019 10:51:57 +0200 Message-Id: <1571820718-7021-3-git-send-email-david.marchand@redhat.com> In-Reply-To: <1571820718-7021-1-git-send-email-david.marchand@redhat.com> References: <1571820718-7021-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: UhPuuFQ5OiaUMYnDAq3SNw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] [PATCH 2/3] net: add rte prefix to MPLS structure X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Add 'rte_' prefix to structures: - rename struct mpls_hdr as struct rte_mpls_hdr. Cc: stable@dpdk.org Signed-off-by: David Marchand --- lib/librte_net/rte_mpls.h | 2 +- lib/librte_net/rte_net.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_net/rte_mpls.h b/lib/librte_net/rte_mpls.h index 11d26ba..32b6431 100644 --- a/lib/librte_net/rte_mpls.h +++ b/lib/librte_net/rte_mpls.h @@ -21,7 +21,7 @@ extern "C" { /** * MPLS header. */ -struct mpls_hdr { +struct rte_mpls_hdr { =09uint16_t tag_msb; /**< Label(msb). */ #if RTE_BYTE_ORDER =3D=3D RTE_BIG_ENDIAN =09uint8_t tag_lsb:4; /**< Label(lsb). */ diff --git a/lib/librte_net/rte_net.c b/lib/librte_net/rte_net.c index dfccbbf..6f45b13 100644 --- a/lib/librte_net/rte_net.c +++ b/lib/librte_net/rte_net.c @@ -278,8 +278,8 @@ uint32_t rte_net_get_ptype(const struct rte_mbuf *m, =09} else if ((proto =3D=3D rte_cpu_to_be_16(RTE_ETHER_TYPE_MPLS)) || =09=09(proto =3D=3D rte_cpu_to_be_16(RTE_ETHER_TYPE_MPLSM))) { =09=09unsigned int i; -=09=09const struct mpls_hdr *mh; -=09=09struct mpls_hdr mh_copy; +=09=09const struct rte_mpls_hdr *mh; +=09=09struct rte_mpls_hdr mh_copy; =20 #define MAX_MPLS_HDR 5 =09=09for (i =3D 0; i < MAX_MPLS_HDR; i++) { --=20 1.8.3.1