[ofw] [PATCH] ttcp: set -n default to match OFED default (2048)
Smith, Stan
stan.smith at intel.com
Fri Oct 29 16:20:08 PDT 2010
set -n default to match OFED default (2048)
set transfer display default to be MB (-f M) instead of KB, jump into the 90's.
Adjust whitespace for alignment.
signed-off-by: stan smith <stan.smith at intel.com>
--- A/tests/wsd/user/ttcp/ttcp.c Fri Oct 29 15:23:40 2010
+++ B/tests/wsd/user/ttcp/ttcp.c Fri Oct 15 14:59:19 2010
@@ -73,9 +73,9 @@
int domain, fromlen;
-int buflen = 8 * 1024; /* length of buffer */
-char *buf; /* ptr to dynamic buffer */
-int nbuf = 2 * 32; /* number of buffers to send in sinkmode */
+int buflen = 8 * 1024; /* length of buffer */
+char *buf; /* ptr to dynamic buffer */
+int nbuf = 2048; /* number of buffers to send in sinkmode */
int bufoffset = 0; /* align buffer to this */
int bufalign = 16*1024; /* modulo this */
@@ -85,13 +85,13 @@
int one = 1; /* for 4.3 BSD style setsockopt() */
short port = 5001; /* TCP port number */
char *host = 0; /* ptr to name of host */
-int trans; /* 0=receive, !0=transmit mode */
+int trans; /* 0=receive, !0=transmit mode */
int nodelay = 0; /* set TCP_NODELAY socket option */
int b_flag = 0; /* use mread() */
int sockbufsize = 0; /* socket buffer size to use */
-char fmt = 'K'; /* output format: k = kilobits, K = kilobytes,
- * m = megabits, M = megabytes,
- * g = gigabits, G = gigabytes */
+char fmt = 'M'; /* output format: k = kilobits, K = kilobytes,
+ * m = megabits, M = megabytes,
+ * g = gigabits, G = gigabytes */
int touchdata = 0; /* access data after reading */
#ifndef errno
More information about the ofw
mailing list