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 17B83A00BE; Mon, 27 Apr 2020 15:24:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BDB6F1D15E; Mon, 27 Apr 2020 15:24:13 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id AD7421C29A for ; Mon, 27 Apr 2020 15:24:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587993852; 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: in-reply-to:in-reply-to:references:references; bh=mh526CFhk7gUMw78IbqCToWaUxO3DBo5JZ2vApwOhZA=; b=OhsHrk3hX41jqUtg1/W0JcFJVY6Gpniq61qUMMvJ4NQ7PBHCpI/Jt8oftzZOtfxtOonY44 3Kbi1UvMANuVuX38KdfvVbek0cszstAjbQStiyxnnQP8TioveGsEumRbRKC3vu9ENvLxHB fO/8fK08hWEnYd5Gpu2IzUkWDbFMFQ4= 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-259-__GASPZHM4qa6O9AlhTkuw-1; Mon, 27 Apr 2020 09:24:10 -0400 X-MC-Unique: __GASPZHM4qa6O9AlhTkuw-1 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 B84A58C1A18; Mon, 27 Apr 2020 13:24:04 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.195.1]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7358819C4F; Mon, 27 Apr 2020 13:24:03 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Adrien Mazarguil Date: Mon, 27 Apr 2020 15:23:40 +0200 Message-Id: <20200427132341.27681-3-david.marchand@redhat.com> In-Reply-To: <20200427132341.27681-1-david.marchand@redhat.com> References: <20200427132341.27681-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] [PATCH 2/3] eal: fix typo in endian conversion macros X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Caught by code inspection, for little endian, RTE_LEXX macros should provide rte_leXX_t type values. Fixes: b75667ef9f7e ("eal: add static endianness conversion macros") Cc: stable@dpdk.org Signed-off-by: David Marchand --- lib/librte_eal/include/generic/rte_byteorder.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/include/generic/rte_byteorder.h b/lib/librte_ea= l/include/generic/rte_byteorder.h index 38e8cfd32b..9ca960932f 100644 --- a/lib/librte_eal/include/generic/rte_byteorder.h +++ b/lib/librte_eal/include/generic/rte_byteorder.h @@ -93,9 +93,9 @@ #define RTE_BE16(v) (rte_be16_t)(RTE_STATIC_BSWAP16(v)) #define RTE_BE32(v) (rte_be32_t)(RTE_STATIC_BSWAP32(v)) #define RTE_BE64(v) (rte_be64_t)(RTE_STATIC_BSWAP64(v)) -#define RTE_LE16(v) (rte_be16_t)(v) -#define RTE_LE32(v) (rte_be32_t)(v) -#define RTE_LE64(v) (rte_be64_t)(v) +#define RTE_LE16(v) (rte_le16_t)(v) +#define RTE_LE32(v) (rte_le32_t)(v) +#define RTE_LE64(v) (rte_le64_t)(v) #else #error Unsupported endianness. #endif --=20 2.23.0