Re: [dpdk-dev] [PATCH] ethdev: add siblings iterator

2018-12-11 Thread Thomas Monjalon
11/12/2018 17:31, Ferruh Yigit: > On 11/30/2018 12:27 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 function > > and loop macro. > > > > The ownership is not checked because siblings may have >

Re: [dpdk-dev] [PATCH] ethdev: add siblings iterator

2018-12-11 Thread Ferruh Yigit
On 11/30/2018 12:27 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 function > and loop macro. > > The ownership is not checked because siblings may have > different owners. Looks good on its own, b

[dpdk-dev] [PATCH] ethdev: add siblings iterator

2018-11-29 Thread Thomas Monjalon
If multiple ports share the same hardware device (rte_device), they are siblings and can be found thanks to the new function and loop macro. The ownership is not checked because siblings may have different owners. Signed-off-by: Thomas Monjalon --- lib/librte_ethdev/rte_ethdev.c | 15