All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ye Xiaolong <xiaolong.ye@intel.com>
To: Wei Zhao <wei.zhao1@intel.com>
Cc: dev@dpdk.org, stable@dpdk.org, qi.z.zhang@intel.com
Subject: Re: [dpdk-dev] [PATCH] net/ice: fix switch action number check
Date: Mon, 25 May 2020 09:50:18 +0800	[thread overview]
Message-ID: <20200525015018.GC13597@intel.com> (raw)
In-Reply-To: <20200521073411.16778-1-wei.zhao1@intel.com>

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 <wei.zhao1@intel.com>
>---
> 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.

  parent reply	other threads:[~2020-05-25  1:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-21  7:34 [dpdk-dev] [PATCH] net/ice: fix switch action number check Wei Zhao
2020-05-21  8:03 ` Zhao1, Wei
2020-05-21  9:21 ` Xiao, QimaiX
2020-05-25  1:50 ` Ye Xiaolong [this message]
2020-05-25  1:53 ` Zhang, Qi Z

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200525015018.GC13597@intel.com \
    --to=xiaolong.ye@intel.com \
    --cc=dev@dpdk.org \
    --cc=qi.z.zhang@intel.com \
    --cc=stable@dpdk.org \
    --cc=wei.zhao1@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.