/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 | lib.sh | 862 local mtu=$1; shift 865 ip link set dev $dev mtu $mtu 872 ip link set dev $dev mtu ${MTU_ORIG["$dev"]}
|
D | tc_police.sh | 360 action police mtu 1042 conform-exceed drop/ok
|
/tools/testing/selftests/net/ |
D | pmtu.sh | 918 mtu() { function 921 mtu="${3}" 923 ${ns_cmd} ip link set dev ${dev} mtu ${mtu} 999 mtu "${ns_a}" veth_A-R1 2000 1000 mtu "${ns_r1}" veth_R1-A 2000 1001 mtu "${ns_r1}" veth_R1-B 1400 1002 mtu "${ns_b}" veth_B-R1 1400 1004 mtu "${ns_a}" veth_A-R2 2000 1005 mtu "${ns_r2}" veth_R2-A 2000 1006 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 | 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
|
D | vrf_route_leaking.sh | 266 ip -netns r1 link set mtu 1400 dev eth1 359 ip -netns r1 link set mtu 1400 dev eth1
|
D | fib_tests.sh | 1175 $IP -6 ro add 2001:db8:104::/64 via 2001:db8:101::2 mtu 1300 1596 $IP ro add 172.16.104.0/24 via 172.16.101.2 mtu 1300
|
/tools/testing/selftests/bpf/prog_tests/ |
D | check_mtu.c | 111 static void test_check_mtu_xdp(__u32 mtu, __u32 ifindex) in test_check_mtu_xdp() argument 121 skel->rodata->GLOBAL_USER_MTU = mtu; in test_check_mtu_xdp() 128 test_check_mtu_run_xdp(skel, skel->progs.xdp_use_helper, mtu); in test_check_mtu_xdp() 129 test_check_mtu_run_xdp(skel, skel->progs.xdp_exceed_mtu, mtu); in test_check_mtu_xdp() 130 test_check_mtu_run_xdp(skel, skel->progs.xdp_minus_delta, mtu); in test_check_mtu_xdp() 131 test_check_mtu_run_xdp(skel, skel->progs.xdp_input_len, mtu); in test_check_mtu_xdp() 132 test_check_mtu_run_xdp(skel, skel->progs.xdp_input_len_exceed, mtu); in test_check_mtu_xdp() 171 static void test_check_mtu_tc(__u32 mtu, __u32 ifindex) in test_check_mtu_tc() argument 181 skel->rodata->GLOBAL_USER_MTU = mtu; in test_check_mtu_tc() 188 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 | 77 ip -net "$ns1" link set ns1eth1 up mtu 1500 83 ip -net "$ns1" link set ns1eth2 up mtu 1500 92 ip -net "$ns2" link set ns2eth1 up mtu 1500 96 ip -net "$ns2" link set ns2eth2 up mtu 1500 100 ip -net "$ns2" link set ns2eth3 up mtu 1500 106 ip -net "$ns3" link set ns3eth1 up mtu 1500
|
/tools/testing/selftests/netfilter/ |
D | ipip-conntrack-mtu.sh | 159 ip -net ${r_w} link set dev veth0 up mtu 1400 160 ip -net ${r_w} link set dev veth1 up mtu 1400 162 ip -net ${r_a} link set dev veth0 mtu 1400 163 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 | 112 if ! ip -net $nsr1 link set veth0 mtu $omtu; then 116 ip -net $ns1 link set eth0 mtu $omtu 118 if ! ip -net $nsr2 link set veth1 mtu $rmtu; then 122 ip -net $ns2 link set eth0 mtu $rmtu
|
D | conntrack_icmp_related.sh | 211 ip netns exec nsrouter2 ip link set eth1 mtu 1280 212 ip netns exec nsclient2 ip link set veth0 mtu 1280
|
/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 | 115 ip netns exec ${NS1} ip link set ${VETH1} mtu ${MTU} 116 ip link set ${VETH0} mtu ${MTU}
|
D | test_tc_tunnel.sh | 31 ip link add dev veth1 mtu 1500 netns "${ns1}" type veth \ 32 peer name veth2 mtu 1500 netns "${ns2}" 47 ip -netns "${ns1}" -4 route add "${ns2_v4}" mtu 1450 dev veth1 48 ip -netns "${ns1}" -6 route add "${ns2_v6}" mtu 1430 dev veth1
|
D | test_tunnel.sh | 61 ip link set dev veth1 up mtu 1500 439 ip link set dev veth1 mtu 1500 515 ip link set dev veth1 mtu 1500 540 ip link set dev veth1 mtu 1500 568 ip link set dev veth1 mtu 1500
|
D | test_offload.py | 473 def set_mtu(self, mtu, fail=True): argument 474 return ip("link set dev %s mtu %d" % (self.dev["ifname"], mtu),
|
/tools/include/uapi/linux/ |
D | pkt_sched.h | 108 unsigned int mtu; member 187 __u32 mtu; member
|
D | pkt_cls.h | 87 __u32 mtu; member
|