vhost: fix socket initial value
authorXiao Wang <xiao.w.wang@intel.com>
Fri, 3 Jan 2020 18:36:21 +0000 (13:36 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:02 +0000 (19:46 +0100)
commitbf4fd5ba3e2edfe68888e83aef81f681756fc692
treecf23322369d55bb503b6b2718f333ec614825f12
parentb56c12acf20585ad46faf9455b4b9aeb30450ef0
vhost: fix socket initial value

By default, a vhost socket is created without attaching VDPA device,
this patch fixes the initial value of vdpa_dev_id.

Fixes: b4953225cea4 ("vhost: add APIs for datapath configuration")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/socket.c