aboutsummaryrefslogtreecommitdiff
path: root/src/iperf_udp.c
diff options
context:
space:
mode:
authorBruce A. Mah <bmah@es.net>2016-11-30 07:13:28 -0800
committerBruce A. Mah <bmah@es.net>2016-11-30 07:13:28 -0800
commita621cc263f28fff724a45f6b5ae86cd9290cff5c (patch)
tree2f9e3b21d8f37303d99c8beaf3ce445a7eedb97d /src/iperf_udp.c
parentd2202ee3be6007324eb98f60d6fcd3eb8b51c838 (diff)
downloadiperf3-a621cc263f28fff724a45f6b5ae86cd9290cff5c.tar.gz
Improve debug output for application and fair-queue-based pacing.
Diffstat (limited to 'src/iperf_udp.c')
-rw-r--r--src/iperf_udp.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/iperf_udp.c b/src/iperf_udp.c
index ae4796a..03b94d7 100644
--- a/src/iperf_udp.c
+++ b/src/iperf_udp.c
@@ -290,6 +290,14 @@ iperf_udp_accept(struct iperf_test *test)
}
}
#endif /* HAVE_SO_MAX_PACING_RATE */
+ if (test->no_fq_socket_pacing) {
+ unsigned int rate = test->settings->rate / 8;
+ if (rate > 0) {
+ if (test->debug) {
+ printf("Setting application pacing to %u\n", rate);
+ }
+ }
+ }
/*
* Create a new "listening" socket to replace the one we were using before.
@@ -418,6 +426,14 @@ iperf_udp_connect(struct iperf_test *test)
}
}
#endif /* HAVE_SO_MAX_PACING_RATE */
+ if (test->no_fq_socket_pacing) {
+ unsigned int rate = test->settings->rate / 8;
+ if (rate > 0) {
+ if (test->debug) {
+ printf("Setting application pacing to %u\n", rate);
+ }
+ }
+ }
#ifdef SO_RCVTIMEO
/* 30 sec timeout for a case when there is a network problem. */