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 EF85EA04EF; Mon, 25 May 2020 03:58:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3CEB61D6A3; Mon, 25 May 2020 03:58:15 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E2A531D672; Mon, 25 May 2020 03:58:12 +0200 (CEST) IronPort-SDR: 6AxZ8swVLPKAlIS9E7NKf51mtBgk6ChlTN8IdpORtnhj6BWsEssu1r6X68bGmLeI6yyGtiA5x+ nGybyMdmmI5g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2020 18:58:11 -0700 IronPort-SDR: wpcpLkamVQEwDQVDdmBLkDV/hbr7NQGuZjZ8O/TFPnASh3a7gAsAfAltrGdk+jYzmqYfczEExZ zoByHXyW4ApA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,431,1583222400"; d="scan'208";a="256114868" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.116.183]) by fmsmga008.fm.intel.com with ESMTP; 24 May 2020 18:58:10 -0700 Date: Mon, 25 May 2020 09:50:18 +0800 From: Ye Xiaolong To: Wei Zhao Cc: dev@dpdk.org, stable@dpdk.org, qi.z.zhang@intel.com Message-ID: <20200525015018.GC13597@intel.com> References: <20200521073411.16778-1-wei.zhao1@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200521073411.16778-1-wei.zhao1@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] [PATCH] net/ice: fix switch action number 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" On 05/21, Wei Zhao wrote: >The action number for switch filter should be 1, any >other such as 0 or more than 1 is invalid. > >Fixes: 3428c6b6ec1f ("net/ice: add action number check for switch") >Cc: stable@dpdk.org > >Signed-off-by: Wei Zhao >--- > drivers/net/ice/ice_switch_filter.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c >index dd3f4847a..20e8187d3 100644 >--- a/drivers/net/ice/ice_switch_filter.c >+++ b/drivers/net/ice/ice_switch_filter.c >@@ -1388,7 +1388,7 @@ ice_switch_check_action(const struct rte_flow_action *actions, > } > } > >- if (actions_num > 1) { >+ if (actions_num != 1) { > rte_flow_error_set(error, > EINVAL, RTE_FLOW_ERROR_TYPE_ACTION, > actions, >-- >2.19.1 > Applied to dpdk-next-net-intel, Thanks.