From: "Hanoch Haim (hhaim)" Subject: Re: i40e mbuf->rss indication Date: Thu, 22 Mar 2018 11:46:22 +0000 Message-ID: References: <782383cd531a4248a3634705f46d8acf@XCH-RTP-017.cisco.com> <20180322113457.GB608@bricha3-MOBL.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" To: Bruce Richardson Return-path: Received: from alln-iport-8.cisco.com (alln-iport-8.cisco.com [173.37.142.95]) by dpdk.org (Postfix) with ESMTP id 795FB5F17 for ; Thu, 22 Mar 2018 12:46:24 +0100 (CET) In-Reply-To: <20180322113457.GB608@bricha3-MOBL.ger.corp.intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Driver: i40e DPDK : 17.11 Configuration :=20 1) RSS configuration=20 rxmode.mq_mode =3D ETH_MQ_RX_RSS; rss->rss_hf =3D ETH_RSS_UDP | ETH_RSS_TCP; rss->rss_key =3D Microsoft key=20 rss->rss_key_len =3D 52 *configure RETA to some rx-queues 2) Change hash to TOEPLITZ (only for i40e) struct rte_eth_hash_filter_info info =3D {}; info.info_type =3D RTE_ETH_HASH_FILTER_GLOBAL_CONFIG; info.info.global_conf.hash_func =3D RTE_ETH_HASH_FUNCTION_TOEPLIT= Z; rte_eth_dev_filter_ctrl(m_repid,=20 RTE_ETH_FILTER_HASH, RTE_ETH_FILTER_SET, &info); 3) Configure some flow-director rules=20 4) TCP/UDP packets are received to the *right* core (based on a SW Toeplitz= calculation +reta table) however The reported rss value is *wrong* in the mbuf=20 (m->hash.rss =3D=3D *wrong value*) ((m->ol_flags&PKT_RX_RSS_HASH) =3D=3D PKT_RX_RSS_HASH 5) The above works fine for mlx5 and ixgbe 6) I suspect the hash is something else, maybe flow-director id or xor hash= .. Wanted to know if this is a known issue. I can provide a simple way to repr= oduce it using TRex=20 Thanks, Hanoh -----Original Message----- From: Bruce Richardson [mailto:bruce.richardson@intel.com]=20 Sent: Thursday, March 22, 2018 1:35 PM To: Hanoch Haim (hhaim) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] i40e mbuf->rss indication On Wed, Mar 21, 2018 at 06:47:22PM +0000, Hanoch Haim (hhaim) wrote: > Hi All, > DPDK:17.11 > When i40e is configured with RSS enabled and hash.type=3Dtoeplitz >=20 > m->hash.rss =3D some weird number > ((m->ol_flags&PKT_RX_RSS_HASH) =3D=3D PKT_RX_RSS_HASH >=20 > The hash value is correct and match the MS Toeplitz standard. >=20 > Is this expected? I'm sorry, but I don't quite follow the question, or the problem. Are you m= eaning to say that the hash value is incorrect, or that the flag is not bei= ng set or something else? /Bruce >=20 > The above works fine with ixgbe/mlx5 >=20 > Thanks, > Hanoh >=20