-----Original Message----- > Date: Tue, 14 Nov 2017 16:44:10 -0600 > From: Gage Eads <gage.e...@intel.com> > To: dev@dpdk.org > CC: jerin.ja...@caviumnetworks.com, harry.van.haa...@intel.com, > bruce.richard...@intel.com, hemant.agra...@nxp.com, nipun.gu...@nxp.com, > santosh.shu...@caviumnetworks.com, pbhagavat...@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 <gage.e...@intel.com>
Acked-by: Jerin Jacob <jerin.ja...@caviumnetworks.com>