diff --git a/src/iperf3.1 b/src/iperf3.1 index 906f5e2..487b858 100644 --- a/src/iperf3.1 +++ b/src/iperf3.1 @@ -127,7 +127,7 @@ The length, attributes, and in some cases contents of the received file may not match those of the original file. .TP .BR -A ", " --affinity " \fIn/n,m\fR" -Set the CPU affinity, if possible (Linux and FreeBSD only). +Set the CPU affinity, if possible (Linux, FreeBSD, and Windows only). On both the client and server you can set the local affinity by using the \fIn\fR form of this argument (where \fIn\fR is a CPU number). In addition, on the client side you can override the server's diff --git a/src/iperf_api.c b/src/iperf_api.c index b3d8acd..4af8e50 100755 --- a/src/iperf_api.c +++ b/src/iperf_api.c @@ -3547,7 +3547,7 @@ iperf_json_finish(struct iperf_test *test) } -/* CPU affinity stuff - Linux and FreeBSD only. */ +/* CPU affinity stuff - Linux, FreeBSD, and Windows only. */ int iperf_setaffinity(struct iperf_test *test, int affinity) @@ -3589,10 +3589,10 @@ iperf_setaffinity(struct iperf_test *test, int affinity) return -1; } return 0; -#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */ +#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */ i_errno = IEAFFINITY; return -1; -#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */ +#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */ } int @@ -3628,10 +3628,10 @@ iperf_clearaffinity(struct iperf_test *test) return -1; } return 0; -#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */ +#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */ i_errno = IEAFFINITY; return -1; -#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */ +#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */ } int