[netperf-dev] netperf2 commit notice r159 - in trunk: . src
raj at netperf.org
raj at netperf.org
Tue Nov 20 10:06:27 PST 2007
Author: raj
Date: 2007-11-20 10:06:26 -0800 (Tue, 20 Nov 2007)
New Revision: 159
Modified:
trunk/Release_Notes
trunk/src/nettest_bsd.c
Log:
__sun vs __sun__ for Solaris
Modified: trunk/Release_Notes
===================================================================
--- trunk/Release_Notes 2007-11-19 20:23:03 UTC (rev 158)
+++ trunk/Release_Notes 2007-11-20 18:06:26 UTC (rev 159)
@@ -2,6 +2,8 @@
Things changed in this release:
+*) Fixes for Solaris sendfilev usage.
+
*) A TCP_MSS test has been added which will report the MSS for a data
connection setup as if the test were a TCP_STREAM test. While the
remote (netserver) is tricked into thinking it is to accept a
Modified: trunk/src/nettest_bsd.c
===================================================================
--- trunk/src/nettest_bsd.c 2007-11-19 20:23:03 UTC (rev 158)
+++ trunk/src/nettest_bsd.c 2007-11-20 18:06:26 UTC (rev 159)
@@ -152,9 +152,9 @@
2007-06-08 */
int first_burst_size=0;
-#if defined(HAVE_SENDFILE) && (defined(__linux) || defined(__sun__))
+#if defined(HAVE_SENDFILE) && (defined(__linux) || defined(__sun))
#include <sys/sendfile.h>
-#endif /* HAVE_SENDFILE && (__linux || __sun__) */
+#endif /* HAVE_SENDFILE && (__linux || __sun) */
@@ -3684,22 +3684,22 @@
struct addrinfo *local_res;
struct sockaddr_in server;
-#if defined(__linux) || defined(__sun__)
+#if defined(__linux) || defined(__sun)
off_t scratch_offset; /* the linux sendfile() call will update
the offset variable, which is
something we do _not_ want to happen
to the value in the send_ring! so, we
have to use a scratch variable. */
-#endif /* __linux || defined(__sun__) */
+#endif /* __linux || defined(__sun) */
#if defined (USE_OSX)
off_t scratch_len; /* Darwin 9.x need a value-result parameter */
#endif
-#if defined (__sun__)
+#if defined (__sun)
size_t scratch_len; /* the sun sendfilev() needs a place to
tell us how many bytes were written,
even though it also returns the value */
sendfilevec_t sv;
-#endif /* __sun__ */
+#endif /* __sun */
struct tcp_stream_request_struct *tcp_stream_request;
struct tcp_stream_response_struct *tcp_stream_response;
@@ -4035,7 +4035,7 @@
send_ring->fildes,
&scratch_offset, /* modified after the call! */
send_ring->length)) != send_size)
-#elif defined (__sun__)
+#elif defined (__sun)
/* We must call with SFV_NOWAIT and a large file size (>= 16MB) to
get zero-copy, as well as compiling with -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 */
More information about the netperf-dev
mailing list