Re: [dpdk-dev] [PATCH] vhost: refine the vhost_new_device

2018-06-15 Thread Maxime Coquelin
On 06/08/2018 11:18 AM, xiangxia.m@gmail.com wrote: From: Tonghao Zhang Make sure find avalid device id before allocating virtio_net, if not, return directly. It may avoid allocating and freeing virtio_net when there is not valid device id. Signed-off-by: Tonghao Zhang --- lib/librte_v

Re: [dpdk-dev] [PATCH] vhost: refine the vhost_new_device

2018-06-08 Thread Maxime Coquelin
On 06/08/2018 11:18 AM, xiangxia.m@gmail.com wrote: From: Tonghao Zhang Make sure find avalid device id before allocating virtio_net, if not, return directly. It may avoid allocating and freeing virtio_net when there is not valid device id. Signed-off-by: Tonghao Zhang --- lib/librte

[dpdk-dev] [PATCH] vhost: refine the vhost_new_device

2018-06-08 Thread xiangxia . m . yue
From: Tonghao Zhang Make sure find avalid device id before allocating virtio_net, if not, return directly. It may avoid allocating and freeing virtio_net when there is not valid device id. Signed-off-by: Tonghao Zhang --- lib/librte_vhost/vhost.c | 16 1 file changed, 8 insert