patches for DPDK stable branches
 help / color / mirror / Atom feed
* [DPDK] net/ice: modify related error code to avoid misleading
@ 2022-04-27 17:35 peng1x.zhang
  0 siblings, 0 replies; only message in thread
From: peng1x.zhang @ 2022-04-27 17:35 UTC (permalink / raw)
  To: build_sh; +Cc: Peng Zhang, stable

From: Peng Zhang <peng1x.zhang@intel.com>

Modify related error code to avoid misleading in following sceaniro.
The sceaniro is that create rule fail after VF reset.

Fixes: 285f63fc6bb7 ("net/ice: track DCF state of PF")
Cc: stable@dpdk.org

Signed-off-by: Peng Zhang <peng1x.zhang@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 36c9bffb73..75c18eaea3 100644
--- a/drivers/net/ice/ice_switch_filter.c
+++ b/drivers/net/ice/ice_switch_filter.c
@@ -436,7 +436,7 @@ ice_switch_create(struct ice_adapter *ad,
 		if (ice_dcf_adminq_need_retry(ad))
 			ret = -EAGAIN;
 		else
-			ret = -EINVAL;
+			ret = -EBUSY;
 
 		rte_flow_error_set(error, -ret,
 			RTE_FLOW_ERROR_TYPE_HANDLE, NULL,
-- 
2.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-27  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 17:35 [DPDK] net/ice: modify related error code to avoid misleading peng1x.zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).