Re: [dpdk-dev] [PATCH 3/4] ethdev: count devices consistently

2017-03-31 Thread Gaƫtan Rivet
On Thu, Mar 30, 2017 at 09:26:12PM +0200, Thomas Monjalon wrote: 2017-03-03 16:40, Gaetan Rivet: Make the rte_eth_dev_count() return the correct number of devices even after some are detached by the hotplug API. Please explain what is the correct number, or that the wrong number was a max id.

Re: [dpdk-dev] [PATCH 3/4] ethdev: count devices consistently

2017-03-30 Thread Thomas Monjalon
2017-03-03 16:40, Gaetan Rivet: > Make the rte_eth_dev_count() return the correct number of devices even > after some are detached by the hotplug API. Please explain what is the correct number, or that the wrong number was a max id. > This change does not affect existing applications that do not

[dpdk-dev] [PATCH 3/4] ethdev: count devices consistently

2017-03-03 Thread Gaetan Rivet
Make the rte_eth_dev_count() return the correct number of devices even after some are detached by the hotplug API. This change does not affect existing applications that do not use hotplug API calls. Those that do are already aware that port IDs are not necessarily contiguous. Signed-off-by: Gaet