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 F38F845591; Fri, 5 Jul 2024 07:56:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D879542F73; Fri, 5 Jul 2024 07:55:58 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 1DC8942F67; Fri, 5 Jul 2024 07:55:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720158956; x=1751694956; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wtJGR+GlOtDn1w3Eh7iXNQxzcpKGGZ5rqiJKwhWECF0=; b=hSUgw7/5dFPbkMdjhBSdS97jtzN6+XqiSB8frX3tHSd05ElGObZyMnAP p5KctCauHckJYPa7MtmJXvW+4RtuydmCua/jSj+DJko+xbBLKxfL+pBAA CwP5U+rOLO4vani8opzhjhwbBsv9ndn/Qdo0qHV+sBkDsAPcRUQioJu3t b642NgH5islp6IMkWiotNSezz39Xh3JNE/GD4HJpz1KOy/5qS63+0aIz5 4Hrbhb8PY4yni5nDZjWF0ZtPVf8++9j4z2qfh5zzCSxlbij1MMuYaSEnU uc/ZnAxtO9k27zmq70cDIyrTpVlBJy05GR1AXsKr+BTHEhhNmtFs/GqfB w==; X-CSE-ConnectionGUID: ud2oI6QcTrqRFDfSfStWlQ== X-CSE-MsgGUID: 5qTp6ZBqQTu5rEr3be/EnQ== X-IronPort-AV: E=McAfee;i="6700,10204,11123"; a="17163140" X-IronPort-AV: E=Sophos;i="6.09,184,1716274800"; d="scan'208";a="17163140" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2024 22:55:55 -0700 X-CSE-ConnectionGUID: np7bEybKR2ygf2QF3slNdA== X-CSE-MsgGUID: TFF9k3hATka1IYKsx5ckog== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,184,1716274800"; d="scan'208";a="46746023" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by fmviesa008.fm.intel.com with ESMTP; 04 Jul 2024 22:55:53 -0700 From: Soumyadeep Hore To: bruce.richardson@intel.com, aman.deep.singh@intel.com Cc: dev@dpdk.org, stable@dpdk.org Subject: [PATCH v2 2/2] net/cpfl: fix +ve error codes for received ctlq messages Date: Fri, 5 Jul 2024 05:08:31 +0000 Message-ID: <20240705050831.2639342-3-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240705050831.2639342-1-soumyadeep.hore@intel.com> References: <20240704051835.2630052-1-soumyadeep.hore@intel.com> <20240705050831.2639342-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..983b4188e4 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) { rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_HANDLE, NULL, "cpfl filter create flow fail"); rte_free(rim); -- 2.43.0