From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Gora Subject: Re: [PATCH] examples: fix RSS hash function configuration Date: Wed, 20 Jun 2018 10:03:40 -0700 Message-ID: References: <20180620150122.45945-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Ferruh Yigit , Declan Doherty , Chas Williams , Bruce Richardson , Harry van Haaren , Cristian Dumitrescu , Konstantin Ananyev , Remy Horton , Ori Kam , Pablo de Lara , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Anatoly Burakov , John McNamara , Jijiang Liu , dev@dpdk.org, Liang Ma , Xueming Li To: "Hunt, David" Return-path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 944971B513 for ; Wed, 20 Jun 2018 19:04:21 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id n5-v6so767820wmc.5 for ; Wed, 20 Jun 2018 10:04:21 -0700 (PDT) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Ferruh, Thanks for this.. I had started working on a patch to do this as well because I got bit by this error. Shouldn't all of the example applications also add the code to strip the unsupported Tx and Rx offload bits as well? It would help new users (like me!) to understand that this is a requirement for all callers of rte_eth_dev_configure(). rte_eth_dev_info_get(port_id, &dev_info); /* Only set the offload bits which are actually supported */ port_conf.txmode.offloads &= dev_info.tx_offload_capa; port_conf.rxmode.offloads &= dev_info.rx_offload_capa; thanks dan On Wed, Jun 20, 2018 at 8:11 AM, Hunt, David wrote: > Hi Ferruh, > On 20/6/2018 4:01 PM, Ferruh Yigit wrote: >> >> ethdev layer introduced checks for application requested RSS hash >> functions and returns error for ones unsupported by hardware >> >> This check breaks some sample applications which blindly configures >> RSS hash functions without checking underlying hardware support. >> >> Updated examples to mask out unsupported RSS has functions during device >> configuration. >> Prints a log if configuration values updated by this check. >> >> Fixes: aa1a6d87f15d ("ethdev: force RSS offload rules again") >> >> Signed-off-by: Ferruh Yigit >> --- >> Return error added in this release, so no need to backport the fix to >> previous versions. >> >> Cc: David Hunt >> Cc: Liang Ma >> Cc: Xueming Li