From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 6B5B41B757 for ; Tue, 3 Apr 2018 16:03:27 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2018 07:03:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,401,1517904000"; d="scan'208";a="39039634" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by FMSMGA003.fm.intel.com with ESMTP; 03 Apr 2018 07:03:24 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 3 Apr 2018 07:03:24 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.235]) by shsmsx102.ccr.corp.intel.com ([169.254.2.80]) with mapi id 14.03.0319.002; Tue, 3 Apr 2018 22:03:22 +0800 From: "Zhang, Qi Z" To: "Zhao1, Wei" , "dev@dpdk.org" Thread-Topic: [PATCH] net/i40e: fix flow RSS tci using error Thread-Index: AQHTyxTzIn+UtO826EynMEzNwzUa56PvEYsg Date: Tue, 3 Apr 2018 14:03:22 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153178676@SHSMSX103.ccr.corp.intel.com> References: <1522735776-27118-1-git-send-email-wei.zhao1@intel.com> In-Reply-To: <1522735776-27118-1-git-send-email-wei.zhao1@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix flow RSS tci using error 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, 03 Apr 2018 14:03:31 -0000 > -----Original Message----- > From: Zhao1, Wei > Sent: Tuesday, April 3, 2018 2:10 PM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Zhao1, Wei > Subject: [PATCH] net/i40e: fix flow RSS tci using error >=20 > Vlan tci configuration from testpmd is store in big endian, so it need to= be > change to little endian before using. >=20 > Fixes: ecad87d22383 ("net/i40e: move RSS to flow API") > Signed-off-by: Wei Zhao > Tested-by: Peng Yuan Acked-by: Qi Zhang Please don't forget to Cc: stable@dpdk.org, if you fix an issue for previou= s release. Regards Qi > --- > drivers/net/i40e/i40e_flow.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c = index > fa562d3..8d0a36b 100644 > --- a/drivers/net/i40e/i40e_flow.c > +++ b/drivers/net/i40e/i40e_flow.c > @@ -4151,7 +4151,8 @@ i40e_flow_parse_rss_pattern(__rte_unused struct > rte_eth_dev *dev, > if (vlan_mask->tci =3D=3D > rte_cpu_to_be_16(I40E_TCI_MASK)) { > info->region[0].user_priority[0] =3D > - (vlan_spec->tci >> 13) & 0x7; > + (rte_be_to_cpu_16( > + vlan_spec->tci) >> 13) & 0x7; > info->region[0].user_priority_num =3D 1; > info->queue_region_number =3D 1; > *action_flag =3D 0; > -- > 2.7.5