Lines Matching refs:mtu
22 # CHANGE_INTERVAL: The interval of the mtu change
36 saved_mtu="$(cat /sys/class/net/$(tst_iface)/mtu)"
45 ip link set $(tst_iface) mtu $saved_mtu
46 tst_rhost_run -c "ip link set $(tst_iface rhost) mtu $saved_mtu"
52 local mtu="$1"
59 ifconfig) ifconfig $iface mtu $mtu || ret=1
60 tst_rhost_run -c "ifconfig $iface_rmt mtu $mtu" || ret=1
62 ip) ip link set $iface mtu $mtu || ret=1
63 tst_rhost_run -c "ip link set $iface_rmt mtu $mtu" || ret=1
77 set_mtu $min_mtu $CMD || tst_brk TBROK "failed to set MTU to $mtu"
104 mtu=$(echo $CHANGE_VALUES | cut -d ' ' -f $field)
105 [ $cnt -eq $MTU_CHANGE_TIMES ] && mtu="$saved_mtu"
109 tst_res TINFO "set MTU to $mtu $cnt/$MTU_CHANGE_TIMES"
110 if ! set_mtu $mtu $cmd; then
111 tst_res TFAIL "failed to change MTU to $mtu at $cnt time"
117 tst_ping -s "1 $((mtu / 2)) $mtu $MAX_PACKET_SIZE"