From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH] eventdev: set rte errno in port link/unlink functions Date: Mon, 4 Dec 2017 08:36:20 +0530 Message-ID: <20171204030619.GA549@jerin> References: <1510699450-29204-1-git-send-email-gage.eads@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, harry.van.haaren@intel.com, bruce.richardson@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, santosh.shukla@caviumnetworks.com, pbhagavatula@caviumnetworks.com To: Gage Eads Return-path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0051.outbound.protection.outlook.com [104.47.37.51]) by dpdk.org (Postfix) with ESMTP id 225A8239 for ; Mon, 4 Dec 2017 04:06:39 +0100 (CET) Content-Disposition: inline In-Reply-To: <1510699450-29204-1-git-send-email-gage.eads@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- > Date: Tue, 14 Nov 2017 16:44:10 -0600 > From: Gage Eads > To: dev@dpdk.org > CC: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, > bruce.richardson@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, > santosh.shukla@caviumnetworks.com, pbhagavatula@caviumnetworks.com > Subject: [PATCH] eventdev: set rte errno in port link/unlink functions > X-Mailer: git-send-email 2.7.4 > > The return value for rte_event_port_{link, unlink}() is defined as the > "number of {links, unlinks} actually established." However, the eventdev > layer's error checking returns negative error values. This commit aligns > the eventdev code with the API definition by having it set rte_errno and > return 0 if it detects an error. > > Fixes: 4f0804bbdfb9 ("eventdev: implement the northbound APIs") > > Signed-off-by: Gage Eads Acked-by: Jerin Jacob