Home
last modified time | relevance | path

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

1234

/tools/testing/selftests/net/
Ddevlink_port_split.py64 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/
Dudp_tunnel_nic.sh109 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/
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()
Diopl.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_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/
Ddevlink_lib.sh11 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/
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()
/tools/testing/selftests/drivers/net/mlxsw/
Dport_scale.sh21 for port in "${unsplit[@]}"; do
22 devlink port unsplit $port
38 devlink -j port show |
43 devlink port split $netdev count $count
Dsharedbuffer_configuration.py233 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/
Dnft_conntrack_helper.sh95 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 …]
Dipvs.sh34 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/
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/selftests/bpf/prog_tests/
Dconnect_force_port.c12 __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()
Dsk_assign.c127 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 …]
Dcgroup_v1v2.c49 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/
Dutil.h38 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,
Dutil.c87 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 …]
DREADME23 --control-port=1234 \
27 --control-port=1234 \
32 --control-port=1234 \
35 --control-port=$GUEST_IP \
36 --control-port=1234 \
/tools/perf/Documentation/
Dperf-iostat.txt16 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
61port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB)
80port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB)
/tools/testing/selftests/net/mptcp/
Dsimult_flows.sh117 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 …]
Dmptcp_sockopt.sh172 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/
Dusbip_test.sh121 src/usbip port;
137 src/usbip port;
149 src/usbip port;
162 src/usbip port;
/tools/testing/selftests/bpf/
Dnetwork_helpers.h43 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/
Dconnect_force_port4.c20 __be16 port; member
52 orig->port = ctx->user_port; in connect4()
87 ctx->user_port = orig->port; in getpeername4()

1234