/tools/testing/selftests/net/forwarding/ |
D | ipip_lib.sh | 320 local mtu=$1 322 ip link set mtu $mtu dev $h1 323 ip link set mtu $mtu dev $ol1 324 ip link set mtu $mtu dev g1a 325 ip link set mtu $mtu dev $ul1 326 ip link set mtu $mtu dev $ul1.111 327 ip link set mtu $mtu dev $h2 328 ip link set mtu $mtu dev $ol2 329 ip link set mtu $mtu dev g2a 330 ip link set mtu $mtu dev $ul2 [all …]
|
D | ip6gre_lib.sh | 411 local mtu=$1 413 ip link set mtu $mtu dev $h1 414 ip link set mtu $mtu dev $ol1 415 ip link set mtu $mtu dev g1a 416 ip link set mtu $mtu dev $ul1 417 ip link set mtu $mtu dev $ul1.111 418 ip link set mtu $mtu dev $h2 419 ip link set mtu $mtu dev $ol2 420 ip link set mtu $mtu dev g2a 421 ip link set mtu $mtu dev $ul2 [all …]
|
/tools/testing/selftests/net/ |
D | pmtu.sh | 950 mtu() { function 953 mtu="${3}" 955 ${ns_cmd} ip link set dev ${dev} mtu ${mtu} 1037 mtu "${ns_a}" veth_A-R1 2000 1038 mtu "${ns_r1}" veth_R1-A 2000 1039 mtu "${ns_r1}" veth_R1-B 1400 1040 mtu "${ns_b}" veth_B-R1 1400 1042 mtu "${ns_a}" veth_A-R2 2000 1043 mtu "${ns_r2}" veth_R2-A 2000 1044 mtu "${ns_r2}" veth_R2-B 1500 [all …]
|
D | fib_nexthop_multiprefix.sh | 156 local mtu=$2 158 run_cmd ip -netns h${hostid} li set eth0 mtu ${mtu} 159 run_cmd ip -netns r1 li set eth${hostid} mtu ${mtu} 168 local mtu=$2 183 echo " cache .* mtu ${mtu}" 188 grep -q "cache .* mtu ${mtu}" 191 log_test $rc 0 "IPv4: host 0 to host ${i}, mtu ${mtu}" 197 local mtu=$2 212 echo " ${dst}.* via ${r1} dev eth0 src ${h0} .* mtu ${mtu}" 217 grep -q "${dst}.* via ${r1} dev eth0 src ${h0} .* mtu ${mtu}" [all …]
|
D | udpgso.c | 291 static void __set_device_mtu(int fd, const char *ifname, unsigned int mtu) in __set_device_mtu() argument 297 ifr.ifr_mtu = mtu; in __set_device_mtu() 304 static void set_device_mtu(int fd, int mtu) in set_device_mtu() argument 311 __set_device_mtu(fd, cfg_ifname, mtu); in set_device_mtu() 313 if (val != mtu) in set_device_mtu() 340 unsigned int mtu; in get_path_mtu() local 343 vallen = sizeof(mtu); in get_path_mtu() 345 ret = getsockopt(fd, SOL_IP, IP_MTU, &mtu, &vallen); in get_path_mtu() 347 ret = getsockopt(fd, SOL_IPV6, IPV6_MTU, &mtu, &vallen); in get_path_mtu() 353 fprintf(stderr, "path mtu (read): %u\n", mtu); in get_path_mtu() [all …]
|
D | icmp_redirect.sh | 279 local mtu=$1 281 run_cmd ip -netns h2 li set eth0 mtu ${mtu} 282 run_cmd ip -netns r2 li set eth2 mtu ${mtu} 287 local mtu="$1" 298 if [ -n "${mtu}" ]; then 299 mtu=" mtu ${mtu}" 303 grep -q "cache <redirected> expires [0-9]*sec${mtu}" 304 elif [ -n "${mtu}" ]; then 306 grep -q "cache expires [0-9]*sec${mtu}" 320 elif [ -n "${mtu}" ]; then [all …]
|
D | psock_snd.sh | 8 readonly mtu=1500 15 readonly mss="$((${mtu} - ${iphlen} - ${udphlen}))"
|
D | io_uring_zerocopy_tx.sh | 96 ip link add "${DEV}" mtu "${DEV_MTU}" netns "${NS1}" type veth \ 97 peer name "${DEV}" mtu "${DEV_MTU}" netns "${NS2}"
|
D | msg_zerocopy.sh | 90 ip link add "${DEV}" mtu "${DEV_MTU}" netns "${NS1}" type veth \ 91 peer name "${DEV}" mtu "${DEV_MTU}" netns "${NS2}"
|
D | setup_veth.sh | 12 ip link set dev "${ns_dev}" netns "${ns_name}" mtu 65535
|
/tools/testing/selftests/bpf/prog_tests/ |
D | check_mtu.c | 104 static void test_check_mtu_xdp(__u32 mtu, __u32 ifindex) in test_check_mtu_xdp() argument 114 skel->rodata->GLOBAL_USER_MTU = mtu; in test_check_mtu_xdp() 121 test_check_mtu_run_xdp(skel, skel->progs.xdp_use_helper, mtu); in test_check_mtu_xdp() 122 test_check_mtu_run_xdp(skel, skel->progs.xdp_exceed_mtu, mtu); in test_check_mtu_xdp() 123 test_check_mtu_run_xdp(skel, skel->progs.xdp_minus_delta, mtu); in test_check_mtu_xdp() 124 test_check_mtu_run_xdp(skel, skel->progs.xdp_input_len, mtu); in test_check_mtu_xdp() 125 test_check_mtu_run_xdp(skel, skel->progs.xdp_input_len_exceed, mtu); in test_check_mtu_xdp() 157 static void test_check_mtu_tc(__u32 mtu, __u32 ifindex) in test_check_mtu_tc() argument 167 skel->rodata->GLOBAL_USER_MTU = mtu; in test_check_mtu_tc() 174 test_check_mtu_run_tc(skel, skel->progs.tc_use_helper, mtu); in test_check_mtu_tc() [all …]
|
/tools/testing/selftests/net/mptcp/ |
D | simult_flows.sh | 80 ip -net "$ns1" link set ns1eth1 up mtu 1500 86 ip -net "$ns1" link set ns1eth2 up mtu 1500 95 ip -net "$ns2" link set ns2eth1 up mtu 1500 99 ip -net "$ns2" link set ns2eth2 up mtu 1500 103 ip -net "$ns2" link set ns2eth3 up mtu 1500 109 ip -net "$ns3" link set ns3eth1 up mtu 1500
|
/tools/testing/selftests/netfilter/ |
D | ipip-conntrack-mtu.sh | 160 ip -net ${r_w} link set dev veth0 up mtu 1400 161 ip -net ${r_w} link set dev veth1 up mtu 1400 163 ip -net ${r_a} link set dev veth0 mtu 1400 164 ip -net ${r_b} link set dev veth0 mtu 1400
|
D | Makefile | 8 ipip-conntrack-mtu.sh conntrack_tcp_unreplied.sh \
|
D | nft_flowtable.sh | 110 if ! ip -net $nsr1 link set veth0 mtu $omtu; then 114 ip -net $ns1 link set eth0 mtu $omtu 116 if ! ip -net $nsr2 link set veth1 mtu $rmtu; then 120 ip -net $ns2 link set eth0 mtu $rmtu
|
/tools/testing/selftests/wireguard/ |
D | netns.sh | 159 [[ $(ip1 link show dev wg0) =~ mtu\ ([0-9]+) ]] && orig_mtu="${BASH_REMATCH[1]}" 179 ip1 link set wg0 mtu $big_mtu 180 ip2 link set wg0 mtu $big_mtu 183 ip1 link set wg0 mtu $orig_mtu 184 ip2 link set wg0 mtu $orig_mtu 190 ip1 link set wg0 mtu $big_mtu 191 ip2 link set wg0 mtu $big_mtu 195 ip1 link set wg0 mtu 1300 196 ip2 link set wg0 mtu 1300 200 n1 ip route add 192.168.241.2/32 dev wg0 mtu 1299 [all …]
|
/tools/testing/selftests/bpf/ |
D | test_xsk.sh | 128 ip link set ${VETH1} mtu ${MTU} 129 ip link set ${VETH0} mtu ${MTU}
|
D | test_tc_tunnel.sh | 32 ip link add dev veth1 mtu 1500 netns "${ns1}" type veth \ 33 peer name veth2 mtu 1500 netns "${ns2}" 48 ip -netns "${ns1}" -4 route add "${ns2_v4}" mtu 1450 dev veth1 49 ip -netns "${ns1}" -6 route add "${ns2_v6}" mtu 1430 dev veth1
|
D | xskxceiver.h | 158 int mtu; member 185 int mtu; member
|
D | xsk_prereqs.sh | 58 ip link set $1 mtu $2
|
D | xskxceiver.c | 258 if (ifobject->pkt_stream && ifobject->mtu > MAX_ETH_PKT_SIZE) in __xsk_configure_socket() 422 test->mtu = MAX_ETH_PKT_SIZE; in __test_spec_init() 476 static int test_spec_set_mtu(struct test_spec *test, int mtu) in test_spec_set_mtu() argument 480 if (test->ifobj_rx->mtu != mtu) { in test_spec_set_mtu() 481 err = xsk_set_mtu(test->ifobj_rx->ifindex, mtu); in test_spec_set_mtu() 484 test->ifobj_rx->mtu = mtu; in test_spec_set_mtu() 486 if (test->ifobj_tx->mtu != mtu) { in test_spec_set_mtu() 487 err = xsk_set_mtu(test->ifobj_tx->ifindex, mtu); in test_spec_set_mtu() 490 test->ifobj_tx->mtu = mtu; in test_spec_set_mtu() 1601 if (test->mtu > MAX_ETH_PKT_SIZE) { in __testapp_validate_traffic() [all …]
|
D | xsk.c | 390 int xsk_set_mtu(int ifindex, int mtu) in xsk_set_mtu() argument 409 req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) + RTA_LENGTH(sizeof(mtu)); in xsk_set_mtu() 410 memcpy(RTA_DATA(rta), &mtu, sizeof(mtu)); in xsk_set_mtu()
|
D | test_tunnel.sh | 63 ip link set dev veth1 up mtu 1500 449 ip link set dev veth1 mtu 1500 474 ip link set dev veth1 mtu 1500 502 ip link set dev veth1 mtu 1500
|
/tools/testing/selftests/drivers/net/bonding/ |
D | bond-break-lacpdu-tx.sh | 40 ip link add fab-br0 address 52:54:00:3B:7C:A6 mtu 1500 type bridge \
|
/tools/testing/selftests/bpf/progs/ |
D | core_kern.c | 37 *val = bpf_get_prandom_u32() + v + dev->mtu; in randmap()
|