Dariusz Sosnowski 47a4e1fb2c ethdev: explicit some errors of port start and stop
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@nvidia.com>
Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
2022-11-21 23:49:47 +01:00
..
2022-07-21 12:13:48 +02:00
2022-11-15 08:39:14 +01:00
2022-07-21 12:13:48 +02:00
2022-11-15 08:39:14 +01:00
2022-07-21 12:13:48 +02:00
2022-07-21 12:13:48 +02:00
2022-11-15 08:39:14 +01:00
2022-11-21 11:18:51 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-10-26 17:18:11 +02:00
2022-07-21 12:13:48 +02:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-07-21 12:13:48 +02:00
2022-07-21 12:13:48 +02:00
2022-07-21 12:13:48 +02:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-07-21 12:13:48 +02:00
2022-11-15 08:39:14 +01:00
2022-11-21 11:19:04 +01:00