Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 93) sorted by relevance

1234

/tools/testing/selftests/net/netfilter/
Dvxlan_mtu_frag.sh18 setup_ns host vtep router
22 ip link add host-eth0 netns "$host" type veth peer name vtep-host netns "$vtep"
29 ip -n "$host" addr add 10.0.0.1/24 dev host-eth0
30 ip -n "$host" link set host-eth0 up
34 ip -n "$host" link add link host-eth0 name host-eth0.$vid type vlan id $vid
35 ip -n "$host" addr add 10.0.$vid.1/24 dev host-eth0.$vid
36 ip -n "$host" link set host-eth0.$vid up
47 ip -n "$vtep" link set dev vtep-host master br0
48 bridge -n "$vtep" vlan add dev vtep-host vid 10 pvid untagged
51 ip -n "$vtep" link set dev vtep-host master br0
[all …]
/tools/testing/selftests/drivers/net/bonding/
Dbond-lladdr-target.sh26 host="ns-$(mktemp -u XXXXXX)"
31 ip netns del $host
47 ip netns add $host
49 ip -n $host link add veth0 type veth peer name veth0 netns $sw
50 ip -n $host link add veth1 type veth peer name veth1 netns $sw
58 ip -n $host link add bond0 type bond mode 1 ns_ip6_target ${sw_lladdr} \
61 ip -n $host addr add fe80::beef/64 dev bond0
62 ip -n $host link set bond0 up
63 ip -n $host link set veth0 master bond0
64 ip -n $host link set veth1 master bond0
[all …]
/tools/testing/selftests/net/lib/py/
Dutils.py17 … def __init__(self, comm, shell=True, fail=True, ns=None, background=False, host=None, timeout=5): argument
26 if host:
27 self.proc = host.cmd(comm)
55 def __init__(self, comm, shell=True, fail=None, ns=None, host=None, argument
58 shell=shell, fail=fail, ns=ns, host=host)
103 def tool(name, args, json=None, ns=None, host=None): argument
108 cmd_obj = cmd(cmd_str, ns=ns, host=host)
114 def ip(args, json=None, ns=None, host=None): argument
117 return tool('ip', args, json=json, host=host)
120 def ethtool(args, json=None, ns=None, host=None): argument
[all …]
/tools/virtio/ringtest/
Dring.c67 struct host { struct
74 } host; argument
95 host.used_idx = 0; in alloc_ring()
96 host.called_used_idx = -1; in alloc_ring()
213 event->kick_index = host.used_idx; in enable_kick()
221 unsigned head = (ring_size - 1) & host.used_idx; in avail_empty()
228 unsigned head = (ring_size - 1) & host.used_idx; in use_buf()
250 host.used_idx++; in use_buf()
263 host.used_idx, in call_used()
264 host.called_used_idx); in call_used()
[all …]
Dvirtio_ring_0_9.c54 struct host { struct
61 } host; argument
87 host.used_idx = 0; in alloc_ring()
88 host.called_used_idx = -1; in alloc_ring()
252 vring_avail_event(&ring) = host.used_idx; in enable_kick()
260 unsigned head = host.used_idx; in avail_empty()
272 unsigned used_idx = host.used_idx; in use_buf()
313 host.used_idx++; in use_buf()
314 ring.used->idx = host.used_idx; in use_buf()
327 host.used_idx, in call_used()
[all …]
Drun-on-all.sh20 "$@" --host-affinity $HOST_AFFINITY --guest-affinity $cpu
24 "$@" --host-affinity $HOST_AFFINITY
/tools/usb/usbip/src/
Dusbip_attach.c39 static int record_connection(char *host, char *port, char *busid, int rhport) in record_connection() argument
68 host, port, busid); in record_connection()
174 static int attach_device(char *host, char *busid) in attach_device() argument
180 sockfd = usbip_net_tcp_connect(host, usbip_port_string); in attach_device()
192 rc = record_connection(host, usbip_port_string, busid, rhport); in attach_device()
209 char *host = NULL; in usbip_attach() local
222 host = optarg; in usbip_attach()
233 if (!host || !busid) in usbip_attach()
236 ret = attach_device(host, busid); in usbip_attach()
Dusbip_list.c44 static int get_exported_devices(char *host, int sockfd) in get_exported_devices() argument
79 info("no exportable devices found on %s", host); in get_exported_devices()
85 printf(" - %s\n", host); in get_exported_devices()
128 static int list_exported_devices(char *host) in list_exported_devices() argument
133 sockfd = usbip_net_tcp_connect(host, usbip_port_string); in list_exported_devices()
135 err("could not connect to %s:%s: %s", host, in list_exported_devices()
139 dbg("connected to %s:%s", host, usbip_port_string); in list_exported_devices()
141 rc = get_exported_devices(host, sockfd); in list_exported_devices()
143 err("failed to get device list from %s", host); in list_exported_devices()
Dusbipd.c313 char host[NI_MAXHOST], port[NI_MAXSERV]; in do_accept() local
324 rc = getnameinfo((struct sockaddr *)&ss, len, host, sizeof(host), in do_accept()
332 info("denied access from %s", host); in do_accept()
337 info("connection from %s:%s", host, port); in do_accept()
426 static struct addrinfo *do_getaddrinfo(char *host, int ai_family) in do_getaddrinfo() argument
436 rc = getaddrinfo(host, usbip_port_string, &hints, &ai_head); in do_getaddrinfo()
/tools/testing/selftests/drivers/net/
Dping.py14 cmd(f"ping -c 1 -W0.5 {cfg.v4}", host=cfg.remote)
21 cmd(f"ping -c 1 -W0.5 {cfg.v6}", host=cfg.remote)
34 shell=True, host=cfg.remote)
37 with bkg(listen_cmd, host=cfg.remote, exit_wait=True) as nc:
38 wait_port_listen(port, host=cfg.remote)
/tools/testing/vsock/
DREADME3 These tests exercise net/vmw_vsock/ host<->guest sockets for VMware, KVM, and
15 2. Install the kernel and tests on the host.
21 # host=server, guest=client
22 (host)# $TEST_BINARY --mode=server \
26 --control-host=$HOST_IP \
30 # host=client, guest=server
34 (host)# $TEST_BINARY --mode=client \
/tools/perf/Documentation/
Dperf-kvm.txt11 'perf kvm' [--host] [--guest] [--guestmount=<path>
14 'perf kvm' [--host] [--guest] [--guestkallsyms=<path> --guestmodules=<path>
28 default behavior of perf kvm as --guest, so if neither --host nor --guest
29 is input, the perf data file name is perf.data.guest. If --host is input,
31 perf.data.host, please input --host --no-guest. The behaviors are shown as
34 --host -> perf.data.kvm
36 --host --guest -> perf.data.kvm
37 --host --no-guest -> perf.data.host
76 --host::
77 Collect host side performance profile.
[all …]
/tools/virtio/virtio-trace/
DREADME15 3) A controller thread does poll() for a start order of a host.
16 4) After the controller of the trace agent receives a start order from a host,
20 6) If the controller receives a stop order from a host, the read/write threads
41 1) Make FIFO in a host
53 2) Set up of virtio-serial pipe in a host
103 read/write threads in the agent wait for start order from host. If you add -o
106 3) Open FIFO in a host
108 If a host does not open these, trace data get stuck in buffers of virtio. Then,
112 4) Start to read trace data by ordering from a host
113 A host injects read start order to the guest via virtio-serial.
[all …]
/tools/build/
DMakefile.build100 host = host_
106 $(call if_changed_dep,$(host)cc_o_c)
114 $(call if_changed_dep,$(host)cc_o_c)
132 $(call if_changed_dep,$(host)cc_o_c)
136 $(call if_changed_dep,$(host)cc_o_c)
168 $(call if_changed,$(host)ld_multi)
/tools/testing/selftests/wireguard/qemu/
DMakefile63 QEMU_MACHINE := -cpu host -machine virt,gic_version=host,accel=kvm
75 QEMU_MACHINE := -cpu host -machine virt,gic_version=host,accel=kvm
87 QEMU_MACHINE := -cpu host -machine virt,gic_version=host,accel=kvm
99 QEMU_MACHINE := -cpu host -machine virt,gic_version=host,accel=kvm
112 QEMU_MACHINE := -cpu host -machine microvm,accel=kvm,pit=off,pic=off,rtc=off,acpi=off
123 QEMU_MACHINE := -cpu host -machine microvm,accel=kvm,pit=off,pic=off,rtc=off,acpi=off
133 QEMU_MACHINE := -cpu host -machine malta,accel=kvm
145 QEMU_MACHINE := -cpu host -machine malta,accel=kvm
157 QEMU_MACHINE := -cpu host -machine malta,accel=kvm
169 QEMU_MACHINE := -cpu host -machine malta,accel=kvm
[all …]
/tools/testing/cxl/
Dmock_acpi.c10 struct acpi_device *to_cxl_host_bridge(struct device *host, struct device *dev) in to_cxl_host_bridge() argument
30 dev_dbg(host, "found host bridge %s\n", dev_name(&adev->dev)); in to_cxl_host_bridge()
/tools/testing/selftests/net/forwarding/
Dsch_tbf_core.sh51 local host=$1; shift
54 echo 192.0.2.$((16 * (vlan - 10) + host))
60 local host=$1; shift
65 vlan_create $dev 10 v$dev $(ipaddr $host 10)/28
68 vlan_create $dev 11 v$dev $(ipaddr $host 11)/28
/tools/usb/usbip/
DREADME19 - usbip-host (stub driver)
69 server:# insmod usbip-host.ko
78 - Bind usbip-host.ko to the device with busid 1-2.
109 client:# usbip list --remote <host>
110 - List exported USB devices on the <host>.
112 client:# usbip attach --remote <host> --busid 1-2
128 Physically attach your USB devices to this host.
131 trois:# insmod path/to/usbip-host.ko
135 attached to this host.
166 "exportable"; the device is bound to the usbip-host driver. Please
[all …]
/tools/testing/selftests/arm64/fp/
DREADME69 running on the host.
84 commands on the host.
86 Within the guest, the host filesystem is accessible, mounted on /host.
91 3) Run the sve-stress on the host with the maximum Vector-Length:
92 host$ ./vlset --inherit --max ./sve-stress
/tools/testing/selftests/drivers/net/lib/py/
Dremote_ssh.py19 cmd("rm -rf " + self._tmpdir, host=self)
32 cmd("mkdir " + self._tmpdir, host=self)
Dload.py19 background=True, host=env.remote)
67 data = cmd("cat /proc/net/tcp*", host=self.env.remote).stdout
Denv.py214 def _require_cmd(self, comm, key, host=None): argument
218 shell=True, host=host).ret == 0
227 if not self._require_cmd(comm, "remote", host=self.remote):
/tools/usb/usbip/libsrc/
Dvhci_driver.c187 static int read_record(int rhport, char *host, unsigned long host_len, in read_record() argument
230 if (sscanf(buffer, "%s %s %s\n", host, port, busid) != 3) { in read_record()
429 char host[NI_MAXHOST] = "unknown host"; in usbip_vhci_imported_device_dump() local
438 ret = read_record(idev->port, host, sizeof(host), serv, sizeof(serv), in usbip_vhci_imported_device_dump()
456 host, serv, remote_busid); in usbip_vhci_imported_device_dump()
/tools/testing/selftests/drivers/net/hw/
Dcsum.py27 cmd(tx_cmd, host=cfg.remote)
49 with bkg(rx_cmd, host=cfg.remote, exit_wait=True):
50 wait_port_listen(34000, proto="udp", host=cfg.remote)
/tools/testing/selftests/sched_ext/
DMakefile34 DEFAULT_BPFTOOL := $(OUTPUT_DIR)/host/sbin/bpftool
35 HOST_OBJ_DIR := $(OBJ_DIR)/host/bpftool
36 HOST_LIBBPF_OUTPUT := $(OBJ_DIR)/host/libbpf/
37 HOST_LIBBPF_DESTDIR := $(OUTPUT_DIR)/host/
38 HOST_DESTDIR := $(OUTPUT_DIR)/host/

1234