Re: [dpdk-dev] [PATCH v20.11 2/2] eal: improve device probing API

2020-06-10 Thread Gaëtan Rivet
On 10/06/20 19:08 +0200, Maxime Coquelin wrote: > Hi Gaëtan, > > On 6/10/20 2:06 PM, Gaëtan Rivet wrote: > > Hello Maxime, > > > > On 08/06/20 17:53 +0200, Maxime Coquelin wrote: > >> This patch makes rte_dev_probe() to return the > >> rte_device pointer on success and NULL on error > >> instead

Re: [dpdk-dev] [PATCH v20.11 2/2] eal: improve device probing API

2020-06-10 Thread Maxime Coquelin
Hi Gaëtan, On 6/10/20 2:06 PM, Gaëtan Rivet wrote: > Hello Maxime, > > On 08/06/20 17:53 +0200, Maxime Coquelin wrote: >> This patch makes rte_dev_probe() to return the >> rte_device pointer on success and NULL on error >> instead of returning 0 on success and negative >> value on error. >> >> Th

Re: [dpdk-dev] [PATCH v20.11 2/2] eal: improve device probing API

2020-06-10 Thread Gaëtan Rivet
Hello Maxime, On 08/06/20 17:53 +0200, Maxime Coquelin wrote: > This patch makes rte_dev_probe() to return the > rte_device pointer on success and NULL on error > instead of returning 0 on success and negative > value on error. > > The goal is to avoid that the calling application > iterates the

[dpdk-dev] [PATCH v20.11 2/2] eal: improve device probing API

2020-06-08 Thread Maxime Coquelin
This patch makes rte_dev_probe() to return the rte_device pointer on success and NULL on error instead of returning 0 on success and negative value on error. The goal is to avoid that the calling application iterates the devices list afterwards to retrieve the pointer. Retrieving the pointer is re