Searched refs:tapfd (Results 1 – 3 of 3) sorted by relevance
| /dpdk/drivers/net/virtio/virtio_user/ |
| H A D | vhost_kernel_tap.c | 25 int tapfd; in tap_support_features() local 27 tapfd = open(PATH_NET_TUN, O_RDWR); in tap_support_features() 28 if (tapfd < 0) { in tap_support_features() 36 close(tapfd); in tap_support_features() 40 close(tapfd); in tap_support_features() 48 int tapfd; in tap_open() local 51 if (tapfd < 0) { in tap_open() 57 close(tapfd); in tap_open() 77 close(tapfd); in tap_open() 78 tapfd = -1; in tap_open() [all …]
|
| H A D | vhost_kernel_tap.h | 37 int vhost_kernel_tap_setup(int tapfd, int hdr_size, uint64_t features); 41 int tap_get_name(int tapfd, char **ifname); 42 int tap_get_flags(int tapfd, unsigned int *tap_flags); 43 int tap_set_mac(int tapfd, uint8_t *mac);
|
| H A D | vhost_kernel.c | 505 vhost_kernel_set_backend(int vhostfd, int tapfd) in vhost_kernel_set_backend() argument 509 f.fd = tapfd; in vhost_kernel_set_backend() 535 int tapfd; in vhost_kernel_enable_queue_pair() local 541 tapfd = data->tapfds[pair_idx]; in vhost_kernel_enable_queue_pair() 563 if (vhost_kernel_tap_setup(tapfd, hdr_size, dev->features) < 0) { in vhost_kernel_enable_queue_pair() 568 if (vhost_kernel_set_backend(vhostfd, tapfd) < 0) { in vhost_kernel_enable_queue_pair()
|