numam-dpdk/examples/vmdq_dcb
Thomas Monjalon d9a42a69fe ethdev: deprecate port count function
Some DPDK applications wrongly assume these requirements:
    - no hotplug, i.e. ports are never detached
    - all allocated ports are available to the application

Such application iterates over ports by its own mean.
The most common pattern is to request the port count and
assume ports with index in the range [0..count[ can be used.

In order to fix this common mistake in all external applications,
the function rte_eth_dev_count is deprecated, while introducing
the new functions rte_eth_dev_count_avail and rte_eth_dev_count_total.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
2018-04-18 00:48:41 +02:00
..
main.c ethdev: deprecate port count function 2018-04-18 00:48:41 +02:00
Makefile fix ethdev ports enumeration 2018-04-18 00:25:27 +02:00
meson.build fix ethdev ports enumeration 2018-04-18 00:25:27 +02:00