Re: [dpdk-dev] [PATCH v3 2/7] ethdev: fix used portid allocation

2018-01-20 Thread Ananyev, Konstantin
Hi Matan, > > Hi Konstantin > > From: Ananyev, Konstantin, Friday, January 19, 2018 2:40 PM > > > -Original Message- > > > From: Matan Azrad [mailto:ma...@mellanox.com] > > > Sent: Thursday, January 18, 2018 4:35 PM > > > To: Thomas Monjalon ; Gaetan Rivet > > > ; Wu, Jingjing > > > Cc:

Re: [dpdk-dev] [PATCH v3 2/7] ethdev: fix used portid allocation

2018-01-20 Thread Matan Azrad
Hi Konstantin From: Ananyev, Konstantin, Friday, January 19, 2018 2:40 PM > > -Original Message- > > From: Matan Azrad [mailto:ma...@mellanox.com] > > Sent: Thursday, January 18, 2018 4:35 PM > > To: Thomas Monjalon ; Gaetan Rivet > > ; Wu, Jingjing > > Cc: dev@dpdk.org; Neil Horman ; Ric

Re: [dpdk-dev] [PATCH v3 2/7] ethdev: fix used portid allocation

2018-01-19 Thread Ananyev, Konstantin
> -Original Message- > From: Matan Azrad [mailto:ma...@mellanox.com] > Sent: Thursday, January 18, 2018 4:35 PM > To: Thomas Monjalon ; Gaetan Rivet > ; Wu, Jingjing > Cc: dev@dpdk.org; Neil Horman ; Richardson, Bruce > ; Ananyev, Konstantin > ; sta...@dpdk.org > Subject: [PATCH v3 2/7

Re: [dpdk-dev] [PATCH v3 2/7] ethdev: fix used portid allocation

2018-01-18 Thread Thomas Monjalon
18/01/2018 17:35, Matan Azrad: > rte_eth_dev_find_free_port() found a free port by state checking. > The state field are in local process memory, so other DPDK processes > may get the same port ID because their local states may be different. > > Replace the state checking by the ethdev port name c

[dpdk-dev] [PATCH v3 2/7] ethdev: fix used portid allocation

2018-01-18 Thread Matan Azrad
rte_eth_dev_find_free_port() found a free port by state checking. The state field are in local process memory, so other DPDK processes may get the same port ID because their local states may be different. Replace the state checking by the ethdev port name checking, so, if the name is an empty stri