Home
last modified time | relevance | path

Searched refs:fqrate (Results 1 – 4 of 4) sorted by relevance

/external/iperf3/src/
Diperf_udp.c418 if (test->settings->fqrate) { in iperf_udp_accept()
420 unsigned int fqrate = test->settings->fqrate / 8; in iperf_udp_accept() local
421 if (fqrate > 0) { in iperf_udp_accept()
423 printf("Setting fair-queue socket pacing to %u\n", fqrate); in iperf_udp_accept()
425 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_udp_accept()
530 if (test->settings->fqrate) { in iperf_udp_connect()
532 unsigned int fqrate = test->settings->fqrate / 8; in iperf_udp_connect() local
533 if (fqrate > 0) { in iperf_udp_connect()
535 printf("Setting fair-queue socket pacing to %u\n", fqrate); in iperf_udp_connect()
537 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_udp_connect()
Diperf_tcp.c241 if (test->settings->fqrate) { in iperf_tcp_listen()
243 unsigned int fqrate = test->settings->fqrate / 8; in iperf_tcp_listen() local
244 if (fqrate > 0) { in iperf_tcp_listen()
246 printf("Setting fair-queue socket pacing to %u\n", fqrate); in iperf_tcp_listen()
248 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_tcp_listen()
595 if (test->settings->fqrate) { in iperf_tcp_connect()
597 unsigned int fqrate = test->settings->fqrate / 8; in iperf_tcp_connect() local
598 if (fqrate > 0) { in iperf_tcp_connect()
600 printf("Setting fair-queue socket pacing to %u\n", fqrate); in iperf_tcp_connect()
602 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_tcp_connect()
Diperf.h144 uint64_t fqrate; /* target data rate for FQ pacing*/ member
Diperf_api.c188 return ipt->settings->fqrate; in iperf_get_test_fqrate()
465 iperf_set_test_fqrate(struct iperf_test *ipt, uint64_t fqrate) in iperf_set_test_fqrate() argument
467 ipt->settings->fqrate = fqrate; in iperf_set_test_fqrate()
1308 test->settings->fqrate = 0; in iperf_parse_arguments()
1317 test->settings->fqrate = unit_atof_rate(optarg); in iperf_parse_arguments()
1871 if (test->settings->fqrate) in send_parameters()
1872 cJSON_AddNumberToObject(j, "fqrate", test->settings->fqrate); in send_parameters()
1980 test->settings->fqrate = j_p->valueint; in get_parameters()
2506 testp->settings->fqrate = 0; in iperf_defaults()