Lines Matching +full:- +full:- +full:without +full:- +full:default +full:- +full:features
4 * Copyright (c) 2003-2008 Fabrice Bellard
9 * in the Software without restriction, including without limitation the rights
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28 #include "tap-linux.h"
35 #include "qemu/error-report.h"
46 unsigned int features; in tap_open() local
54 fd = -1; in tap_open()
61 return -1; in tap_open()
67 if (ioctl(fd, TUNGETFEATURES, &features) == -1) { in tap_open()
69 features = 0; in tap_open()
72 if (features & IFF_ONE_QUEUE) { in tap_open()
77 if (features & IFF_VNET_HDR) { in tap_open()
88 return -1; in tap_open()
91 * Make sure vnet header size has the default value: for a persistent in tap_open()
100 if (!(features & IFF_MULTI_QUEUE)) { in tap_open()
104 return -1; in tap_open()
124 return -1; in tap_open()
147 sndbuf = !tap->has_sndbuf ? TAP_DEFAULT_SNDBUF : in tap_set_sndbuf()
148 tap->sndbuf > INT_MAX ? INT_MAX : in tap_set_sndbuf()
149 tap->sndbuf; in tap_set_sndbuf()
155 if (ioctl(fd, TUNSETSNDBUF, &sndbuf) == -1 && tap->has_sndbuf) { in tap_set_sndbuf()
169 return -1; in tap_probe_vnet_hdr()
201 if (ioctl(fd, TUNSETVNETHDRSZ, &len) == -1) { in tap_fd_set_vnet_hdr_len()
218 return -errno; in tap_fd_set_vnet_le()
235 return -errno; in tap_fd_set_vnet_be()
325 return -1; in tap_fd_get_ifname()
339 return -1; in tap_fd_set_steering_ebpf()