From: Thomas Monjalon Date: Tue, 9 Apr 2019 20:06:35 +0000 (+0200) Subject: mbuf: fix big endian build X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=914631872c822a440b4d19545d9974481424cd3f;p=dpdk.git mbuf: fix big endian build 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") Signed-off-by: Thomas Monjalon Acked-by: Konstantin Ananyev --- diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index a6c4a5e183..68415af024 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -504,7 +504,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,