numam-dpdk/lib
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
..
librte_acl build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_bbdev bbdev: fix exported dynamic log type 2018-02-06 18:51:44 +01:00
librte_bitratestats bitratestats: fix library version in meson build 2018-03-28 00:07:35 +02:00
librte_cfgfile build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_cmdline convert snprintf to strlcpy 2018-04-04 17:33:08 +02:00
librte_compat compat: relicense some files 2018-02-06 23:13:47 +01:00
librte_cryptodev cryptodev: fix library version in meson build 2018-03-28 00:07:35 +02:00
librte_distributor build: set compat lib as universal dependency 2018-01-30 21:59:00 +01:00
librte_eal eal: fix signed integers in fbarray 2018-04-17 14:38:16 +02:00
librte_efd build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_ether ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
librte_eventdev fix ethdev ports enumeration 2018-04-18 00:25:27 +02:00
librte_flow_classify flow_classify: remove void pointer cast 2018-03-30 14:08:43 +02:00
librte_gro build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_gso build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_hash hash: fix comment for lookup 2018-04-15 15:07:11 +02:00
librte_ip_frag ip_frag: fix double free of chained mbufs 2018-04-15 14:44:07 +02:00
librte_jobstats build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_kni fix ethdev port id validation 2018-04-18 00:37:05 +02:00
librte_kvargs kvargs: fix syntax in comments 2018-03-28 00:43:22 +02:00
librte_latencystats fix ethdev ports enumeration 2018-04-18 00:25:27 +02:00
librte_lpm lpm: fix allocation of an existing object 2018-02-01 00:35:06 +01:00
librte_mbuf mbuf: remove control mbuf 2018-04-11 23:40:40 +02:00
librte_member build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_mempool mem: replace memseg with memseg lists 2018-04-11 19:55:39 +02:00
librte_meter meter: fix library version in meson build 2018-03-28 00:07:35 +02:00
librte_metrics metrics: fix potential missing string termination 2018-04-04 17:33:08 +02:00
librte_net align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
librte_pci pci: use z specifier to format size_t 2018-04-04 13:43:33 +02:00
librte_pdump convert snprintf to strlcpy 2018-04-04 17:33:08 +02:00
librte_pipeline pipeline: add port in action APIs 2018-04-04 12:26:07 +02:00
librte_port build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_power build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_rawdev rawdev: add self test 2018-01-31 15:35:56 +01:00
librte_reorder build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_ring ring: relax alignment constraint on ring structure 2018-04-18 00:24:22 +02:00
librte_sched build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_security build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_table table: remove incorrect check for ACL 2018-04-04 12:26:20 +02:00
librte_timer build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
librte_vhost vhost/crypto: fix build without cryptodev 2018-04-17 12:36:40 +02:00
Makefile eventdev: add default software timer adapter 2018-04-16 11:04:46 +02:00
meson.build mk: update timer library order in static build 2018-04-16 11:04:46 +02:00