vhost: use linked list for vDPA devices
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 26 Jun 2020 14:04:36 +0000 (16:04 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:30 +0000 (14:52 +0200)
commit08a4f9bab348a490b17ca0ae334b7a2072e8809b
tree41ddeaf75f21865c8e6c04fa7a4dc96a6c16b21f
parentf6d587754c05871a801c375df67c83fa49e326ef
vhost: use linked list for vDPA devices

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 <maxime.coquelin@redhat.com>
Acked-by: Adrián Moreno <amorenoz@redhat.com>
lib/librte_vhost/rte_vdpa.h
lib/librte_vhost/vdpa.c