numam-dpdk/lib/ethdev
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
..
ethdev_driver.c eal: deprecate RTE_FUNC_PTR_* macros 2022-09-23 16:14:34 +02:00
ethdev_driver.h cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
ethdev_pci.h bus/pci: make driver-only headers private 2022-09-23 16:14:34 +02:00
ethdev_private.c remove extra blank line at EOF 2022-02-27 21:26:06 +01:00
ethdev_private.h ethdev: support congestion management 2022-10-07 11:50:28 +02:00
ethdev_profile.c ethdev: fix Ethernet spelling 2021-10-21 13:43:56 +02:00
ethdev_profile.h ethdev: fix build with vtune option 2022-05-12 10:23:52 +02:00
ethdev_trace_points.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_vdev.h bus/vdev: make driver-only headers private 2022-09-23 16:14:34 +02:00
meson.build ethdev: support congestion management 2022-10-07 11:50:28 +02:00
rte_class_eth.c eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
rte_cman.h ethdev: support congestion management 2022-10-07 11:50:28 +02:00
rte_dev_info.h ethdev: add missing C++ guards 2022-02-22 14:47:49 +01:00
rte_eth_ctrl.h ethdev: fix Rx/Tx spelling 2021-10-21 13:43:56 +02:00
rte_ethdev_cman.c ethdev: support congestion management 2022-10-07 11:50:28 +02:00
rte_ethdev_core.h ethdev: fix Rx/Tx spelling 2021-10-21 13:43:56 +02:00
rte_ethdev_trace_fp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ethdev_trace.h ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
rte_ethdev.c ethdev: introduce protocol-based buffer split 2022-10-09 16:41:27 +02:00
rte_ethdev.h ethdev: explicit some errors of port start and stop 2022-11-21 23:49:47 +01:00
rte_flow_driver.h ethdev: add queue-based API to report aged flow rules 2022-10-28 12:41:03 +02:00
rte_flow.c ethdev: add queue-based API to report aged flow rules 2022-10-28 12:41:03 +02:00
rte_flow.h cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
rte_mtr_driver.h ethdev: add protocol parameter to color table update 2022-10-03 13:43:53 +02:00
rte_mtr.c ethdev: add protocol parameter to color table update 2022-10-03 13:43:53 +02:00
rte_mtr.h ethdev: add protocol parameter to color table update 2022-10-03 13:43:53 +02:00
rte_tm_driver.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_tm.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_tm.h cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
sff_8079.c ethdev: support SFF-8079 module telemetry 2022-05-31 16:32:49 +02:00
sff_8472.c ethdev: support SFF-8472 module telemetry 2022-05-31 16:33:15 +02:00
sff_8636.c ethdev: support SFF-8636 module telemetry 2022-05-31 16:33:58 +02:00
sff_8636.h ethdev: support SFF-8636 module telemetry 2022-05-31 16:33:58 +02:00
sff_common.c ethdev: add common code for different SFF specs 2022-05-31 16:30:31 +02:00
sff_common.h ethdev: add common code for different SFF specs 2022-05-31 16:30:31 +02:00
sff_telemetry.c eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
sff_telemetry.h ethdev: support SFF-8636 module telemetry 2022-05-31 16:33:58 +02:00
version.map ethdev: add queue-based API to report aged flow rules 2022-10-28 12:41:03 +02:00