From patchwork Mon Jun 1 09:38:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tal Shnaiderman X-Patchwork-Id: 70715 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5C599A04EF; Mon, 1 Jun 2020 11:39:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CD3B61D406; Mon, 1 Jun 2020 11:38:33 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id B60681D167 for ; Mon, 1 Jun 2020 11:38:27 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE2 (envelope-from talshn@mellanox.com) with ESMTPS (AES256-SHA encrypted); 1 Jun 2020 12:38:25 +0300 Received: from l-wincomp04-vm.labs.mlnx (l-wincomp04-vm.mtl.labs.mlnx [10.237.1.5]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0519cPvb023724; Mon, 1 Jun 2020 12:38:25 +0300 From: talshn@mellanox.com To: dev@dpdk.org Cc: thomas@monjalon.net, pallavi.kadam@intel.com, dmitry.kozliuk@gmail.com, david.marchand@redhat.com, olivier.matz@6wind.com, ranjit.menon@intel.com, navasile@linux.microsoft.com, fady@mellanox.com, harini.ramakrishnan@microsoft.com, ocardona@microsoft.com, Tal Shnaiderman Date: Mon, 1 Jun 2020 12:38:16 +0300 Message-Id: <20200601093818.5420-3-talshn@mellanox.com> X-Mailer: git-send-email 2.16.1.windows.4 In-Reply-To: <20200601093818.5420-1-talshn@mellanox.com> References: <20200601093818.5420-1-talshn@mellanox.com> Subject: [dpdk-dev] [PATCH 2/4] eal: set byteorder in Windows to little endian 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" From: Tal Shnaiderman Set the endianness in Windows to RTE_LITTLE_ENDIAN as support for Windows is limited to x86 architecture for now. Signed-off-by: Tal Shnaiderman --- lib/librte_eal/include/generic/rte_byteorder.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/include/generic/rte_byteorder.h b/lib/librte_eal/include/generic/rte_byteorder.h index 9ca960932f..6cfdf68731 100644 --- a/lib/librte_eal/include/generic/rte_byteorder.h +++ b/lib/librte_eal/include/generic/rte_byteorder.h @@ -17,8 +17,10 @@ #include #ifdef RTE_EXEC_ENV_FREEBSD #include -#else +#elif defined RTE_EXEC_ENV_LINUX #include +#elif defined RTE_EXEC_ENV_WINDOWS && !defined RTE_BYTE_ORDER +#define RTE_BYTE_ORDER RTE_LITTLE_ENDIAN #endif #include