numam-dpdk/app/test-pmd
Thomas Monjalon a9dbe18022 fix ethdev port id validation
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 assume a valid port index is in the range [0..count[.

There are three consequences when using such wrong design:
    - new ports having an index higher than the port count won't be valid
    - old ports being detached (RTE_ETH_DEV_UNUSED) can be valid

Such mistake will be less common with growing hotplug awareness.
All applications and examples inside this repository - except testpmd -
must be fixed to use the function rte_eth_dev_is_valid_port.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
2018-04-18 00:37:05 +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 fix ethdev port id validation 2018-04-18 00:37:05 +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 fix ethdev ports enumeration 2018-04-18 00:25:27 +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