patches for DPDK stable branches
 help / color / mirror / Atom feed
Cc: Peng Zhang <>,
Subject: [PATCH] net/ice: modify related error code to avoid misleading
Date: Fri, 29 Apr 2022 16:05:10 +0000
Message-ID: <> (raw)

From: Peng Zhang <>

Modify related error code to avoid misleading when fail to create rule.

Signed-off-by: Peng Zhang <>

Fixes: 285f63fc6bb7 ("net/ice: track DCF state of PF")
 drivers/net/ice/ice_switch_filter.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
index 36c9bffb73..80c6a076eb 100644
--- a/drivers/net/ice/ice_switch_filter.c
+++ b/drivers/net/ice/ice_switch_filter.c
@@ -433,11 +433,12 @@ ice_switch_create(struct ice_adapter *ad,
 		flow->rule = filter_conf_ptr;
 	} else {
-		if (ice_dcf_adminq_need_retry(ad))
-			ret = -EAGAIN;
+		if (ice_dcf_adminq_need_retry(ad) && ret!= ICE_ERR_ALREADY_EXISTS)
+			ret = -EBUSY;
+		else if(ret == ICE_ERR_ALREADY_EXISTS)
+			ret = -EALREADY;
 			ret = -EINVAL;
 		rte_flow_error_set(error, -ret,
 			"switch filter create flow fail");

                 reply	other threads:[~2022-04-29  8:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

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

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ \
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone