From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 208E42901 for ; Thu, 18 May 2017 12:14:16 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id d127so46599911wmf.0 for ; Thu, 18 May 2017 03:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CGw+fWe1iYsMy+ELL3W3VSB/DF3hVwZfYfj6dHfDMmI=; b=LzUy2vq32VO51kXOgB0dGUnshwuyoNqdPXOBEPlsFE6xbqTj4APlbm0ghgMC9Jhokj BwHbW2y+ue9vYW9UpJ/aFaFIbukm5mdN3QVEd5bZH8l3Pbd3RC5s/0ZbxKEcn+QGZuST gredSaXCv5XU/53bVVPLWZBhrl3ZLYarSzObEDl+WeF3iK7PbI8f6nKeERVbbui3bS/D 6dK/daQ99aisLsPjpgwPuLv2zuH1WxjNONSbHpzxsvKiKCBys2iz2z4oFFKkSg9tuKUH NVv5CEeoo2ExVH5qxTjYpN9Y12C1dmWshRXCl4VXXZVOtUyaDnn2UakwNP7fepYkImPF in1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CGw+fWe1iYsMy+ELL3W3VSB/DF3hVwZfYfj6dHfDMmI=; b=BRoT6uABGy0XvZGNwD2/9UApma4giBeJVlnhDN/FssfTsrFGPqJb4hw0F+h5FsE6Tv heFp6iXoe0Q5DXX59oew5gszgaipFFt+aSyKB+C5TW1lJxNrz6de13tApcYJ8+ReSsDV naBQC9end9ksgnvI1XrjNkRXRGwZe3YqHpG/cDTiPT0DL9ZB1Wz6yhdSGM/fhfMQ/5RJ /v6G6J+b9dAPRfcUASq34cUx6n9fC8XCoelMETq9j1gVKJjiInL82AQRwa7sLbQbBA9+ QE1230eDHxXFcHQU3NXNwMV/pyL8BLEveh5HiSksvic1TERlnnEdAJsXUbGs2Wwz4sGq ifIw== X-Gm-Message-State: AODbwcD4YhSSBfYeY0hz5w9Jh1NhI04NpIdMALcW8jRG1+rqKcitYNXw 9wIZKbkC+CsNdhO1hPY= X-Received: by 10.28.149.68 with SMTP id x65mr2470711wmd.66.1495102454939; Thu, 18 May 2017 03:14:14 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id v7sm6463579wrb.68.2017.05.18.03.14.14 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 18 May 2017 03:14:14 -0700 (PDT) From: Adrien Mazarguil To: Thomas Monjalon Cc: dev@dpdk.org Date: Thu, 18 May 2017 12:14:08 +0200 Message-Id: <5fc91bdf96dac9a1be7b3ba71eeae18725206bdd.1495101988.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <840342851720fc237214aeb30d38565615293b58.1495101988.git.adrien.mazarguil@6wind.com> References: <840342851720fc237214aeb30d38565615293b58.1495101988.git.adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH 2/2] ethdev: tidy up endianness handling in flow API 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: Thu, 18 May 2017 10:14:16 -0000 Signed-off-by: Adrien Mazarguil --- lib/librte_ether/rte_flow.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/librte_ether/rte_flow.h b/lib/librte_ether/rte_flow.h index c47edbc..02dcfe7 100644 --- a/lib/librte_ether/rte_flow.h +++ b/lib/librte_ether/rte_flow.h @@ -624,13 +624,7 @@ struct rte_flow_item_e_tag { /** Default mask for RTE_FLOW_ITEM_TYPE_E_TAG. */ #ifndef __cplusplus static const struct rte_flow_item_e_tag rte_flow_item_e_tag_mask = { -#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN - .rsvd_grp_ecid_b = 0x3fff, -#elif RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN - .rsvd_grp_ecid_b = 0xff3f, -#else -#error Unsupported endianness. -#endif + .rsvd_grp_ecid_b = RTE_BE16(0x3fff), }; #endif -- 2.1.4