Home
last modified time | relevance | path

Searched refs:vhostfd (Results 1 – 6 of 6) sorted by relevance

/f-stack/dpdk/drivers/net/virtio/virtio_user/
H A Dvhost_kernel.c186 int vhostfd; in vhost_kernel_ioctl() local
223 vhostfd, *(unsigned int *)arg); in vhost_kernel_ioctl()
226 vhostfd = -1; in vhost_kernel_ioctl()
228 if (vhostfd == -1) { in vhost_kernel_ioctl()
238 ret = ioctl(vhostfd, req_kernel, arg); in vhost_kernel_ioctl()
279 int vhostfd; in vhost_kernel_setup() local
285 vhostfd = open(dev->path, O_RDWR); in vhost_kernel_setup()
286 if (vhostfd < 0) { in vhost_kernel_setup()
292 dev->vhostfds[i] = vhostfd; in vhost_kernel_setup()
327 int vhostfd; in vhost_kernel_enable_queue_pair() local
[all …]
H A Dvhost_vdpa.c96 if (write(dev->vhostfd, &msg, sizeof(msg)) != sizeof(msg)) { in vhost_vdpa_dma_map()
116 if (write(dev->vhostfd, &msg, sizeof(msg)) != sizeof(msg)) { in vhost_vdpa_dma_unmap()
225 dev->vhostfd, *(unsigned int *)arg); in vhost_vdpa_ioctl()
231 ret = ioctl(dev->vhostfd, req_vdpa, arg); in vhost_vdpa_ioctl()
251 dev->vhostfd = open(dev->path, O_RDWR); in vhost_vdpa_setup()
252 if (dev->vhostfd < 0) { in vhost_vdpa_setup()
258 if (ioctl(dev->vhostfd, VHOST_VDPA_GET_DEVICE_ID, &did) < 0 || in vhost_vdpa_setup()
H A Dvhost_user.c263 int vhostfd = dev->vhostfd; in vhost_user_sock() local
269 if (dev->is_server && vhostfd < 0) in vhost_user_sock()
363 if (vhost_user_write(vhostfd, &msg, len, fds, fd_num) < 0) { in vhost_user_sock()
370 if (vhost_user_read(vhostfd, &msg) < 0) { in vhost_user_sock()
480 dev->vhostfd = -1; in vhost_user_setup()
487 dev->vhostfd = fd; in vhost_user_setup()
H A Dvirtio_user_dev.c130 dev->vhostfd < 0) in virtio_user_dev_set_features()
176 dev->vhostfd < 0) in virtio_user_start_device()
321 if (dev->vhostfd >= 0) in virtio_user_fill_intr_handle()
322 eth_dev->intr_handle->fd = dev->vhostfd; in virtio_user_fill_intr_handle()
369 dev->vhostfd = -1; in virtio_user_dev_setup()
604 if (dev->vhostfd >= 0) in virtio_user_dev_uninit()
605 close(dev->vhostfd); in virtio_user_dev_uninit()
643 if (!dev->is_server || dev->vhostfd >= 0) { in virtio_user_handle_mq()
H A Dvirtio_user_dev.h29 int vhostfd; member
/f-stack/dpdk/drivers/net/virtio/
H A Dvirtio_user_ethdev.c79 dev->vhostfd = connectfd; in virtio_user_server_reconnect()
181 if (dev->vhostfd >= 0) { in virtio_user_delayed_handler()
182 close(dev->vhostfd); in virtio_user_delayed_handler()
183 dev->vhostfd = -1; in virtio_user_delayed_handler()
217 if (dev->vhostfd >= 0) { in virtio_user_read_dev_config()
221 flags = fcntl(dev->vhostfd, F_GETFL); in virtio_user_read_dev_config()
222 if (fcntl(dev->vhostfd, F_SETFL, in virtio_user_read_dev_config()
227 r = recv(dev->vhostfd, buf, 128, MSG_PEEK); in virtio_user_read_dev_config()
243 if (fcntl(dev->vhostfd, F_SETFL, in virtio_user_read_dev_config()