numam-dpdk/lib/librte_vhost
Tonghao Zhang 76b1e4cec7 vhost: refine new device function
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@gmail.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-06-15 09:49:09 +02:00
..
2018-05-14 22:31:03 +01:00
2018-04-14 00:40:21 +02:00
2018-04-14 00:40:21 +02:00
2018-06-15 09:49:09 +02:00