[dpdk-dev] [PATCH 1/3] vhost: get rid of linked list dev

2015-12-22 Thread Xie, Huawei
On 12/18/2015 3:03 PM, Yuanhan Liu wrote: > 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: Y

[dpdk-dev] [PATCH 1/3] vhost: get rid of linked list dev

2015-12-22 Thread Xie, Huawei
On 12/18/2015 3:03 PM, Yuanhan Liu wrote: > 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: Y

[dpdk-dev] [PATCH 1/3] vhost: get rid of linked list dev

2015-12-18 Thread Yuanhan Liu
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 --- Note that there is a slight function