ethdev: add device iterator
authorGaetan Rivet <gaetan.rivet@6wind.com>
Fri, 31 Mar 2017 12:04:38 +0000 (14:04 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Apr 2017 20:47:57 +0000 (22:47 +0200)
commit5588909af21b69abf0ef076d2bd0758edd1dce70
tree8c3620acd3d8baac2dedde4bbb265f352a86b465
parentd52268a8b24b503e00fdeee62c887062ee805b0f
ethdev: add device iterator

This iterator helps applications iterate over the device list and skip
holes caused by invalid or detached devices.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h