[dpdk-dev] [PATCH v2 2/4] ethdev: add siblings iterators

Andrew Rybchenko arybchenko at solarflare.com
Sun Feb 24 18:22:14 CET 2019


On 2/21/19 1:10 AM, Thomas Monjalon wrote:
> If multiple ports share the same hardware device (rte_device),
> they are siblings and can be found thanks to the new functions
> and loop macros.
> One iterator takes a port id as reference,
> while the other one directly refers to the parent device.
>
> The ownership is not checked because siblings may have
> different owners.
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>

LGTM

Reviewed-by: Andrew Rybchenko <arybchenko at solarflare.com>



More information about the dev mailing list