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 35EF345594; Fri, 5 Jul 2024 11:17:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2FC1743384; Fri, 5 Jul 2024 11:17:44 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 6D41B43382; Fri, 5 Jul 2024 11:17:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720171061; x=1751707061; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=negwjGooRRkmYY1a80QJa3x004narmcunbOojwrejZE=; b=Zb4AD+fvt7526xpGSW7/u/kgFhVQjgvtM7gPKBqQy3knNoiJ4bdZVRBY rsLUatGtwi040oZzdTfQzDoc9BY6j5jCLG6JQNmvPazor1KwENpmMX165 wO6+VA1L39jZY5cey72DXtoMvkO8JmLctYg5wIubG6wbqSW8u13NpUPDH XNaUMljR6BeAj4XWT/BX7/7HV6LbK12um53iuS7aEPLrrzQ6Z9Pp3QulW aytoSbY4OVJZY1Aezcw1/Z4ODqLU+bIt/xZt57jPBLDln92nMDyxvZwkj y4oGP0fwasW7R2NtdSq8MUHCAlrCWGaRhif6ZsDTPQjn4Ot4IV34AA73R Q==; X-CSE-ConnectionGUID: UULy+5XFT7i8q2gJeCTZDA== X-CSE-MsgGUID: iGMOXDOxTr+ApU9bZWvWvA== X-IronPort-AV: E=McAfee;i="6700,10204,11123"; a="17179057" X-IronPort-AV: E=Sophos;i="6.09,184,1716274800"; d="scan'208";a="17179057" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 02:17:41 -0700 X-CSE-ConnectionGUID: LiOQGAUeS961NHThpqSYoA== X-CSE-MsgGUID: tObrZv45TlOPxXrGBAuKow== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,184,1716274800"; d="scan'208";a="46719876" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by fmviesa007.fm.intel.com with ESMTP; 05 Jul 2024 02:17:39 -0700 From: Soumyadeep Hore To: bruce.richardson@intel.com, aman.deep.singh@intel.com Cc: dev@dpdk.org, stable@dpdk.org Subject: [PATCH v3 2/2] net/cpfl: fix +ve error codes for received ctlq messages Date: Fri, 5 Jul 2024 08:30:32 +0000 Message-ID: <20240705083032.2756071-3-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240705083032.2756071-1-soumyadeep.hore@intel.com> References: <20240705050831.2639342-3-soumyadeep.hore@intel.com> <20240705083032.2756071-1-soumyadeep.hore@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Previously error codes were only -ve for cpfl_receive_ctlq_msg() but now there are +ve error codes. Hence code changes are made accordingly. Fixes: db042ef09d26 ("net/cpfl: implement FXP rule creation and destroying") Cc: stable@dpdk.org Signed-off-by: Soumyadeep Hore --- drivers/net/cpfl/cpfl_flow_engine_fxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_flow_engine_fxp.c b/drivers/net/cpfl/cpfl_flow_engine_fxp.c index 39a281fa61..b9e825ef57 100644 --- a/drivers/net/cpfl/cpfl_flow_engine_fxp.c +++ b/drivers/net/cpfl/cpfl_flow_engine_fxp.c @@ -95,7 +95,7 @@ cpfl_fxp_create(struct rte_eth_dev *dev, ret = cpfl_rule_process(itf, ad->ctlqp[cpq_id], ad->ctlqp[cpq_id + 1], rim->rules, rim->rule_num, true); - if (ret < 0) { + if (ret != 0) { rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_HANDLE, NULL, "cpfl filter create flow fail"); rte_free(rim); -- 2.43.0