[dpdk-dev] [PATCH] eventdev: set rte errno in port link/unlink functions

Jerin Jacob jerin.jacob at caviumnetworks.com
Mon Dec 4 04:06:20 CET 2017


-----Original Message-----
> Date: Tue, 14 Nov 2017 16:44:10 -0600
> From: Gage Eads <gage.eads at intel.com>
> To: dev at dpdk.org
> CC: jerin.jacob at caviumnetworks.com, harry.van.haaren at intel.com,
>  bruce.richardson at intel.com, hemant.agrawal at nxp.com, nipun.gupta at nxp.com,
>  santosh.shukla at caviumnetworks.com, pbhagavatula at 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.eads at intel.com>

Acked-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>



More information about the dev mailing list