[dpdk-dev] [PATCH 01/11] ethdev: change eth dev stop function to return int
Ferruh Yigit
ferruh.yigit at intel.com
Wed Oct 14 19:29:12 CEST 2020
On 10/14/2020 2:28 PM, Andrew Rybchenko wrote:
> From: Ivan Ilchenko <Ivan.Ilchenko at oktetlabs.ru>
>
> Change rte_eth_dev_stop() return value from void to int
> and return negative errno values in case of error conditions.
> Also update the usage of the function in ethdev according to
> the new return type.
>
> Signed-off-by: Ivan Ilchenko <Ivan.Ilchenko at oktetlabs.ru>
> Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
<...>
> @@ -2278,7 +2278,7 @@ int rte_eth_dev_start(uint16_t port_id);
> * @param port_id
> * The port identifier of the Ethernet device.
> */
> -void rte_eth_dev_stop(uint16_t port_id);
> +int rte_eth_dev_stop(uint16_t port_id);
>
Doxygen comment should be updated for return value.
More information about the dev
mailing list