From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 0412441BB1;
	Thu,  2 Feb 2023 18:20:32 +0100 (CET)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id CF2A9410D7;
	Thu,  2 Feb 2023 18:20:31 +0100 (CET)
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com
 [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id B44AA40693
 for <dev@dpdk.org>; Thu,  2 Feb 2023 18:20:30 +0100 (CET)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47])
 by mailout.nyi.internal (Postfix) with ESMTP id 59A505C0185;
 Thu,  2 Feb 2023 12:20:30 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162])
 by compute6.internal (MEProxy); Thu, 02 Feb 2023 12:20:30 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 cc:cc:content-transfer-encoding:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to; s=fm3; t=1675358430; x=
 1675444830; bh=QXtcK90D8a6aqzTYQEnB9W7ypBttOOo8QdZiAMXeiXw=; b=V
 +Ps6v4Aj7+vQ0WlJR0T5gA9AkptKWlPQ89DzSZDvHKySImYucEfb88+pany7+yTI
 TwTEqDWm1Mkf1IdI+SRuu42oQmWXYF8dR6/p7w4DU19jbB4TvHEm/rIwJFTAcD8J
 B9BOL526SdkwMgn2tmPmKkUe5ZsfOwIuY+ep4QGM1JQC5CKsuN2V942K0ZUZY8cv
 e0tCDjktXGp0Qw/aYrb6oS+wrDTho2ot7TKomLBBuZV05O6HQ7L0J5I59tLECgnk
 DlWdXq5vmtG5HC9hV3juhiQ+N+bhJ4wRlz02SV6T9DMDOz6ZpmCtao8zldXpBF3R
 iqKj53FQvX3g/ilQuNt6A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1675358430; x=
 1675444830; bh=QXtcK90D8a6aqzTYQEnB9W7ypBttOOo8QdZiAMXeiXw=; b=c
 MA5wuH+DBqR+Mi+9hB4uDe6b+5hViJGM95veEHWSqKVoLnhnoenlGw/QZrZY6EfD
 9j/RIutNJqMzlGO+MI6dmVdCN4UR6LdFzQ4LG/sDu03pxtvo0nsq5l4KNUK2b7Xl
 WTrdDx6J8CS8J7B8I2DLqCfnMeJZTH+HAl7G7GqRjHAEsocLoUTbO2FY9ubzFpgp
 dw5X0vh4yi1fXzqsHoYwYOWAOEebtZklchH1i11P7y+oGCUQE6VcnbnMeC0KjyeS
 uj+ArPJDHLoRRL0yi6UKN3ZFftmbJBwpMwtBwlKnc5cuEKm9aeZQxdlagm+Ch4Be
 NFGJfmTU1lKeDOPe8eBdg==
X-ME-Sender: <xms:3vDbY54-GfkBz4tvD8vAkyzGZVL7MbVPvnFtHQfBv-DwUTqU2LrGcg>
 <xme:3vDbY265n8MnsOgNMBqEvMoo4vXMxxO87od97o7tIz0gkRglEUi3lcEB--dVkWk7B
 zsC8MLpYUhmvoZMzQ>
X-ME-Received: <xmr:3vDbYwcgYxh5dRuKOB_FQl94B7AK0UCk-qqJY0CgMpU7PA5foF1lYOLZGGfalW6grwad5ZdbkKfu5AEuFhifbip_QQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudefkedgleehucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm
 rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc
 ggtffrrghtthgvrhhnpedtjeeiieefhedtfffgvdelteeufeefheeujefgueetfedttdei
 kefgkeduhedtgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh
 hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght
X-ME-Proxy: <xmx:3vDbYyJZUk6c19sG6plwzqWaxYkcnFoPlOV583Fte-oqNr5OwITlxA>
 <xmx:3vDbY9JDwDiUXeNAwAkJCCSSWO0iO5G1RAnfc05pf1oygiq_q0D3ww>
 <xmx:3vDbY7woSgnstEH-15SM8q3xERRgEgkedoqPCFaKiSY5bCuwM86Uvw>
 <xmx:3vDbY6FAiZZF6RWhNP-Mvsa2IxOTthGd9PjXa52ZoUiOMs43iBQGAA>
Feedback-ID: i47234305:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 2 Feb 2023 12:20:29 -0500 (EST)
From: Thomas Monjalon <thomas@monjalon.net>
To: Ferruh Yigit <ferruh.yigit@amd.com>
Cc: Ori Kam <orika@nvidia.com>,
 Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,
 Olivier Matz <olivier.matz@6wind.com>,
 David Marchand <david.marchand@redhat.com>, dev@dpdk.org
Subject: Re: [PATCH v6 8/8] net: mark all big endian types
Date: Thu, 02 Feb 2023 18:20:28 +0100
Message-ID: <2213442.yKVeVyVuyW@thomas>
In-Reply-To: <20230202124500.2578857-9-ferruh.yigit@amd.com>
References: <20221025214410.715864-1-thomas@monjalon.net>
 <20230202124500.2578857-1-ferruh.yigit@amd.com>
 <20230202124500.2578857-9-ferruh.yigit@amd.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

02/02/2023 13:45, Ferruh Yigit:
> --- a/lib/ethdev/rte_flow.h
> +++ b/lib/ethdev/rte_flow.h
> @@ -642,8 +642,8 @@ struct rte_flow_item_higig2_hdr {
>  static const struct rte_flow_item_higig2_hdr rte_flow_item_higig2_hdr_mask = {
>  	.hdr = {
>  		.ppt1 = {
> -			.classification = 0xffff,
> -			.vid = 0xfff,
> +			.classification = RTE_BE16(0xffff),
> +			.vid = RTE_BE16(0xfff),

0xffff could be UINT16_MAX