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

2019-04-03 Thread Slava Ovsiienko
> -Original Message- > From: dev On Behalf Of Thomas Monjalon > Sent: Monday, April 1, 2019 5:27 > To: gaetan.ri...@6wind.com; Ferruh Yigit ; Andrew > Rybchenko > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3 2/4] ethdev: add siblings iterators > > If mu

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

2019-04-02 Thread Thomas Monjalon
03/04/2019 01:42, Ferruh Yigit: > On 4/1/2019 3:26 AM, Thomas Monjalon wrote: > > +__rte_experimental > > +uint16_t rte_eth_find_next_of(uint16_t port_id_start, > > + const struct rte_device *parent); > > Minor nit, but other instances using the tag as: > > uint16_t __rte_experimental >

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

2019-04-02 Thread Ferruh Yigit
On 4/1/2019 3: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. >

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

2019-04-01 Thread Andrew Rybchenko
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 owners

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

2019-03-31 Thread Thomas Monjalon
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