Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 38) sorted by relevance

12

/tools/testing/selftests/net/forwarding/
Ddevlink_lib.sh8 DEVLINK_DEV=$(devlink port show "${NETIFS[p1]}" -j \
111 local port=$1; shift
114 devlink sb port pool show $port pool $pool -j \
115 | jq '.port_pool."'"$port"'"[].threshold'
120 local port=$1; shift
123 local key="port_pool($port,$pool).threshold"
125 DEVLINK_ORIG[$key]=$(devlink_port_pool_threshold $port $pool)
126 devlink sb port pool set $port pool $pool th $th
131 local port=$1; shift
133 local key="port_pool($port,$pool).threshold"
[all …]
/tools/testing/selftests/x86/
Dioperm.c55 static bool try_outb(unsigned short port) in try_outb() argument
62 : : [port] "Nd" (port), "a" (0)); in try_outb()
68 static void expect_ok(unsigned short port) in expect_ok() argument
70 if (!try_outb(port)) { in expect_ok()
71 printf("[FAIL]\toutb to 0x%02hx failed\n", port); in expect_ok()
75 printf("[OK]\toutb to 0x%02hx worked\n", port); in expect_ok()
78 static void expect_gp(unsigned short port) in expect_gp() argument
80 if (try_outb(port)) { in expect_gp()
81 printf("[FAIL]\toutb to 0x%02hx worked\n", port); in expect_gp()
85 printf("[OK]\toutb to 0x%02hx failed\n", port); in expect_gp()
/tools/usb/usbip/src/
Dusbip_detach.c32 static int detach_port(char *port) in detach_port() argument
41 unsigned int port_len = strlen(port); in detach_port()
44 if (!isdigit(port[i])) { in detach_port()
45 err("invalid port %s", port); in detach_port()
49 portnum = atoi(port); in detach_port()
61 if (idev->port == portnum) { in detach_port()
65 info("Port %d is already detached!\n", idev->port); in detach_port()
72 port, vhci_driver->nports); in detach_port()
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()
84 int port; in import_device() local
94 port = usbip_vhci_get_free_port(speed); in import_device()
95 if (port < 0) { in import_device()
100 dbg("got free port %d", port); in import_device()
102 rc = usbip_vhci_attach_device(port, sockfd, udev->busnum, in import_device()
112 return port; in import_device()
Dusbip_network.c30 unsigned long int port = strtoul(arg, &end, 10); in usbip_setup_port_number() local
42 if (port > UINT16_MAX) { in usbip_setup_port_number()
48 usbip_port = port; in usbip_setup_port_number()
Dusbipd.c313 char host[NI_MAXHOST], port[NI_MAXSERV]; in do_accept() local
325 port, sizeof(port), NI_NUMERICHOST | NI_NUMERICSERV); in do_accept()
337 info("connection from %s:%s", host, port); in do_accept()
/tools/usb/usbip/libsrc/
Dvhci_driver.c52 int port, status, speed, devid; in parse_status() local
59 hub, &port, &status, &speed, in parse_status()
68 hub, port, status, speed, devid); in parse_status()
72 idev = &vhci_driver->idev[port]; in parse_status()
80 idev->port = port; in parse_status()
188 char *port, unsigned long port_len, char *busid) in read_record() argument
230 if (sscanf(buffer, "%s %s %s\n", host, port, busid) != 3) { in read_record()
351 return vhci_driver->idev[i].port; in usbip_vhci_get_free_port()
357 int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid, in usbip_vhci_attach_device2() argument
366 port, sockfd, devid, speed); in usbip_vhci_attach_device2()
[all …]
Dvhci_driver.h24 uint8_t port; member
56 int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid,
60 int usbip_vhci_attach_device(uint8_t port, int sockfd, uint8_t busnum,
63 int usbip_vhci_detach_device(uint8_t port);
/tools/testing/vsock/
DREADME22 --control-port=1234 \
26 --control-port=1234 \
31 --control-port=1234 \
34 --control-port=$GUEST_IP \
35 --control-port=1234 \
Dvsock_diag_test.c89 static void print_vsock_addr(FILE *fp, unsigned int cid, unsigned int port) in print_vsock_addr() argument
96 if (port == VMADDR_PORT_ANY) in print_vsock_addr()
99 fprintf(fp, "%u", port); in print_vsock_addr()
/tools/testing/selftests/drivers/usb/usbip/
Dusbip_test.sh121 src/usbip port;
137 src/usbip port;
149 src/usbip port;
162 src/usbip port;
/tools/testing/selftests/drivers/net/mlxsw/
Dvxlan_fdb_veto.sh72 dst 198.51.100.2 port 1234 2>/dev/null
76 dst 198.51.100.2 port 1234 2>&1 >/dev/null \
92 dst 198.51.100.3 port 1234 2>/dev/null
96 dst 198.51.100.3 port 1234 2>&1 >/dev/null \
/tools/testing/selftests/net/
Dpsock_lib.h75 static __maybe_unused void pair_udp_open(int fds[], uint16_t port) in pair_udp_open() argument
88 saddr.sin_port = htons(port); in pair_udp_open()
93 daddr.sin_port = htons(port + 1); in pair_udp_open()
Dtcp_inq.c34 static int port = 4974; variable
46 addr4->sin_port = htons(port); in setup_loopback_addr()
52 addr6->sin6_port = htons(port); in setup_loopback_addr()
119 port = atoi(optarg); in main()
Dnettest.c67 unsigned short port; member
241 sin.sin_port = htons(args->port); in tcp_md5_remote()
247 sin6.sin6_port = htons(args->port); in tcp_md5_remote()
1012 .sin_port = htons(args->port), in msock_init()
1086 serv_addr.sin_port = htons(args->port); in bind_socket()
1093 serv6_addr.sin6_port = htons(args->port); in bind_socket()
1360 sin.sin_port = htons(args->port); in do_client()
1369 sin6.sin6_port = htons(args->port); in do_client()
1571 .port = DEFAULT_PORT, in main()
1608 args.port = (unsigned short) tmp; in main()
[all …]
Dreuseport_bpf.c45 static struct sockaddr *new_any_sockaddr(int family, uint16_t port) in new_any_sockaddr() argument
59 addr4->sin_port = htons(port); in new_any_sockaddr()
65 addr6->sin6_port = htons(port); in new_any_sockaddr()
73 static struct sockaddr *new_loopback_sockaddr(int family, uint16_t port) in new_loopback_sockaddr() argument
75 struct sockaddr *addr = new_any_sockaddr(family, port); in new_loopback_sockaddr()
/tools/testing/selftests/kvm/x86_64/
Dvmx_close_while_nested_test.c34 : : [port] "d" (PORT_L0_EXIT) : "rax"); in l2_guest_code()
76 if (run->io.port == PORT_L0_EXIT) in main()
/tools/testing/selftests/kvm/lib/x86_64/
Ducall.c35 : : [port] "d" (UCALL_PIO_PORT), "D" (&uc) : "rax", "memory"); in ucall()
43 if (run->exit_reason == KVM_EXIT_IO && run->io.port == UCALL_PIO_PORT) { in get_ucall()
/tools/usb/usbip/
DREADME117 client:# usbip port
118 - Show virtual port status.
120 client:# usbip detach --port <port>
224 port 0 attached
228 deux:# usbip port
239 deux:# usbip detach --port 0
240 port 0 detached
251 - usbip now uses TCP port 3240.
/tools/testing/selftests/bpf/
Dtest_sock.c37 unsigned short port; member
355 static int bind_sock(int domain, int type, const char *ip, unsigned short port) in bind_sock() argument
374 addr4->sin_port = htons(port); in bind_sock()
381 addr6->sin6_port = htons(port); in bind_sock()
420 if (bind_sock(test->domain, test->type, test->ip, test->port) == -1) { in run_test_case()
Dtest_tc_tunnel.sh7 readonly port=8000
72 ip netns exec "${ns2}" nc "${netcat_opt}" -l -p "${port}" > "${outfile}" &
78 ip netns exec "${ns1}" timeout 2 nc "${netcat_opt}" -w 1 "${addr2}" "${port}" < "${infile}"
213 ip netns exec "${ns2}" ip fou add port $dport ipproto ${dproto}
Dtest_flow_dissector.c83 #define INIT_ADDR4(name, addr4, port) \ argument
86 .sin_port = __constant_htons(port), \
90 #define INIT_ADDR6(name, addr6, port) \ argument
93 .sin6_port = __constant_htons(port), \
/tools/power/pm-graph/config/
Dcustom-timeline-functions.cfg164 # example: ata{port}_port_reset
175 # example: port=+36(%di):s32
177 # Example: Display ATA port reset as ataN_port_reset in the timeline
179 # ata_eh_recover: ata{port}_port_reset port=+36(%di):s32
187 ata_eh_recover: ata_eh_recover port=+36(%di):s32
/tools/testing/selftests/cgroup/
Dtest_memcontrol.c817 unsigned short port; member
833 saddr.sin6_port = htons(srv_args->port); in tcp_server()
878 static int tcp_client(const char *cgroup, unsigned short port) in tcp_client() argument
886 snprintf(servport, sizeof(servport), "%hd", port); in tcp_client()
940 unsigned short port; in test_memcg_sock() local
956 port = args.port = 1000 + rand() % 60000; in test_memcg_sock()
980 if (tcp_client(memcg, port) != KSFT_PASS) in test_memcg_sock()
/tools/testing/selftests/networking/timestamping/
Drxtimestamp.c274 int port = (s.type == SOCK_RAW) ? 0 : next_port++; in run_test_case() local
291 addr.sin_port = htons(port); in run_test_case()
294 error(1, errno, "Failed to bind to port %d", port); in run_test_case()

12