From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 57E341BA6B for ; Wed, 4 Apr 2018 03:29:14 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2018 18:29:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,403,1517904000"; d="scan'208";a="188450800" Received: from pgsmsx108.gar.corp.intel.com ([10.221.44.103]) by orsmga004.jf.intel.com with ESMTP; 03 Apr 2018 18:29:11 -0700 Received: from pgsmsx101.gar.corp.intel.com ([169.254.1.195]) by PGSMSX108.gar.corp.intel.com ([169.254.8.75]) with mapi id 14.03.0319.002; Wed, 4 Apr 2018 09:29:10 +0800 From: "Zhao1, Wei" To: "Zhang, Qi Z" , "dev@dpdk.org" Thread-Topic: [PATCH] net/i40e: fix flow RSS tci using error Thread-Index: AQHTyxT1u83QYqTGEESuM6dckjENQKPujMcAgAFFXyA= Date: Wed, 4 Apr 2018 01:29:10 +0000 Message-ID: References: <1522735776-27118-1-git-send-email-wei.zhao1@intel.com> <039ED4275CED7440929022BC67E7061153178676@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <039ED4275CED7440929022BC67E7061153178676@SHSMSX103.ccr.corp.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: [172.30.20.206] 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: Wed, 04 Apr 2018 01:29:14 -0000 > -----Original Message----- > From: Zhang, Qi Z > Sent: Tuesday, April 3, 2018 10:03 PM > To: Zhao1, Wei ; dev@dpdk.org > Subject: RE: [PATCH] net/i40e: fix flow RSS tci using error >=20 >=20 >=20 > > -----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 > > > > Vlan tci configuration from testpmd is store in big endian, so it need > > to be change to little endian before using. > > > > Fixes: ecad87d22383 ("net/i40e: move RSS to flow API") > > Signed-off-by: Wei Zhao > > Tested-by: Peng Yuan >=20 > Acked-by: Qi Zhang >=20 > Please don't forget to Cc: stable@dpdk.org, if you fix an issue for previ= ous > release. Ok. >=20 > Regards > Qi >=20 > > --- > > drivers/net/i40e/i40e_flow.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > 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