[dpdk-dev] [PATCH v5 3/3] ethdev: allow close function to return an error

Ferruh Yigit ferruh.yigit at intel.com
Tue Oct 13 15:10:50 CEST 2020


On 10/13/2020 11:06 AM, Thomas Monjalon wrote:
> The API function rte_eth_dev_close() was returning void.
> The return type is changed to int for notifying of errors.
> 
> If an error happens during a close operation,
> the status of the port is undefined,
> a maximum of resources having been freed.
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> Reviewed-by: Liron Himi <lironh at marvell.com>
> Acked-by: Stephen Hemminger <stephen at networkplumber.org>

Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>



More information about the dev mailing list