Re: [dpdk-dev] [PATCH v3 09/14] vhost: use linked-list for vDPA devices

2020-06-26 Thread Adrian Moreno
On 6/26/20 4:04 PM, Maxime Coquelin wrote: > There is no more notion of device ID outside of vdpa.c. > We can now move from array to linked-list model for keeping > track of the vDPA devices. > > There is no point in using array here, as all vDPA API are > used from the control path, so no perf

[dpdk-dev] [PATCH v3 09/14] vhost: use linked-list for vDPA devices

2020-06-26 Thread Maxime Coquelin
There is no more notion of device ID outside of vdpa.c. We can now move from array to linked-list model for keeping track of the vDPA devices. There is no point in using array here, as all vDPA API are used from the control path, so no performance concerns. Signed-off-by: Maxime Coquelin --- li

Re: [dpdk-dev] [PATCH v3 09/14] vhost: use linked-list for vDPA devices

2020-06-26 Thread Maxime Coquelin
On 6/26/20 3:27 PM, Maxime Coquelin wrote: > -rte_vdpa_unregister_device(struct rte_vdpa_device *vdev) > +rte_vdpa_unregister_device(struct rte_vdpa_device *dev) > { > - int i; > + struct rte_vdpa_device *cur_dev, *tmp_dev; > + int ret = -1; > > - for (i = 0; i < MAX_VHOST_DEV

[dpdk-dev] [PATCH v3 09/14] vhost: use linked-list for vDPA devices

2020-06-26 Thread Maxime Coquelin
There is no more notion of device ID outside of vdpa.c. We can now move from array to linked-list model for keeping track of the vDPA devices. There is no point in using array here, as all vDPA API are used from the control path, so no performance concerns. Signed-off-by: Maxime Coquelin --- li