From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 28E78A04C1; Wed, 20 Nov 2019 10:00:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 883672C36; Wed, 20 Nov 2019 10:00:19 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 2F5DE2C23 for ; Wed, 20 Nov 2019 10:00:17 +0100 (CET) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Nov 2019 01:00:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,221,1571727600"; d="scan'208";a="408046605" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.117.17]) by fmsmga006.fm.intel.com with ESMTP; 20 Nov 2019 01:00:14 -0800 Date: Wed, 20 Nov 2019 16:56:40 +0800 From: Ye Xiaolong To: Yahui Cao Cc: Qiming Yang , Wenzhuo Lu , dev@dpdk.org, Qi Zhang , Ying A Wang Message-ID: <20191120085640.GC103671@intel.com> References: <20191119160101.32465-1-yahui.cao@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191119160101.32465-1-yahui.cao@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] [PATCH] net/ice: fix FDIR rule duplication check failure 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 11/20, Yahui Cao wrote: >When FDIR filter detects duplicated rule and then returns EEXIST, ice >flow will capture this error and return immediately. > >Fixes: 4e27d3ed02bd ("net/ice: fix flow API framework") >Cc: ying.a.wang@intel.com > >Signed-off-by: Yahui Cao >--- > drivers/net/ice/ice_generic_flow.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/drivers/net/ice/ice_generic_flow.c b/drivers/net/ice/ice_generic_flow.c >index 5594f8555..1d8c83418 100644 >--- a/drivers/net/ice/ice_generic_flow.c >+++ b/drivers/net/ice/ice_generic_flow.c >@@ -1698,6 +1698,8 @@ ice_parse_engine_create(struct ice_adapter *ad, > void *temp; > > TAILQ_FOREACH_SAFE(parser_node, parser_list, node, temp) { >+ int ret; >+ > if (parser_node->parser->parse_pattern_action(ad, > parser_node->parser->array, > parser_node->parser->array_len, >@@ -1712,8 +1714,11 @@ ice_parse_engine_create(struct ice_adapter *ad, > continue; > } > >- if (!(engine->create(ad, flow, *meta, error))) >+ ret = engine->create(ad, flow, *meta, error); >+ if (ret == 0) > return engine; >+ else if (ret == -EEXIST) >+ return NULL; > } > return NULL; > } >-- >2.17.1 > Applied to dpdk-next-net-intel, Thanks.