vhost: get rid of linked list for devices
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Thu, 10 Mar 2016 04:19:59 +0000 (12:19 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 11 Mar 2016 15:46:18 +0000 (16:46 +0100)
commit45ca9c6f7bc65313f338b5baee84f2af5f28536d
tree0dbcd5d28be9fe5b7d5fefdb16102d8117d07a12
parent6fe390eed0f0aae9479f9cdbe4f4bb46c27aef63
vhost: get rid of linked list for devices

While we use a single linked list to maintain all devices, we could
use a static array to achieve the same goal, just like what we did
to maintain the eth devices with rte_eth_devices array. This could
simplifies the code a bit.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
lib/librte_vhost/virtio-net.c