Lines Matching refs:mtu
186 mtu() { function
189 mtu="${3}"
191 ${ns_cmd} ip link set dev ${dev} mtu ${mtu}
242 mtu "${ns_a}" veth_a ${veth_mtu}
243 mtu "${ns_b}" veth_b ${veth_mtu}
244 mtu "${ns_a}" vti4_a ${vti_mtu}
245 mtu "${ns_b}" vti4_b ${vti_mtu}
276 mtu "${ns_a}" veth_a 4000
277 mtu "${ns_b}" veth_b 4000
278 mtu "${ns_a}" vti6_a 5000
279 mtu "${ns_b}" vti6_b 5000
289 mtu "${ns_a}" vti6_a 3000
297 mtu "${ns_a}" vti6_a 9000
343 …${ns_a} ip link add vti4_a mtu ${v} type vti local ${veth4_a_addr} remote ${veth4_b_addr} key 10 2…
346 mtu="$(link_get_mtu "${ns_a}" vti4_a)"
347 if [ ${mtu} -lt ${min} -o ${mtu} -gt ${max} ]; then
348 err " vti tunnel created with invalid MTU ${mtu}"
356 ${ns_a} ip link add vti4_a mtu ${v} type vti local ${veth4_a_addr} remote ${veth4_b_addr} key 10
357 mtu="$(link_get_mtu "${ns_a}" vti4_a)"
359 if [ "${mtu}" != "${v}" ]; then
360 err " vti MTU ${mtu} doesn't match configured value ${v}"
381 …${ns_a} ip link add vti6_a mtu ${v} type vti6 local ${veth6_a_addr} remote ${veth6_b_addr} key 10 …
384 mtu="$(link_get_mtu "${ns_a}" vti6_a)"
385 if [ ${mtu} -lt ${min} -o ${mtu} -gt ${max} ]; then
394 ${ns_a} ip link add vti6_a mtu ${v} type vti6 local ${veth6_a_addr} remote ${veth6_b_addr} key 10
395 mtu="$(link_get_mtu "${ns_a}" vti6_a)"
397 if [ "${mtu}" != "${v}" ]; then
398 err " vti6 MTU ${mtu} doesn't match configured value ${v}"
409 ${ns_a} ip link add dummy0 mtu 1500 type dummy
411 ${ns_a} ip link add dummy1 mtu 3000 type dummy
421 ${ns_a} ip link add vti6_a mtu 1300 type vti6 remote ${dummy6_0_addr} local ${dummy6_0_addr}
422 mtu="$(link_get_mtu "${ns_a}" vti6_a)"
423 if [ ${mtu} -ne 1300 ]; then
424 err " vti6 MTU ${mtu} doesn't match configured value 1300"
431 mtu="$(link_get_mtu "${ns_a}" vti6_a)"
432 if [ ${mtu} -ne $((3000 - 40)) ]; then
433 err " vti MTU ${mtu} is not dummy MTU 3000 minus IPv6 header length"
438 ${ns_a} ip link set vti6_a mtu 1280 type vti6 remote ${dummy6_0_addr} local ${dummy6_0_addr}
439 mtu="$(link_get_mtu "${ns_a}" vti6_a)"
440 if [ ${mtu} -ne 1280 ]; then
441 err " vti6 MTU ${mtu} doesn't match configured value 1280"