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

Andrew Rybchenko arybchenko at solarflare.com
Mon Apr 1 09:23:27 CEST 2019


On 4/1/19 5:26 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>

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



More information about the dev mailing list