examples: skip build when missing dependencies
[dpdk.git] / lib / vhost / socket.c
index d6f9414..82963c1 100644 (file)
@@ -58,7 +58,7 @@ struct vhost_user_socket {
 
        struct rte_vdpa_device *vdpa_dev;
 
-       struct vhost_device_ops const *notify_ops;
+       struct rte_vhost_device_ops const *notify_ops;
 };
 
 struct vhost_user_connection {
@@ -243,7 +243,7 @@ vhost_user_add_connection(int fd, struct vhost_user_socket *vsocket)
                        dev->async_copy = 1;
        }
 
-       VHOST_LOG_CONFIG(INFO, "new device, handle is %d\n", vid);
+       VHOST_LOG_CONFIG(INFO, "new device, handle is %d, path is %s\n", vid, vsocket->path);
 
        if (vsocket->notify_ops->new_connection) {
                ret = vsocket->notify_ops->new_connection(vid);
@@ -1093,7 +1093,7 @@ again:
  */
 int
 rte_vhost_driver_callback_register(const char *path,
-       struct vhost_device_ops const * const ops)
+       struct rte_vhost_device_ops const * const ops)
 {
        struct vhost_user_socket *vsocket;
 
@@ -1106,7 +1106,7 @@ rte_vhost_driver_callback_register(const char *path,
        return vsocket ? 0 : -1;
 }
 
-struct vhost_device_ops const *
+struct rte_vhost_device_ops const *
 vhost_driver_callback_get(const char *path)
 {
        struct vhost_user_socket *vsocket;