numam-dpdk/app/test-pmd
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
..
cmdline_flow.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
cmdline_mtr.c app/testpmd: fix allocation check in MTR parsing 2018-01-31 23:34:47 +01:00
cmdline_mtr.h app/testpmd: add commands for metering and policing 2018-01-10 00:51:31 +01:00
cmdline_tm.c app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
cmdline_tm.h app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
cmdline.c ethdev: deprecate port count function 2018-04-18 00:48:41 +02:00
config.c ethdev: replace bus specific struct with generic dev 2018-04-14 00:41:44 +02:00
csumonly.c app/testpmd: use SPDX tags in 6WIND copyrighted files 2018-02-01 02:33:20 +01:00
flowgen.c app/testpmd: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00
icmpecho.c app/testpmd: use SPDX tags in 6WIND copyrighted files 2018-02-01 02:33:20 +01:00
ieee1588fwd.c app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
iofwd.c app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
macfwd.c app/testpmd: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00
macswap.c app/testpmd: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00
Makefile app/testpmd: fix DPAA shared library dependency 2018-03-14 00:25:37 +01:00
meson.build build: add meson support for dpaaX platforms 2018-03-15 17:50:02 +01:00
parameters.c app/testpmd: make use of per-PMD Tx/Rx parameters 2018-04-14 00:43:30 +02:00
rxonly.c app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
testpmd.c ethdev: deprecate port count function 2018-04-18 00:48:41 +02:00
testpmd.h ethdev: replace bus specific struct with generic dev 2018-04-14 00:41:44 +02:00
tm.c app/testpmd: fix allocation check in TM config 2018-01-31 23:34:47 +01:00
txonly.c app/testpmd: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00