numam-dpdk/lib/ethdev
Huisong Li 02edbfab1e ethdev: add dev configured flag
Currently, if dev_configure is not called or fails to be called, users
can still call dev_start successfully. So it is necessary to have a flag
which indicates whether the device is configured, to control whether
dev_start can be called and eliminate dependency on user invocation order.

The flag stored in "struct rte_eth_dev_data" is more reasonable than
 "enum rte_eth_dev_state". "enum rte_eth_dev_state" is private to the
primary and secondary processes, and can be independently controlled.
However, the secondary process does not make resource allocations and
does not call dev_configure(). These are done by the primary process
and can be obtained or used by the secondary process. So this patch
adds a "dev_configured" flag in "rte_eth_dev_data", like "dev_started".

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

libabigail raised a warning on this change.
This change is fine wrt ABI as far as we understand, but we can't
express an exception rule (see libabigail bug #28060) to waive the
changes only in this part of the rte_eth_dev_data struct.
The solution for now is to globally waive any change on the
rte_eth_dev_data structure.

Signed-off-by: David Marchand <david.marchand@redhat.com>
2021-07-08 13:05:55 +02:00
..
ethdev_driver.h ethdev: add queue state in queried queue information 2021-04-19 18:25:35 +02:00
ethdev_pci.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_private.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_private.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_profile.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_profile.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_trace_points.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_vdev.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_class_eth.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_dev_info.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_eth_ctrl.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ethdev_core.h ethdev: add dev configured flag 2021-07-08 13:05:55 +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 lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ethdev.c ethdev: add dev configured flag 2021-07-08 13:05:55 +02:00
rte_ethdev.h ethdev: add sanity checks in control APIs 2021-04-21 18:36:56 +02:00
rte_flow_driver.h ethdev: introduce indirect flow action 2021-04-19 18:25:42 +02:00
rte_flow.c ethdev: fix integrity flow item 2021-05-04 17:37:22 +02:00
rte_flow.h ethdev: fix doc of flow action 2021-07-02 19:03:03 +02:00
rte_mtr_driver.h ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00
rte_mtr.c ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00
rte_mtr.h ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +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 lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00