[dpdk-dev] [PATCH] vhost: refine the vhost_new_device
Maxime Coquelin
maxime.coquelin at redhat.com
Fri Jun 15 10:01:59 CEST 2018
On 06/08/2018 11:18 AM, xiangxia.m.yue at gmail.com wrote:
> From: Tonghao Zhang<xiangxia.m.yue at gmail.com>
>
> 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<xiangxia.m.yue at gmail.com>
> ---
> lib/librte_vhost/vhost.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
Applied to dpdk-next-virtio/master
Thanks,
Maxime
More information about the dev
mailing list