Home
last modified time | relevance | path

Searched refs:mtu (Results 1 – 25 of 39) sorted by relevance

12

/tools/testing/selftests/net/forwarding/
Dipip_lib.sh320 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 …]
Dip6gre_lib.sh411 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/
Dpmtu.sh950 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 …]
Dfib_nexthop_multiprefix.sh156 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 …]
Dudpgso.c291 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 …]
Dicmp_redirect.sh279 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 …]
Dpsock_snd.sh8 readonly mtu=1500
15 readonly mss="$((${mtu} - ${iphlen} - ${udphlen}))"
Dio_uring_zerocopy_tx.sh96 ip link add "${DEV}" mtu "${DEV_MTU}" netns "${NS1}" type veth \
97 peer name "${DEV}" mtu "${DEV_MTU}" netns "${NS2}"
Dmsg_zerocopy.sh90 ip link add "${DEV}" mtu "${DEV_MTU}" netns "${NS1}" type veth \
91 peer name "${DEV}" mtu "${DEV_MTU}" netns "${NS2}"
Dsetup_veth.sh12 ip link set dev "${ns_dev}" netns "${ns_name}" mtu 65535
/tools/testing/selftests/bpf/prog_tests/
Dcheck_mtu.c104 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/
Dsimult_flows.sh80 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/
Dipip-conntrack-mtu.sh160 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
DMakefile8 ipip-conntrack-mtu.sh conntrack_tcp_unreplied.sh \
Dnft_flowtable.sh110 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/
Dnetns.sh159 [[ $(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/
Dtest_xsk.sh128 ip link set ${VETH1} mtu ${MTU}
129 ip link set ${VETH0} mtu ${MTU}
Dtest_tc_tunnel.sh32 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
Dxskxceiver.h158 int mtu; member
185 int mtu; member
Dxsk_prereqs.sh58 ip link set $1 mtu $2
Dxskxceiver.c258 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 …]
Dxsk.c390 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()
Dtest_tunnel.sh63 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/
Dbond-break-lacpdu-tx.sh40 ip link add fab-br0 address 52:54:00:3B:7C:A6 mtu 1500 type bridge \
/tools/testing/selftests/bpf/progs/
Dcore_kern.c37 *val = bpf_get_prandom_u32() + v + dev->mtu; in randmap()

12