Re: [dpdk-dev] [PATCH v2 2/3] ethdev: add device iterator

2017-04-05 Thread Thomas Monjalon
2017-03-31 14:04, Gaetan Rivet: > /** > + * Iterates over valid ethdev ports. > + * > + * @param: port_id warning: expected whitespace after : command Will fix it when applying > + * The id of the next possible valid port. > + * @return > + * Next valid port id, RTE_MAX_ETHPORTS if there is

[dpdk-dev] [PATCH v2 2/3] ethdev: add device iterator

2017-03-31 Thread Gaetan Rivet
This iterator helps applications iterate over the device list and skip holes caused by invalid or detached devices. Signed-off-by: Gaetan Rivet --- lib/librte_ether/rte_ethdev.c | 17 ++--- lib/librte_ether/rte_ethdev.h | 21 - 2 files changed, 34 insertions(+), 4