ethdev: add private generic device iterator
authorGaetan Rivet <gaetan.rivet@6wind.com>
Wed, 19 Sep 2018 16:03:35 +0000 (18:03 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 3 Oct 2018 12:22:41 +0000 (14:22 +0200)
commit600ce805363601104cf7678eaf30fa409226996a
treeb6620d9b108de70db10893ba30e431f96ee479d5
parentac91bc493cdde005bab596576665eb7960dafe29
ethdev: add private generic device iterator

This iterator can be customized with a comparison function that will
trigger a stopping condition.

It can be leveraged to write several different iterators that have
similar but non-identical purposes.

It is private to librte_ethdev.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
lib/librte_ethdev/Makefile
lib/librte_ethdev/ethdev_private.c [new file with mode: 0644]
lib/librte_ethdev/ethdev_private.h [new file with mode: 0644]
lib/librte_ethdev/meson.build