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

2020-08-06 Thread Thomas Monjalon
06/08/2020 12:29, Maxime Coquelin: > On 8/6/20 1:33 AM, Thomas Monjalon wrote: > > 25/06/2020 10:04, 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. > >

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

2020-08-06 Thread Maxime Coquelin
On 8/6/20 1:33 AM, Thomas Monjalon wrote: > 25/06/2020 10:04, 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 app

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

2020-08-05 Thread Thomas Monjalon
25/06/2020 10:04, 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 r

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

2020-06-29 Thread Gaƫtan Rivet
On 25/06/20 10:04 +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 devices list af

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

2020-06-25 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