Lines Matching full:then

103 		if $checksum; then
189 # It can be empty, no need to print anything then
217 if [ ${rc} = ${KSFT_PASS} ]; then
219 elif [ ${rc} = ${KSFT_SKIP} ]; then
242 if ! "${@}"; then
250 if [ "${#only_tests_ids[@]}" -eq 0 ] && [ "${#only_tests_names[@]}" -eq 0 ]; then
256 if [ "$((MPTCP_LIB_TEST_COUNTER+1))" -eq "${i}" ]; then
261 if [ "${TEST_NAME}" = "${i}" ]; then
271 if [ ${last_test_failed} -eq 1 ]; then
273 elif [ ${last_test_skipped} -eq 1 ]; then
275 elif [ ${last_test_ignored} -ne 1 ]; then
293 if skip_test; then
301 if [ "${init}" != "1" ]; then
319 if ! nstat -asz "${counter}" | grep -wq "${counter}"; then
345 if [ $ip -eq 6 ]; then
355 -j DROP; then
411 if [ $ip -eq 6 ]; then
444 if [ ${rc} -eq ${KSFT_SKIP} ]; then
477 -j "${target}"; then
486 if ! mptcp_lib_subtest_is_flaky; then
490 if [ ${#} -gt 0 ]; then
495 if [ ${last_test_failed} -eq 0 ]; then
520 if [ -n "$bytes" ]; then
524 if [ $out_size -ne $bytes ]; then
539 if [ $check_invert -eq 0 ] || [ $sum -ne $((0xff)) ]; then
559 if ! ip netns exec ${connector_ns} ping -q -c 1 $connect_addr >/dev/null; then
568 if [ -z "$FAILING_LINKS" ]; then
696 if [ -z "${id}" ]; then
718 if [ -n "${fullmesh}" ]; then
725 if [ $addr_nr_ns1 != "0" ] || [ $addr_nr_ns2 != "0" ]; then
729 if [ $addr_nr_ns1 -gt 0 ]; then
735 if mptcp_lib_is_v6 "${connect_addr}"; then
745 elif [ $addr_nr_ns1 -lt 0 ]; then
747 if [ $rm_nr_ns1 -lt 8 ]; then
757 if [ $i = "id" ]; then
758 if [ $counter -eq $rm_nr_ns1 ]; then
770 elif [ $rm_nr_ns1 -eq 8 ]; then
772 elif [ $rm_nr_ns1 -eq 9 ]; then
781 if [ $addr_nr_ns2 -gt 0 ]; then
787 if mptcp_lib_is_v6 "${connect_addr}"; then
797 elif [ $addr_nr_ns2 -lt 0 ]; then
799 if [ $rm_nr_ns2 -lt 8 ]; then
809 if [ $i = "id" ]; then
810 if [ $counter -eq $rm_nr_ns2 ]; then
825 elif [ $rm_nr_ns2 -eq 8 ]; then
827 elif [ $rm_nr_ns2 -eq 9 ]; then
829 if mptcp_lib_is_v6 "${connect_addr}"; then
838 if [ -n "${sflags}" ]; then
852 if [ $i = "id" ]; then
871 if [ -z "$count" ]; then
873 elif [ "$count" != "$cestab" ]; then
883 if [ -n "${cestab_ns1}" ]; then
886 if [ -n "${cestab_ns2}" ]; then
897 if $capture; then
899 if [ -z $SUDO_USER ]; then
917 if $capture; then
954 if [ $speed = "fast" ]; then
956 elif [ $speed = "slow" ]; then
958 elif [ $speed -gt 0 ]; then
965 if [ -n "${fastclose}" ]; then
966 if [ ${test_linkfail} -le 1 ]; then
975 if [ ${side} = "client" ]; then
978 elif [ ${side} = "server" ]; then
988 if [ "$test_linkfail" -gt 1 ];then
1004 if [ "$test_linkfail" -eq 0 ];then
1009 elif [ "$test_linkfail" -eq 1 ] || [ "$test_linkfail" -eq 2 ];then
1040 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
1047 if [ "$test_linkfail" -gt 1 ];then
1053 if [ "$test_linkfail" -eq 0 ];then
1085 if [ "$test_linkfail" -gt 2 ]; then
1088 if [ -z "$cinfail" ]; then
1094 elif [ "$test_linkfail" -ne 0 ] && [ -z "$cinfail" ]; then
1107 if [ "$test_linkfail" -gt 2 ]; then
1110 if [ -z "$sinfail" ]; then
1114 elif [ "$test_linkfail" -eq 2 ] && [ -z "$sinfail" ]; then
1143 if [[ "${csum_ns1}" = "+"* ]]; then
1147 if [[ "${csum_ns2}" = "+"* ]]; then
1154 if [ -n "$count" ] && [ "$count" != "$csum_ns1" ]; then
1157 if [ -z "$count" ]; then
1160 { [ "$count" -lt $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 1 ]; }; then
1168 if [ -n "$count" ] && [ "$count" != "$csum_ns2" ]; then
1171 if [ -z "$count" ]; then
1174 { [ "$count" -lt $csum_ns2 ] && [ $allow_multi_errors_ns2 -eq 1 ]; }; then
1197 if [[ $ns_invert = "invert" ]]; then
1204 if [[ "${fail_tx}" = "-"* ]]; then
1208 if [[ "${fail_rx}" = "-"* ]]; then
1215 if [ -n "$count" ] && [ "$count" != "$fail_tx" ]; then
1218 if [ -z "$count" ]; then
1221 { [ "$count" -gt "$fail_tx" ] && [ $allow_tx_lost -eq 1 ]; }; then
1229 if [ -n "$count" ] && [ "$count" != "$fail_rx" ]; then
1232 if [ -z "$count" ]; then
1235 { [ "$count" -gt "$fail_rx" ] && [ $allow_rx_lost -eq 1 ]; }; then
1255 if [[ $ns_invert = "invert" ]]; then
1264 if [ -z "$count" ]; then
1266 elif [ "$count" != "$fclose_tx" ]; then
1274 if [ -z "$count" ]; then
1276 elif [ "$count" != "$fclose_rx" ]; then
1294 if [[ $ns_invert = "invert" ]]; then
1303 if [ -z "$count" ]; then
1307 { [ $rst_tx -eq 0 ] && [ $count -ne 0 ]; }; then
1315 if [ -z "$count" ]; then
1319 { [ $rst_rx -eq 0 ] && [ $count -ne 0 ]; }; then
1334 if [ -z "$count" ]; then
1336 elif [ "$count" != "$infi_tx" ]; then
1344 if [ -z "$count" ]; then
1346 elif [ "$count" != "$infi_rx" ]; then
1363 if [ -z "$count" ]; then
1365 elif [ "$count" != "$syn_tx" ]; then
1372 if [ -z "$count" ]; then
1374 elif [ "$count" != "$create" ]; then
1381 if [ -z "$count" ]; then
1383 elif [ "$count" != "$bind" ]; then
1390 if [ -z "$count" ]; then
1392 elif [ "$count" != "$connect" ]; then
1416 if [ "${corrupted_pkts}" -gt 0 ]; then
1421 if [ -z "$count" ]; then
1423 elif [ "$count" != "$syn_nr" ]; then
1431 if [ -z "$count" ]; then
1433 elif [ "$count" != "$syn_ack_nr" ]; then
1437 if [ "$with_cookie" != 2 ] || [ "$count" -le "$syn_ack_nr" ] || [ "$count" -gt "$syn_nr" ]; then
1445 if [ -z "$count" ]; then
1447 elif [ "$count" != "$ack_nr" ]; then
1458 if $validate_checksum; then
1485 if [ -z "$stale_nr" ] || [ -z "$recover_nr" ]; then
1489 [ $((stale_nr - recover_nr)) -ne $stale_delta ]; then
1498 if [ "${dump_stats}" = 1 ]; then
1523 if [[ $ns_invert = "invert" ]]; then
1534 if [ -z "$count" ]; then
1536 # if the test configured a short timeout tolerate greater then expected
1538 elif [ "$count" != "$add_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_nr" ]; }; then
1546 if [ -z "$count" ]; then
1548 elif [ "$count" != "$echo_nr" ]; then
1554 if [ $port_nr -gt 0 ]; then
1557 if [ -z "$count" ]; then
1559 elif [ "$count" != "$port_nr" ]; then
1567 if [ -z "$count" ]; then
1569 elif [ "$count" != "$syn_nr" ]; then
1578 if [ -z "$count" ]; then
1580 elif [ "$count" != "$syn_ack_nr" ]; then
1589 if [ -z "$count" ]; then
1591 elif [ "$count" != "$ack_nr" ]; then
1600 if [ -z "$count" ]; then
1602 elif [ "$count" != "$mis_syn_nr" ]; then
1611 if [ -z "$count" ]; then
1613 elif [ "$count" != "$mis_ack_nr" ]; then
1633 if [ -z "$count" ]; then
1635 # if the test configured a short timeout tolerate greater then expected
1637 …if [ "$count" != "$add_tx_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_tx_nr" ]; }; then
1645 if [ -z "$count" ]; then
1647 elif [ "$count" != "$echo_tx_nr" ]; then
1674 if [ "$invert" = "true" ]; then
1683 if [ -z "$count" ]; then
1685 elif [ "$count" != "$rm_addr_nr" ]; then
1693 if [ -z "$count" ]; then
1695 elif [ -n "$simult" ]; then
1703 if [ "$count" != "$rm_subflow_nr" ]; then
1708 [ "$count" -le "$((rm_subflow_nr *2 ))" ]; then
1713 elif [ "$count" != "$rm_subflow_nr" ]; then
1728 if [ -z "$count" ]; then
1730 elif [ "$count" != "$rm_addr_tx_nr" ]; then
1747 if [ -z "$count" ]; then
1749 elif [ "$count" != "$mp_prio_nr_tx" ]; then
1757 if [ -z "$count" ]; then
1759 elif [ "$count" != "$mp_prio_nr_rx" ]; then
1767 if [ -z "$count" ]; then
1769 elif [ "$count" != "$mpj_syn" ]; then
1777 if [ -z "$count" ]; then
1779 elif [ "$count" != "$mpj_syn_ack" ]; then
1798 if [ "$cnt1" != "$subflow_nr" ] || [ "$cnt2" != "$subflow_nr" ]; then
1805 if [ "${dump_stats}" = 1 ]; then
1830 if [ "$cnt1" != "$exp1" ] || [ "$cnt2" != "$exp2" ]; then
1837 if [ "$dump_stats" = 1 ]; then
1853 if [ -n "$(ss -N $ns1 -inmHM | mptcp_lib_get_info_value $info $info)" ]; then
1866 if [ "$1" != "$cnt1" ] || [ "$2" != "$cnt2" ]; then
1873 if [ "$dump_stats" = 1 ]; then
1894 [ $tx_rate -gt $((expected_rate + tolerance)) ]; then
1928 if reset "no JOIN"; then
1934 if reset "single subflow, limited by client"; then
1943 if reset "single subflow, limited by server"; then
1952 if reset "single subflow"; then
1961 if reset "multiple subflows"; then
1971 if reset "multiple subflows, limited by server"; then
1981 if reset "single subflow, dev"; then
1994 if reset "no MPC reuse with single endpoint"; then
2007 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2020 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2035 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2057 if reset "unused signal address"; then
2066 if reset "signal address"; then
2079 if reset "subflow and signal"; then
2092 if reset "subflow and signal together"; then
2105 if reset "multiple subflows and signal"; then
2117 if reset "signal addresses"; then
2129 if reset "signal invalid addresses"; then
2142 if reset "signal addresses race test"; then
2161 if ! mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2176 if reset "multiple flows, signal, link failure"; then
2198 if reset "multi flows, signal, bidi, link fail"; then
2214 if reset "backup subflow unused, link failure"; then
2229 if reset "backup flow used, multi links fail"; then
2245 if reset "backup flow used, bidi, link failure"; then
2263 if reset_with_add_addr_timeout "signal address, ADD_ADDR timeout"; then
2275 if reset_with_add_addr_timeout "signal address, ADD_ADDR6 timeout" 6; then
2286 if reset_with_add_addr_timeout "signal addresses, ADD_ADDR timeout"; then
2298 if reset_with_add_addr_timeout "invalid address, ADD_ADDR timeout"; then
2314 if reset "remove single subflow"; then
2327 if reset "remove multiple subflows"; then
2340 if reset "remove single address"; then
2353 if reset "remove subflow and signal"; then
2367 if reset "remove subflows and signal"; then
2382 if reset "remove addresses"; then
2397 if reset "remove invalid addresses"; then
2414 if reset "flush subflows and signal"; then
2429 if reset "flush subflows"; then
2439 if mptcp_lib_kversion_ge 5.18; then
2449 if reset "flush addresses"; then
2464 if reset "flush invalid addresses"; then
2480 if reset "remove id 0 subflow"; then
2492 if reset "remove id 0 address"; then
2508 if reset "add single subflow"; then
2518 if reset "add signal address"; then
2529 if reset "add multiple subflows"; then
2539 if reset "add multiple subflows IPv6"; then
2549 if reset "add multiple addresses IPv6"; then
2563 if reset "single subflow IPv6"; then
2573 if reset "unused signal address IPv6"; then
2582 if reset "single address IPv6"; then
2593 if reset "remove single address IPv6"; then
2605 if reset "remove subflow and signal IPv6"; then
2621 if reset "single subflow IPv4-mapped"; then
2630 if reset "signal address IPv4-mapped"; then
2640 if reset "single subflow v4-map-v6"; then
2649 if reset "signal address v4-map-v6"; then
2659 if reset "single subflow v6-map-v4"; then
2668 if reset "signal address v6-map-v4"; then
2678 if reset "no JOIN with diff families v4-v6"; then
2687 if reset "no JOIN with diff families v4-v6-2"; then
2695 # no subflow IPv4 to v6 address, no need to slow down too then
2696 if reset "no JOIN with diff families v6-v4"; then
2708 continue_if mptcp_lib_kversion_ge 6.3; then
2719 continue_if mptcp_lib_kversion_ge 6.3; then
2730 continue_if mptcp_lib_kversion_ge 6.3; then
2743 continue_if mptcp_lib_kversion_ge 6.3; then
2758 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2770 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2783 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2796 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2808 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2817 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2836 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2845 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2862 if [ $e_type = $MPTCP_LIB_EVENT_LISTENER_CREATED ]; then
2864 elif [ $e_type = $MPTCP_LIB_EVENT_LISTENER_CLOSED ]; then
2872 if ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
2877 if mptcp_lib_verify_listener_events "${@}"; then
2891 if [ ${retl} = 124 ]; then
2893 elif [ ${retl} = 0 ]; then
2900 if [ -z "$count" ]; then
2902 elif [ "$count" != "$attempts" ]; then
2913 if reset "signal address with port"; then
2923 if reset "subflow and signal with port"; then
2935 if reset_with_events "remove single address with port"; then
2953 if reset "remove subflow and signal with port"; then
2966 if reset "flush subflows and signal with port"; then
2980 if reset "multiple addresses with port"; then
2991 if reset "multiple addresses with ports"; then
3001 if reset "port-based signal endpoint must not accept mpc"; then
3021 if reset_with_cookies "single subflow with syn cookies"; then
3030 if reset_with_cookies "multiple subflows with syn cookies"; then
3040 if reset_with_cookies "subflows limited by server w cookies"; then
3050 if reset_with_cookies "signal address with syn cookies"; then
3060 if reset_with_cookies "subflow and signal w cookies"; then
3071 if reset_with_cookies "subflows and signal w. cookies"; then
3088 if reset_with_checksum ${checksum_enable}; then
3100 if reset_with_allow_join_id0 "single subflow allow join id0 ns1" 1 0; then
3109 if reset_with_allow_join_id0 "single subflow allow join id0 ns2" 0 1; then
3119 if reset_with_allow_join_id0 "signal address allow join id0 ns1" 1 0; then
3130 if reset_with_allow_join_id0 "signal address allow join id0 ns2" 0 1; then
3140 if reset_with_allow_join_id0 "subflow and address allow join id0 1" 1 0; then
3150 if reset_with_allow_join_id0 "subflow and address allow join id0 2" 0 1; then
3165 if reset "fullmesh test 2x1"; then
3179 if reset "fullmesh test 1x1"; then
3183 if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
3195 if reset "fullmesh test 1x2"; then
3209 if reset "fullmesh test 1x2, limited"; then
3221 continue_if mptcp_lib_kversion_ge 5.18; then
3233 continue_if mptcp_lib_kversion_ge 5.18; then
3245 continue_if mptcp_lib_kversion_ge 5.18; then
3258 continue_if mptcp_lib_kversion_ge 5.18; then
3272 if reset_check_counter "fastclose test" "MPTcpExtMPFastcloseTx"; then
3281 if reset_check_counter "fastclose server test" "MPTcpExtMPFastcloseRx"; then
3301 if reset_with_fail "Infinite map" 1; then
3313 if reset_with_fail "MP_FAIL MP_RST" 2; then
3403 if [ ${rc} -eq 2 ]; then
3405 elif [ ${rc} -eq 0 ]; then
3407 elif [ ${rc} -eq 1 ]; then
3444 if mptcp_lib_kallsyms_has "mptcp_userspace_pm_dump_addr$"; then
3459 if mptcp_lib_kallsyms_has "mptcp_userspace_pm_get_addr$"; then
3483 ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
3489 if [ "${count}" != "${exp}" ]; then
3500 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3512 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3524 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3535 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3546 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3559 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3573 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3606 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3634 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3655 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3679 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3709 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3734 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3810 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3884 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3918 if [ -n "${1}" ]; then
4003 if [[ "${arg}" =~ ^[0-9]+$ ]]; then
4010 if [ ${#tests[@]} -eq 0 ]; then
4020 if [ ${ret} -ne 0 ]; then