vhost: fix socket initial value
PATCH 1/1 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")
Signed-off-by Xiao Wang <[email protected]>
--- lib/librte_vhost/socket.c | 1 + 1 file changed, 1 insertion(+)
lib/librte_vhost/socket.c +1 -0
@@ -877,6 +877,7 @@ rte_vhost_driver_register(const char *path, uint64_t flags) "error: failed to init connection mutex\n"); goto out_free; } + vsocket->vdpa_dev_id =-1 ; vsocket->dequeue_zero_copy = flags &RTE_VHOST_USER_DEQUEUE_ZERO_COPY ; vsocket->extbuf = flags &RTE_VHOST_USER_EXTBUF_SUPPORT ; vsocket->linearbuf = flags &RTE_VHOST_USER_LINEARBUF_SUPPORT ;
Signature · 1 line
2.15.1
Quoted 10 lines · Xiao Wang
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")Signed-off-by Xiao Wang <[email protected]>--- lib/librte_vhost/socket.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Tiwei Bie <[email protected]>
Maxime Coquelin
AppliedQuoted 7 lines · Tiwei Bie
Quoted 6 lines · Xiao Wang
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")
Quoted 7 lines
Quoted 4 lines
Signed-off-by Xiao Wang <[email protected]>--- lib/librte_vhost/socket.c | 1 + 1 file changed, 1 insertion(+)Reviewed-by Tiwei Bie <[email protected]>
Applied to dpdk-next-virtio/master.
Thanks,
Maxime