From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id 61F185B1C for ; Tue, 9 Apr 2019 22:06:44 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 1D53F31D; Tue, 9 Apr 2019 16:06:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 09 Apr 2019 16:06:43 -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-transfer-encoding; s=mesmtp; bh=FaZC2PQby6 F2J9aIZb9aYtm7zSKZBoWEEXcOi3l6I4c=; b=bWO1i2lqhrIB2wpJ0SZe26uE1W 9MLMJORmfGhZA1pWOaLD1otI16KSobS3EzFXfMoxDTd5el5mkRvGSMyUsHCgkq6k NJOZlntsCOCtq5R1GlL5hSfWXJVglXPQg0/9q+kEYV7IcMT7VxC8sWTO4J0cF7rN 9fIFQuaAXr1ggAy6w= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=FaZC2PQby6F2J9aIZb9aYtm7zSKZBoWEEXcOi3l6I4c=; b=rO7ledId cYGHG9WlTySJ6hVrYVoNu4vU51nA5yqbWEq+YJdMPbZDI2Q33O26qKBuQccRsg3Z LJH3qJ/Ppr2b45tbH1jQnwXIucyhFxUXUxpUvq8VaNkHpbR8P0BX5z/5gKTDp/6L 57l1J7jkw30qj+yx5z20ftUP8GWEWu5tQOso/vPTpn80gc2bgkvpdt+KAH7O4XTW 4I6aBtqzJ1IH099rU6BVJ3/7plnWD2u3tghPEz2WqNqGgvHeJshjclSXpbogYG/U zxuTC0kCXRjDSG2t8xIJLCPBJ+s2GyaSbcjw4thzmzs84DX7JFphW2QLuxO2yN/6 eLJntCRrE6fHwQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehgddugeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt 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 145ECE409D; Tue, 9 Apr 2019 16:06:40 -0400 (EDT) From: Thomas Monjalon To: Olivier Matz Cc: dev@dpdk.org, konstantin.ananyev@intel.com Date: Tue, 9 Apr 2019 22:06:35 +0200 Message-Id: <20190409200636.2193-2-thomas@monjalon.net> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190409200636.2193-1-thomas@monjalon.net> References: <20190409194904.6822-1-thomas@monjalon.net> <20190409200636.2193-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 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: , X-List-Received-Date: Tue, 09 Apr 2019 20:06:45 -0000 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 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 1C548A0096 for ; Tue, 9 Apr 2019 22:06:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7B12A5B2A; Tue, 9 Apr 2019 22:06:46 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id 61F185B1C for ; Tue, 9 Apr 2019 22:06:44 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 1D53F31D; Tue, 9 Apr 2019 16:06:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 09 Apr 2019 16:06:43 -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-transfer-encoding; s=mesmtp; bh=FaZC2PQby6 F2J9aIZb9aYtm7zSKZBoWEEXcOi3l6I4c=; b=bWO1i2lqhrIB2wpJ0SZe26uE1W 9MLMJORmfGhZA1pWOaLD1otI16KSobS3EzFXfMoxDTd5el5mkRvGSMyUsHCgkq6k NJOZlntsCOCtq5R1GlL5hSfWXJVglXPQg0/9q+kEYV7IcMT7VxC8sWTO4J0cF7rN 9fIFQuaAXr1ggAy6w= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=FaZC2PQby6F2J9aIZb9aYtm7zSKZBoWEEXcOi3l6I4c=; b=rO7ledId cYGHG9WlTySJ6hVrYVoNu4vU51nA5yqbWEq+YJdMPbZDI2Q33O26qKBuQccRsg3Z LJH3qJ/Ppr2b45tbH1jQnwXIucyhFxUXUxpUvq8VaNkHpbR8P0BX5z/5gKTDp/6L 57l1J7jkw30qj+yx5z20ftUP8GWEWu5tQOso/vPTpn80gc2bgkvpdt+KAH7O4XTW 4I6aBtqzJ1IH099rU6BVJ3/7plnWD2u3tghPEz2WqNqGgvHeJshjclSXpbogYG/U zxuTC0kCXRjDSG2t8xIJLCPBJ+s2GyaSbcjw4thzmzs84DX7JFphW2QLuxO2yN/6 eLJntCRrE6fHwQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehgddugeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt 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 145ECE409D; Tue, 9 Apr 2019 16:06:40 -0400 (EDT) From: Thomas Monjalon To: Olivier Matz Cc: dev@dpdk.org, konstantin.ananyev@intel.com Date: Tue, 9 Apr 2019 22:06:35 +0200 Message-Id: <20190409200636.2193-2-thomas@monjalon.net> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190409200636.2193-1-thomas@monjalon.net> References: <20190409194904.6822-1-thomas@monjalon.net> <20190409200636.2193-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 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" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190409200635.23Wx_wVbdSi1m8qOdhHFqYuLxkUQ4oHvblX8OVdcC0A@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