numam-dpdk/drivers/net
Thomas Monjalon 8728ccf376 fix ethdev ports enumeration
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.

There are three consequences when using such wrong design:
    - new ports having an index higher than the port count won't be seen
    - old ports being detached (RTE_ETH_DEV_UNUSED) can be seen as ghosts
    - failsafe sub-devices (RTE_ETH_DEV_DEFERRED) will be seen by the application

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 iterator RTE_ETH_FOREACH_DEV.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
2018-04-18 00:25:27 +02:00
..
af_packet net/af_packet: use SPDX tags in 6WIND copyrighted files 2018-02-01 02:33:04 +01:00
ark ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
avf ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
avp ethdev: replace bus specific struct with generic dev 2018-04-14 00:41:44 +02:00
axgbe ethdev: replace bus specific struct with generic dev 2018-04-14 00:41:44 +02:00
bnx2x drivers/net: remove redundant icc flag 2018-04-14 00:43:30 +02:00
bnxt net/bnxt: introduce Broadcom Stingray 2018-04-14 00:59:41 +02:00
bonding fix ethdev ports enumeration 2018-04-18 00:25:27 +02:00
cxgbe drivers/net: remove redundant icc flag 2018-04-14 00:43:30 +02:00
dpaa net/dpaa: support new ethdev offload APIs 2018-04-14 00:43:30 +02:00
dpaa2 net/dpaa2: support new ethdev offload APIs 2018-04-14 00:43:30 +02:00
e1000 drivers/net: remove redundant icc flag 2018-04-14 00:43:30 +02:00
ena ethdev: replace bus specific struct with generic dev 2018-04-14 00:41:44 +02:00
enic ethdev: replace bus specific struct with generic dev 2018-04-14 00:41:44 +02:00
failsafe ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
fm10k drivers/net: fix icc deprecated parameter warning 2018-04-14 00:43:30 +02:00
i40e drivers/net: remove redundant icc flag 2018-04-14 00:43:30 +02:00
ixgbe net/ixgbe: fix build when vector driver disabled 2018-04-16 18:57:03 +02:00
kni ethdev: replace bus specific struct with generic dev 2018-04-14 00:41:44 +02:00
liquidio ethdev: replace bus specific struct with generic dev 2018-04-14 00:41:44 +02:00
mlx4 ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
mlx5 ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
mvpp2 fix ethdev ports enumeration 2018-04-18 00:25:27 +02:00
nfp net/nfp: support hardware RSS v2 2018-04-14 00:43:30 +02:00
null ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
octeontx ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
pcap net/pcap: simplify dependency checking using meson 2018-03-12 16:29:27 +01:00
qede drivers/net: remove redundant icc flag 2018-04-14 00:43:30 +02:00
ring net/ring: fix library version in meson build 2018-03-28 00:07:35 +02:00
sfc net/sfc: fix meson build warning with gcc 2018-04-16 19:33:46 +02:00
softnic ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
szedata2 net/szedata2: add new kernel module dependency 2018-04-14 00:43:30 +02:00
tap ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
thunderx ethdev: replace bus specific struct with generic dev 2018-04-14 00:41:44 +02:00
vdev_netvsc align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
vhost vhost: support interrupt mode 2018-04-14 00:43:30 +02:00
virtio ethdev: return diagnostic when setting MAC address 2018-04-14 00:43:30 +02:00
vmxnet3 net/vmxnet3: fill imissed stat 2018-04-14 01:17:23 +02:00
Makefile net/axgbe: add minimal init and uninit support 2018-04-14 00:41:44 +02:00
meson.build net/axgbe: support meson build 2018-04-14 00:41:44 +02:00