From: Ferruh Yigit Subject: Re: [PATCH v4] net/i40e: move RSS to flow API Date: Wed, 10 Jan 2018 13:28:56 +0000 Message-ID: References: <20180109091858.73889-1-wei.zhao1@intel.com> <20180110021026.84006-1-wei.zhao1@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: qi.z.zhang@intel.com To: Wei Zhao , dev@dpdk.org Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 943E21B1D5 for ; Wed, 10 Jan 2018 14:28:59 +0100 (CET) In-Reply-To: <20180110021026.84006-1-wei.zhao1@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" On 1/10/2018 2:10 AM, Wei Zhao wrote: > Rte_flow actually defined to include RSS, > but till now, RSS is out of rte_flow. > This patch is to move i40e existing RSS to rte_flow. > This patch also enable queue region configuration > using flow API for i40e. > > Signed-off-by: Wei Zhao <...> > @@ -4269,6 +4597,9 @@ i40e_flow_destroy(struct rte_eth_dev *dev, > ret = i40e_flow_add_del_fdir_filter(dev, > &((struct i40e_fdir_filter *)flow->rule)->fdir, 0); > break; > + case RTE_ETH_FILTER_HASH: > + ret = i40e_config_rss_filter_del(dev, > + (struct i40e_rte_flow_rss_conf *)flow->rule); This is causing build error [1], if the fallback is intentional compiler expects a /* Fallthrough */ comment. [1] .../drivers/net/i40e/i40e_flow.c:4601:7: error: this statement may fall through [-Werror=implicit-fallthrough=] ret = i40e_config_rss_filter_del(dev, ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (struct i40e_rte_flow_rss_conf *)flow->rule); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .../drivers/net/i40e/i40e_flow.c:4603:2: note: here default: ^~~~~~~