Re: [dpdk-dev] [PATCH 08/11] ethdev: fix port visibility before initialization

2018-05-10 Thread Thomas Monjalon
10/05/2018 22:40, Stephen Hemminger: > On Wed, 9 May 2018 11:43:34 +0200 > Thomas Monjalon wrote: > > > The port was set to the state ATTACHED during allocation. > > The consequence was to iterate over ports which are not initialized. > > > > The state ATTACHED is now set as the last step of pr

Re: [dpdk-dev] [PATCH 08/11] ethdev: fix port visibility before initialization

2018-05-10 Thread Stephen Hemminger
On Wed, 9 May 2018 11:43:34 +0200 Thomas Monjalon wrote: > The port was set to the state ATTACHED during allocation. > The consequence was to iterate over ports which are not initialized. > > The state ATTACHED is now set as the last step of probing. > > The uniqueness of port name is now chec

[dpdk-dev] [PATCH 08/11] ethdev: fix port visibility before initialization

2018-05-09 Thread Thomas Monjalon
The port was set to the state ATTACHED during allocation. The consequence was to iterate over ports which are not initialized. The state ATTACHED is now set as the last step of probing. The uniqueness of port name is now checked before the availability of a port id for allocation (order reversed)