vhost: get device by device id only
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 29 Apr 2016 23:24:27 +0000 (07:24 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 22 Jun 2016 07:01:30 +0000 (09:01 +0200)
commit319d362e3beba6f49c2990f9020062c0b3b2a4ef
treeac5041e42343d485ca08b4fb64400c3090e7ba2c
parente2a1dd1275881ffcdcb9af0760ccea0e75f7c024
vhost: get device by device id only

get_device() just needs vid, so pass vid as the parameter only.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Rich Lane <rich.lane@bigswitch.com>
Acked-by: Rich Lane <rich.lane@bigswitch.com>
lib/librte_vhost/vhost-net.h
lib/librte_vhost/vhost_cuse/vhost-net-cdev.c
lib/librte_vhost/vhost_cuse/virtio-net-cdev.c
lib/librte_vhost/vhost_user/vhost-net-user.c
lib/librte_vhost/vhost_user/virtio-net-user.c
lib/librte_vhost/vhost_user/virtio-net-user.h
lib/librte_vhost/virtio-net.c
lib/librte_vhost/virtio-net.h