Lines Matching refs:path

34 	char *path;  member
226 size = strnlen(vsocket->path, PATH_MAX); in vhost_user_add_connection()
227 vhost_set_ifname(vid, vsocket->path, size); in vhost_user_add_connection()
247 VHOST_LOG_CONFIG(INFO, "(%s) new device, handle is %d\n", vsocket->path, vid); in vhost_user_add_connection()
254 vsocket->path, fd); in vhost_user_add_connection()
266 vsocket->path, fd); in vhost_user_add_connection()
299 vsocket->path, fd); in vhost_user_server_new_connection()
348 vsocket->path, vsocket->is_server ? "server" : "client", fd); in create_unix_socket()
353 vsocket->path, fd, strerror(errno)); in create_unix_socket()
360 strncpy(un->sun_path, vsocket->path, sizeof(un->sun_path)); in create_unix_socket()
372 const char *path = vsocket->path; in vhost_user_start_server() local
387 path, strerror(errno)); in vhost_user_start_server()
390 VHOST_LOG_CONFIG(INFO, "(%s) binding succeeded\n", path); in vhost_user_start_server()
401 path, fd); in vhost_user_start_server()
430 vhost_user_connect_nonblock(char *path, int fd, struct sockaddr *un, size_t sz) in vhost_user_connect_nonblock() argument
441 path, fd, strerror(errno)); in vhost_user_connect_nonblock()
445 VHOST_LOG_CONFIG(ERR, "(%s) can't disable nonblocking on fd %d\n", path, fd); in vhost_user_connect_nonblock()
468 ret = vhost_user_connect_nonblock(reconn->vsocket->path, reconn->fd, in vhost_user_client_reconnect()
474 reconn->vsocket->path, reconn->fd); in vhost_user_client_reconnect()
480 VHOST_LOG_CONFIG(INFO, "(%s) connected\n", reconn->vsocket->path); in vhost_user_client_reconnect()
522 const char *path = vsocket->path; in vhost_user_start_client() local
525 ret = vhost_user_connect_nonblock(vsocket->path, fd, (struct sockaddr *)&vsocket->un, in vhost_user_start_client()
532 VHOST_LOG_CONFIG(WARNING, "(%s) failed to connect: %s\n", path, strerror(errno)); in vhost_user_start_client()
539 VHOST_LOG_CONFIG(INFO, "(%s) reconnecting...\n", path); in vhost_user_start_client()
542 VHOST_LOG_CONFIG(ERR, "(%s) failed to allocate memory for reconnect\n", path); in vhost_user_start_client()
557 find_vhost_user_socket(const char *path) in find_vhost_user_socket() argument
561 if (path == NULL) in find_vhost_user_socket()
567 if (!strcmp(vsocket->path, path)) in find_vhost_user_socket()
575 rte_vhost_driver_attach_vdpa_device(const char *path, in rte_vhost_driver_attach_vdpa_device() argument
580 if (dev == NULL || path == NULL) in rte_vhost_driver_attach_vdpa_device()
584 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_attach_vdpa_device()
593 rte_vhost_driver_detach_vdpa_device(const char *path) in rte_vhost_driver_detach_vdpa_device() argument
598 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_detach_vdpa_device()
607 rte_vhost_driver_get_vdpa_device(const char *path) in rte_vhost_driver_get_vdpa_device() argument
613 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_get_vdpa_device()
622 rte_vhost_driver_disable_features(const char *path, uint64_t features) in rte_vhost_driver_disable_features() argument
627 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_disable_features()
642 rte_vhost_driver_enable_features(const char *path, uint64_t features) in rte_vhost_driver_enable_features() argument
647 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_enable_features()
665 rte_vhost_driver_set_features(const char *path, uint64_t features) in rte_vhost_driver_set_features() argument
670 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_set_features()
686 rte_vhost_driver_get_features(const char *path, uint64_t *features) in rte_vhost_driver_get_features() argument
694 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_get_features()
696 VHOST_LOG_CONFIG(ERR, "(%s) socket file is not registered yet.\n", path); in rte_vhost_driver_get_features()
708 VHOST_LOG_CONFIG(ERR, "(%s) failed to get vdpa features for socket file.\n", path); in rte_vhost_driver_get_features()
721 rte_vhost_driver_set_protocol_features(const char *path, in rte_vhost_driver_set_protocol_features() argument
727 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_set_protocol_features()
735 rte_vhost_driver_get_protocol_features(const char *path, in rte_vhost_driver_get_protocol_features() argument
744 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_get_protocol_features()
746 VHOST_LOG_CONFIG(ERR, "(%s) socket file is not registered yet.\n", path); in rte_vhost_driver_get_protocol_features()
760 path); in rte_vhost_driver_get_protocol_features()
774 rte_vhost_driver_get_queue_num(const char *path, uint32_t *queue_num) in rte_vhost_driver_get_queue_num() argument
782 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_get_queue_num()
784 VHOST_LOG_CONFIG(ERR, "(%s) socket file is not registered yet.\n", path); in rte_vhost_driver_get_queue_num()
797 path); in rte_vhost_driver_get_queue_num()
812 if (vsocket && vsocket->path) { in vhost_user_socket_mem_free()
813 free(vsocket->path); in vhost_user_socket_mem_free()
814 vsocket->path = NULL; in vhost_user_socket_mem_free()
829 rte_vhost_driver_register(const char *path, uint64_t flags) in rte_vhost_driver_register() argument
834 if (!path) in rte_vhost_driver_register()
841 path); in rte_vhost_driver_register()
849 vsocket->path = strdup(path); in rte_vhost_driver_register()
850 if (vsocket->path == NULL) { in rte_vhost_driver_register()
851 VHOST_LOG_CONFIG(ERR, "(%s) failed to copy socket path string\n", path); in rte_vhost_driver_register()
858 VHOST_LOG_CONFIG(ERR, "(%s) failed to init connection mutex\n", path); in rte_vhost_driver_register()
871 path); in rte_vhost_driver_register()
896 path); in rte_vhost_driver_register()
911 path); in rte_vhost_driver_register()
913 path); in rte_vhost_driver_register()
928 VHOST_LOG_CONFIG(ERR, "(%s) Postcopy requested but not compiled\n", path); in rte_vhost_driver_register()
955 VHOST_LOG_CONFIG(ERR, "(%s) failed to destroy connection mutex\n", path); in rte_vhost_driver_register()
993 rte_vhost_driver_unregister(const char *path) in rte_vhost_driver_unregister() argument
999 if (path == NULL) in rte_vhost_driver_unregister()
1007 if (strcmp(vsocket->path, path)) in rte_vhost_driver_unregister()
1043 VHOST_LOG_CONFIG(INFO, "(%s) free connfd %d\n", path, conn->connfd); in rte_vhost_driver_unregister()
1053 unlink(path); in rte_vhost_driver_unregister()
1074 rte_vhost_driver_callback_register(const char *path, in rte_vhost_driver_callback_register() argument
1080 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_callback_register()
1089 vhost_driver_callback_get(const char *path) in vhost_driver_callback_get() argument
1094 vsocket = find_vhost_user_socket(path); in vhost_driver_callback_get()
1101 rte_vhost_driver_start(const char *path) in rte_vhost_driver_start() argument
1107 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_start()
1119 VHOST_LOG_CONFIG(ERR, "(%s) failed to create pipe for vhost fdset\n", path); in rte_vhost_driver_start()
1127 VHOST_LOG_CONFIG(ERR, "(%s) failed to create fdset handling thread", path); in rte_vhost_driver_start()