From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 2EE115593 for ; Thu, 22 Mar 2018 13:18:19 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Mar 2018 05:18:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,344,1517904000"; d="scan'208";a="41234117" Received: from fyigit-mobl.ger.corp.intel.com (HELO [10.237.221.63]) ([10.237.221.63]) by orsmga001.jf.intel.com with ESMTP; 22 Mar 2018 05:18:17 -0700 To: "Hanoch Haim (hhaim)" , Bruce Richardson Cc: "dev@dpdk.org" References: <782383cd531a4248a3634705f46d8acf@XCH-RTP-017.cisco.com> <20180322113457.GB608@bricha3-MOBL.ger.corp.intel.com> From: Ferruh Yigit Message-ID: <856b65d4-a35f-3b2e-73d4-dbfdf105b9c6@intel.com> Date: Thu, 22 Mar 2018 12:18:16 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] i40e mbuf->rss indication 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, 22 Mar 2018 12:18:20 -0000 On 3/22/2018 11:46 AM, Hanoch Haim (hhaim) wrote: > Driver: i40e > > DPDK : 17.11 > > Configuration : > > 1) RSS configuration > rxmode.mq_mode = ETH_MQ_RX_RSS; > rss->rss_hf = ETH_RSS_UDP | ETH_RSS_TCP; > rss->rss_key = Microsoft key > rss->rss_key_len = 52 > > *configure RETA to some rx-queues > > 2) Change hash to TOEPLITZ (only for i40e) > > struct rte_eth_hash_filter_info info = {}; > info.info_type = RTE_ETH_HASH_FILTER_GLOBAL_CONFIG; > info.info.global_conf.hash_func = RTE_ETH_HASH_FUNCTION_TOEPLITZ; > rte_eth_dev_filter_ctrl(m_repid, > RTE_ETH_FILTER_HASH, > RTE_ETH_FILTER_SET, &info); > > 3) Configure some flow-director rules > > 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 > (m->hash.rss == *wrong value*) Are you getting same result with both scalar and vector driver? > ((m->ol_flags&PKT_RX_RSS_HASH) == 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 reproduce it using TRex > > Thanks, > Hanoh > > > -----Original Message----- > From: Bruce Richardson [mailto:bruce.richardson@intel.com] > 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=toeplitz >> >> m->hash.rss = some weird number >> ((m->ol_flags&PKT_RX_RSS_HASH) == PKT_RX_RSS_HASH >> >> The hash value is correct and match the MS Toeplitz standard. >> >> Is this expected? > > I'm sorry, but I don't quite follow the question, or the problem. Are you meaning to say that the hash value is incorrect, or that the flag is not being set or something else? > > /Bruce > >> >> The above works fine with ixgbe/mlx5 >> >> Thanks, >> Hanoh >>