[PATCH v3 3/3] ethdev: document special cases of port start and stop
Ferruh Yigit
ferruh.yigit at amd.com
Mon Nov 14 19:32:59 CET 2022
On 11/14/2022 6:19 PM, Dariusz Sosnowski wrote:
> This patch clarifies the handling of following cases
> in the ethdev API docs:
>
> - If rte_eth_dev_start() returns (-EAGAIN) for some port,
> it cannot be started right now and start operation
> must be retried.
> - If rte_eth_dev_stop() returns (-EBUSY) for some port,
> it cannot be stopped in the current state.
>
> When stopping the port in testpmd fails,
> port's state is switched back to STARTED
> to allow users to manually retry stopping the port.
>
> No additional changes in testpmd are required to handle
> failures to start the port.
> If rte_eth_dev_start() fails, port's state is switched to STOPPED
> and users are allowed to retry the operation.
>
> Signed-off-by: Dariusz Sosnowski<dsosnowski at nvidia.com>
Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
More information about the dev
mailing list