From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C3424A0507 for ; Wed, 27 Apr 2022 11:41:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB21040691; Wed, 27 Apr 2022 11:41:10 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 272E340691 for ; Wed, 27 Apr 2022 11:41:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651052469; x=1682588469; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=mSoW1kB22sjuPR3KqktT7mfEJaCsG8p/dvZT+uMX50M=; b=YyTVlIygmYEMM3Q4XiZHLKCK3cy90nGj5IayDJerCtJlP+57KNb6NkJ4 IOXBbu2OOGxE3HRv7dl/6+ftwWyGqPAw/14Il3NC9Wf99yeKLJ9YCL3Sx edIIbCBdg3QGI4EP6VSnYWqBl8NK6gYwAZC10LCuF2Ghgl5fQHGCjiS6v LPa4PVixkuJqmy2fnLh82Op2mn7NwhCclr6q3wZuUB/96tk1uW1zhaBRg 2M0z63L91vIEpGE1P4ZtPJ+3j1xYNUshI2RYnEVvYn+Chh/OFq5VV0Aa0 2SkgUKeHqcBfuNJopNzuGRNZzx2XTuJoWHZtesT91R4V5yijyHFT3ryxj A==; X-IronPort-AV: E=McAfee;i="6400,9594,10329"; a="246439900" X-IronPort-AV: E=Sophos;i="5.90,292,1643702400"; d="scan'208";a="246439900" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2022 02:41:08 -0700 X-IronPort-AV: E=Sophos;i="5.90,292,1643702400"; d="scan'208";a="558838989" Received: from unknown (HELO localhost.localdomain) ([10.239.251.253]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2022 02:41:06 -0700 From: peng1x.zhang@intel.com To: build_sh@intel.com Cc: Peng Zhang , stable@dpdk.org Subject: [DPDK] net/ice: modify related error code to avoid misleading Date: Wed, 27 Apr 2022 17:35:18 +0000 Message-Id: <20220427173518.804621-1-peng1x.zhang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Peng Zhang 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 --- 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