[dpdk-dev] [PATCH v2] eventdev: fix unchecked return in default Rx adapter conf cb

Jerin Jacob jerin.jacob at caviumnetworks.com
Tue Feb 6 20:01:14 CET 2018


-----Original Message-----
> Date: Sun, 4 Feb 2018 23:48:31 +0530
> From: Nikhil Rao <nikhil.rao at intel.com>
> To: dev at dpdk.org
> CC: nikhil.rao at intel.com, vipin.varghese at intel.com,
>  deepak.k.jain at intel.com, jerin.jacob at caviumnetworks.com
> Subject: [PATCH v2] eventdev: fix unchecked return in default Rx adapter
>  conf cb
> X-Mailer: git-send-email 2.7.4
> 
> The default adapter configuration callback is invoked when a Rx
> queue is added to the adapter and the adapter detects that a SW
> service is needed. The adapter needs to re-configure the device
> with an additional port and to do do, it needs to stop the
> device and restart it after it is done reconfiguring it. This
> patch adds code to check the return code of
> rte_event_dev_start() for both when the reconfiguration fails
> and when it succeeds and introduces a new error code (-EIO)
> for the first case.
> 
> Fixes: 9c38b704d280 ("eventdev: add eth Rx adapter implementation")
> Coverity issue: 257000
> 
> Signed-off-by: Nikhil Rao <nikhil.rao at intel.com>

Cc: stable at dpdk.org
Acked-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>


More information about the dev mailing list