From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 546F2A0096 for ; Tue, 9 Apr 2019 21:49:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4F4DF5920; Tue, 9 Apr 2019 21:49:21 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id 1260758FE for ; Tue, 9 Apr 2019 21:49:19 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 9F46E304; Tue, 9 Apr 2019 15:49:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 09 Apr 2019 15:49:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=IWacQRsm0XY7pHvHGNCcGLFQoNl/VQbzx4LAEis0DNg=; b=bLcbGSRIJM1P X171m7NptVuamlompwf0Kvtmn7jOMoAAulBVeraqMmCg19Clj5vHI8O5H7T8PQcy xWP31F+lZSnPnjT63AeVSTCZWer74cCiwU5bmvscL/O7zsT/N32yQSE1b0xS+wtk 2p5q3ljxmLM5cPu9Ng2yFx/crmcueIo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=IWacQRsm0XY7pHvHGNCcGLFQoNl/VQbzx4LAEis0D Ng=; b=TUhvfgi+aoa/PhHxzRtvccnUAURdRzKaB1uFT8PPL64q98XKjbh+v7oV9 0klUxBbEqq9V3LrwVOuQLhbdvBOibOWD064E98CZQpoqr0aXO36c3tkdiZOOSLA4 1CCaIGj7HjRmMde+1wD6fb8k4F3ydHLQFmIa7zJy54cJfRY/0gBIrHm5/n5omNJ8 xHrZK0mEmVFLt3i2QOmT26qsKF/pYtyZs4FQBDWMWJchduqvUUo0owIaTX4tC3yy /LbrxrrhWDlx33t0t8spmehUssWrTG1D22kOFTs7c5PZDRkEyJcciCWgccFrhcj0 1YTCXf0vKq6ehDubkNYEB+I0LeCjw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehgddugeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc fkphepjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpeht hhhomhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id AEC40E40FF; Tue, 9 Apr 2019 15:49:14 -0400 (EDT) From: Thomas Monjalon To: qiming.yang@intel.com, wenzhuo.lu@intel.com, ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com, Olivier Matz Cc: ferruh.yigit@intel.com, dev@dpdk.org, konstantin.ananyev@intel.com Date: Tue, 9 Apr 2019 21:49:03 +0200 Message-Id: <20190409194904.6822-2-thomas@monjalon.net> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190409194904.6822-1-thomas@monjalon.net> References: <20190409194904.6822-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/2] mbuf: fix big endian build 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" Message-ID: <20190409194903.WD1CW-gDMRewywvLA70r6B7pQH71ldg02Dd8k6G2I8U@z> Compilation was failing when using a big endian toolchain: rte_mbuf.h:504:2: error: expected ‘,’ or ‘}’ before ‘RTE_MBUF_L3_LEN_OFS’ Fixes: 8d9c2c3a1f01 ("mbuf: add function to generate raw Tx offload value") Cc: konstantin.ananyev@intel.com Signed-off-by: Thomas Monjalon --- lib/librte_mbuf/rte_mbuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index f7886dcb3..7dd2e7fb3 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -500,7 +500,7 @@ enum { RTE_MBUF_OUTL2_LEN_BITS, #if RTE_BYTE_ORDER == RTE_BIG_ENDIAN RTE_MBUF_L2_LEN_OFS = - sizeof(uint64_t) * CHAR_BIT - RTE_MBUF_L2_LEN_BITS + sizeof(uint64_t) * CHAR_BIT - RTE_MBUF_L2_LEN_BITS, RTE_MBUF_L3_LEN_OFS = RTE_MBUF_L2_LEN_OFS - RTE_MBUF_L3_LEN_BITS, RTE_MBUF_L4_LEN_OFS = RTE_MBUF_L3_LEN_OFS - RTE_MBUF_L4_LEN_BITS, RTE_MBUF_TSO_SEGSZ_OFS = RTE_MBUF_L4_LEN_OFS - RTE_MBUF_TSO_SEGSZ_BITS, -- 2.21.0