/tools/testing/selftests/net/ |
D | devlink_port_split.py | 64 for port in ports: 65 if dev in port: 66 if ports[port]['flavour'] == 'physical': 67 arr.append(Port(bus_info=port, name=ports[port]['netdev'])) 75 def get_max_lanes(port): argument 81 cmd = "devlink -j port show %s" % port 93 def get_split_ability(port): argument 99 cmd = "devlink -j port show %s" % port.name 107 def split(k, port, should_fail=False): argument 115 cmd = "devlink port split %s count %s" % (port.bus_info, k) [all …]
|
/tools/testing/selftests/drivers/net/netdevsim/ |
D | udp_tunnel_nic.sh | 109 local port=$1 112 echo $((port << 16 | type)) 123 local port=$((val >> 16)) 141 echo "port $port, $type_name" 145 local path=$NSIM_DEV_DFS/ports/$port/udp_ports_table$1 161 err_cnt "ethtool table $1 on port $port: $pfx - $msg" 171 err_cnt "table $1 on port $port: $pfx - $msg" 215 local path=$NSIM_DEV_DFS/ports/$port/udp_ports_table$1 220 echo "Port $port table $1:" 262 for port in 0 1; do [all …]
|
/tools/testing/selftests/x86/ |
D | ioperm.c | 55 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()
|
D | iopl.c | 55 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_outb(unsigned short port) in expect_ok_outb() argument 70 if (!try_outb(port)) { in expect_ok_outb() 71 printf("[FAIL]\toutb to 0x%02hx failed\n", port); in expect_ok_outb() 75 printf("[OK]\toutb to 0x%02hx worked\n", port); in expect_ok_outb() 78 static void expect_gp_outb(unsigned short port) in expect_gp_outb() argument 80 if (try_outb(port)) { in expect_gp_outb() 81 printf("[FAIL]\toutb to 0x%02hx worked\n", port); in expect_gp_outb() 85 printf("[OK]\toutb to 0x%02hx failed\n", port); in expect_gp_outb()
|
/tools/testing/selftests/net/forwarding/ |
D | devlink_lib.sh | 11 DEVLINK_DEV=$(devlink port show "${NETIFS[p1]:-$NETIF_NO_CABLE}" -j \ 137 local port=$1; shift 140 devlink sb port pool show $port pool $pool -j \ 141 | jq '.port_pool."'"$port"'"[].threshold' 146 local port=$1; shift 148 local key="port_pool($port,$pool).threshold" 150 DEVLINK_ORIG[$key]=$(devlink_port_pool_threshold $port $pool) 155 local port=$1; shift 159 devlink sb port pool set $port pool $pool th $th 164 local port=$1; shift [all …]
|
/tools/usb/usbip/src/ |
D | usbip_detach.c | 32 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()
|
D | usbip_attach.c | 39 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()
|
/tools/testing/selftests/drivers/net/mlxsw/ |
D | port_scale.sh | 21 for port in "${unsplit[@]}"; do 22 devlink port unsplit $port 38 devlink -j port show | 43 devlink port split $netdev count $count
|
D | sharedbuffer_configuration.py | 233 def __init__(self, port, d): argument 235 self["dlportname"] = port.name 252 for port in ports: 254 if port.name not in d["tc_bind"] or len(d["tc_bind"][port.name]) == 0: 257 for tcbinddict in d["tc_bind"][port.name]: 258 tcbinds.append(TcBind(port, tcbinddict)) 260 log_test("tc bind existence for port {} verification".format(port.name), err_msg) 307 def __init__(self, port, d): argument 309 self["dlportname"] = port.name 324 for port in ports: [all …]
|
/tools/testing/selftests/netfilter/ |
D | nft_conntrack_helper.sh | 95 local port=$3 103 …ip netns exec ${netns} conntrack -L -f $family -p tcp --dport $port 2> /dev/null |grep -q 'helper=… 109 echo "PASS: ${netns} connection on port $port has ftp helper attached" 1>&2 115 local port=$1 118 sleep 3 | ip netns exec ${ns2} nc -w 2 -l -p $port > /dev/null & 120 sleep 1 | ip netns exec ${ns1} nc -w 2 10.0.1.2 $port > /dev/null & 123 check_for_helper "$ns1" "ip $msg" $port 124 check_for_helper "$ns2" "ip $msg" $port 135 sleep 3 | ip netns exec ${ns2} nc -w 2 -6 -l -p $port > /dev/null & 137 sleep 1 | ip netns exec ${ns1} nc -w 2 -6 dead:1::2 $port > /dev/null & [all …]
|
D | ipvs.sh | 34 readonly port=8080 123 ip netns exec ns0 timeout 2 nc -w 1 ${vip_v4} ${port} < "${infile}" 142 ip netns exec ns1 ipvsadm -A -t ${vip_v4}:${port} -s rr 143 ip netns exec ns1 ipvsadm -a -t ${vip_v4}:${port} -r ${rip_v4}:${port} 161 ip netns exec ns1 ipvsadm -A -t ${vip_v4}:${port} -s rr 162 ip netns exec ns1 ipvsadm -a -m -t ${vip_v4}:${port} -r ${rip_v4}:${port} 179 ip netns exec ns1 ipvsadm -A -t ${vip_v4}:${port} -s rr 180 ip netns exec ns1 ipvsadm -a -i -t ${vip_v4}:${port} -r ${rip_v4}:${port}
|
/tools/usb/usbip/libsrc/ |
D | vhci_driver.c | 52 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 …]
|
D | vhci_driver.h | 24 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/selftests/bpf/prog_tests/ |
D | connect_force_port.c | 12 __u16 port; in verify_ports() local 20 port = ((struct sockaddr_in *)&addr)->sin_port; in verify_ports() 22 port = ((struct sockaddr_in6 *)&addr)->sin6_port; in verify_ports() 24 if (ntohs(port) != expected_local) { in verify_ports() 25 log_err("Unexpected local port %d, expected %d", ntohs(port), in verify_ports() 36 port = ((struct sockaddr_in *)&addr)->sin_port; in verify_ports() 38 port = ((struct sockaddr_in6 *)&addr)->sin6_port; in verify_ports() 40 if (ntohs(port) != expected_peer) { in verify_ports() 41 log_err("Unexpected peer port %d, expected %d", ntohs(port), in verify_ports()
|
D | sk_assign.c | 127 in_port_t port = 0; in get_port() local 130 return port; in get_port() 134 port = ((struct sockaddr_in *)&ss)->sin_port; in get_port() 137 port = ((struct sockaddr_in6 *)&ss)->sin6_port; in get_port() 142 return port; in get_port() 161 in_port_t port; in run_test() local 188 port = get_port(srv_client); in run_test() 189 if (CHECK_FAIL(!port)) in run_test() 198 CHECK(port != htons(CONNECT_PORT), "Expected", "port %u but got %u", in run_test() 199 CONNECT_PORT, ntohs(port))) in run_test() [all …]
|
D | cgroup_v1v2.c | 49 static const int port = 60123; in test_cgroup_v1v2() local 52 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, port, 0); in test_cgroup_v1v2() 67 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, port, 0); in test_cgroup_v1v2()
|
/tools/testing/vsock/ |
D | util.h | 38 int vsock_stream_connect(unsigned int cid, unsigned int port); 39 int vsock_seqpacket_connect(unsigned int cid, unsigned int port); 40 int vsock_stream_accept(unsigned int cid, unsigned int port, 42 int vsock_seqpacket_accept(unsigned int cid, unsigned int port,
|
D | util.c | 87 static int vsock_connect(unsigned int cid, unsigned int port, int type) in vsock_connect() argument 95 .svm_port = port, in vsock_connect() 123 int vsock_stream_connect(unsigned int cid, unsigned int port) in vsock_stream_connect() argument 125 return vsock_connect(cid, port, SOCK_STREAM); in vsock_stream_connect() 128 int vsock_seqpacket_connect(unsigned int cid, unsigned int port) in vsock_seqpacket_connect() argument 130 return vsock_connect(cid, port, SOCK_SEQPACKET); in vsock_seqpacket_connect() 136 static int vsock_accept(unsigned int cid, unsigned int port, in vsock_accept() argument 145 .svm_port = port, in vsock_accept() 202 int vsock_stream_accept(unsigned int cid, unsigned int port, in vsock_stream_accept() argument 205 return vsock_accept(cid, port, clientaddrp, SOCK_STREAM); in vsock_stream_accept() [all …]
|
D | README | 23 --control-port=1234 \ 27 --control-port=1234 \ 32 --control-port=1234 \ 35 --control-port=$GUEST_IP \ 36 --control-port=1234 \
|
/tools/perf/Documentation/ |
D | perf-iostat.txt | 16 Mode is intended to provide four I/O performance metrics per each PCIe root port: 18 - Inbound Read - I/O devices below root port read from the host memory, in MB 20 - Inbound Write - I/O devices below root port write to the host memory, in MB 22 - Outbound Read - CPU reads from I/O devices below root port, in MB 24 - Outbound Write - CPU writes to I/O devices below root port, in MB 61 … port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB) 80 … port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB)
|
/tools/testing/selftests/net/mptcp/ |
D | simult_flows.sh | 117 local port="${2}" 121 port_hex="$(printf "%04X" "${port}")" 135 local port 136 port=$((10000+$test_cnt)) 144 addr_port=$(printf "%s:%d" ${connect_addr} ${port}) 154 local capfile="${rndh}-${port}" 168 ./mptcp_connect -jt ${timeout_poll} -l -p $port -T $time \ 172 wait_local_port_listen "${ns3}" "${port}" 176 ./mptcp_connect -jt ${timeout_poll} -p $port -T $time \ 206 echo -e "\nnetns ${ns3} socket stat for $port:" 1>&2 [all …]
|
D | mptcp_sockopt.sh | 172 port=12001 188 $mptcp_connect -t ${timeout_poll} -l -M 1 -p $port -s ${srv_proto} -c TIMESTAMPNS \ 196 $mptcp_connect -t ${timeout_poll} -M 2 -p $port -s ${cl_proto} -c TIMESTAMPNS \ 208 echo -e "\nnetns ${listener_ns} socket stat for ${port}:" 1>&2 209 ip netns exec ${listener_ns} ss -Menita 1>&2 -o "sport = :$port" 211 echo -e "\nnetns ${connector_ns} socket stat for ${port}:" 1>&2 212 ip netns exec ${connector_ns} ss -Menita 1>&2 -o "dport = :$port"
|
/tools/testing/selftests/drivers/usb/usbip/ |
D | usbip_test.sh | 121 src/usbip port; 137 src/usbip port; 149 src/usbip port; 162 src/usbip port;
|
/tools/testing/selftests/bpf/ |
D | network_helpers.h | 43 int start_server(int family, int type, const char *addr, __u16 port, 46 __u16 port, int timeout_ms, 54 int make_sockaddr(int family, const char *addr_str, __u16 port,
|
/tools/testing/selftests/bpf/progs/ |
D | connect_force_port4.c | 20 __be16 port; member 52 orig->port = ctx->user_port; in connect4() 87 ctx->user_port = orig->port; in getpeername4()
|