Searched refs:fqrate (Results 1 – 4 of 4) sorted by relevance
/external/iperf3/src/ |
D | iperf_udp.c | 395 if (test->settings->fqrate) { in iperf_udp_accept() 397 unsigned int fqrate = test->settings->fqrate / 8; in iperf_udp_accept() local 398 if (fqrate > 0) { in iperf_udp_accept() 400 printf("Setting fair-queue socket pacing to %u\n", fqrate); in iperf_udp_accept() 402 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_udp_accept() 507 if (test->settings->fqrate) { in iperf_udp_connect() 509 unsigned int fqrate = test->settings->fqrate / 8; in iperf_udp_connect() local 510 if (fqrate > 0) { in iperf_udp_connect() 512 printf("Setting fair-queue socket pacing to %u\n", fqrate); in iperf_udp_connect() 514 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_udp_connect()
|
D | iperf_tcp.c | 240 if (test->settings->fqrate) { in iperf_tcp_listen() 242 unsigned int fqrate = test->settings->fqrate / 8; in iperf_tcp_listen() local 243 if (fqrate > 0) { in iperf_tcp_listen() 245 printf("Setting fair-queue socket pacing to %u\n", fqrate); in iperf_tcp_listen() 247 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_tcp_listen() 594 if (test->settings->fqrate) { in iperf_tcp_connect() 596 unsigned int fqrate = test->settings->fqrate / 8; in iperf_tcp_connect() local 597 if (fqrate > 0) { in iperf_tcp_connect() 599 printf("Setting fair-queue socket pacing to %u\n", fqrate); in iperf_tcp_connect() 601 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_tcp_connect()
|
D | iperf.h | 139 uint64_t fqrate; /* target data rate for FQ pacing*/ member
|
D | iperf_api.c | 165 return ipt->settings->fqrate; in iperf_get_test_fqrate() 406 iperf_set_test_fqrate(struct iperf_test *ipt, uint64_t fqrate) in iperf_set_test_fqrate() argument 408 ipt->settings->fqrate = fqrate; in iperf_set_test_fqrate() 1190 test->settings->fqrate = 0; in iperf_parse_arguments() 1199 test->settings->fqrate = unit_atof_rate(optarg); in iperf_parse_arguments() 1708 if (test->settings->fqrate) in send_parameters() 1709 cJSON_AddNumberToObject(j, "fqrate", test->settings->fqrate); in send_parameters() 1807 test->settings->fqrate = j_p->valueint; in get_parameters() 2322 testp->settings->fqrate = 0; in iperf_defaults()
|