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 C0E16A0471 for ; Thu, 18 Jul 2019 04:47:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3D8F03257; Thu, 18 Jul 2019 04:47:04 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 3ACFD2BA8; Thu, 18 Jul 2019 04:47:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2019 19:46:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,276,1559545200"; d="scan'208";a="168137835" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 17 Jul 2019 19:46:59 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) 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:46:59 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 17 Jul 2019 19:46:59 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.232]) with mapi id 14.03.0439.000; Thu, 18 Jul 2019 10:46:56 +0800 From: "Yang, Qiming" To: "Wang, Ying A" , "Zhang, Qi Z" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH 1/3] net/ice: fix flow get inputset check Thread-Index: AQHVPQuX+Jj9MLV5e0uDFPXGY9gvZabPqAQQ//98EgCAAIc6oA== Date: Thu, 18 Jul 2019 02:46:55 +0000 Message-ID: References: <1563413923-404004-1-git-send-email-ying.a.wang@intel.com> <1563413923-404004-2-git-send-email-ying.a.wang@intel.com> <44DE8E8A53B4014CA1985CEE86C07F2A0B962863@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <44DE8E8A53B4014CA1985CEE86C07F2A0B962863@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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" So I think the bug is the skipped pattern don't pass to the next function. -----Original Message----- From: Wang, Ying A=20 Sent: Thursday, July 18, 2019 10:40 AM To: Yang, Qiming ; Zhang, Qi Z Cc: dev@dpdk.org; stable@dpdk.org Subject: RE: [PATCH 1/3] net/ice: fix flow get inputset check > -----Original Message----- > From: Yang, Qiming > Sent: Thursday, July 18, 2019 10:33 AM > To: Wang, Ying A ; Zhang, Qi Z=20 > > 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=20 > 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=20 > ; 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=20 > 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=20 > 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=20 > 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