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 740ABA0471 for ; Thu, 18 Jul 2019 04:40:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C5AB8325F; Thu, 18 Jul 2019 04:40:29 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id CF5FE2BA8; Thu, 18 Jul 2019 04:40:27 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2019 19:40:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,276,1559545200"; d="scan'208";a="161936789" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 17 Jul 2019 19:40:26 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 17 Jul 2019 19:40:26 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 17 Jul 2019 19:40:26 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by shsmsx102.ccr.corp.intel.com ([169.254.2.3]) with mapi id 14.03.0439.000; Thu, 18 Jul 2019 10:40:23 +0800 From: "Wang, Ying A" To: "Yang, Qiming" , "Zhang, Qi Z" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH 1/3] net/ice: fix flow get inputset check Thread-Index: AQHVPQuXZtQ180aqIUe0ZBztuFY8rqbPIiOAgACGVeA= Date: Thu, 18 Jul 2019 02:40:22 +0000 Message-ID: <44DE8E8A53B4014CA1985CEE86C07F2A0B962863@SHSMSX101.ccr.corp.intel.com> References: <1563413923-404004-1-git-send-email-ying.a.wang@intel.com> <1563413923-404004-2-git-send-email-ying.a.wang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGMwYjcyODEtNTJkNy00OTAyLTk2ZWItOTlmNTA0ZWJiNDI2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSDNOczNxS2dDdU1XclhFSnNCWkhNQVpHNWhqMU5mRkhwR2thQ1ZSVzd2XC9ObmhodXpVZ1NLN1FxNSs5YUxIN2cifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 1/3] net/ice: fix flow get inputset check 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" > -----Original Message----- > From: Yang, Qiming > Sent: Thursday, July 18, 2019 10:33 AM > To: Wang, Ying A ; Zhang, Qi Z > Cc: dev@dpdk.org; stable@dpdk.org > Subject: RE: [PATCH 1/3] net/ice: fix flow get inputset check >=20 > It's no need to add RTE_FLOW_ITEM_TYPE_VOID because we have skipped all > the VOID items. But actually, we passed the original pattern to this function, not the one = skipped all the VOID items. >=20 > -----Original Message----- > From: Wang, Ying A > Sent: Thursday, July 18, 2019 9:39 AM > To: Zhang, Qi Z > Cc: Yang, Qiming ; dev@dpdk.org; Wang, Ying A > ; stable@dpdk.org > Subject: [PATCH 1/3] net/ice: fix flow get inputset check >=20 > ice_get_flow_field should not set error if item->type is > RTE_FLOW_ITEM_TYPE_VOID. > This patch fixes this issue. >=20 > Fixes: d76116a4678f ("net/ice: add generic flow API") > Cc: stable@dpdk.org >=20 > Signed-off-by: Wang Ying A > --- > drivers/net/ice/ice_generic_flow.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/ice/ice_generic_flow.c > b/drivers/net/ice/ice_generic_flow.c > index c2931a1..464f6ec 100644 > --- a/drivers/net/ice/ice_generic_flow.c > +++ b/drivers/net/ice/ice_generic_flow.c > @@ -465,7 +465,7 @@ static uint64_t ice_get_flow_field(const struct > rte_flow_item pattern[], > case RTE_FLOW_ITEM_TYPE_NVGRE: > nvgre_spec =3D item->spec; > nvgre_mask =3D item->mask; > - /* Check if VXLAN item is used to describe protocol. > + /* Check if NVGRE item is used to describe protocol. > * If yes, both spec and mask should be NULL. > * If no, both spec and mask shouldn't be NULL. > */ > @@ -480,6 +480,8 @@ static uint64_t ice_get_flow_field(const struct > rte_flow_item pattern[], > is_tunnel =3D 1; >=20 > break; > + case RTE_FLOW_ITEM_TYPE_VOID: > + break; > default: > rte_flow_error_set(error, EINVAL, > RTE_FLOW_ERROR_TYPE_ITEM, > -- > 1.8.3.1