[ewg] [PATCH] IB/perftest: print bidirectional ib_send_bw statistics for UC/UD

Ralph Campbell ralph.campbell at qlogic.com
Thu Oct 29 12:10:23 PDT 2009


Print statistics on the server side for ib_send_bw when doing
bidirectional tests similar to ib_send_lat.

Signed-off-by: Ralph Campbell <ralph.campbell at qlogic.com>

diff --git a/send_bw.c b/send_bw.c
index 9624cfe..2f0a29d 100644
--- a/send_bw.c
+++ b/send_bw.c
@@ -1448,9 +1448,10 @@ int main(int argc, char *argv[])
 				if(run_iter_uni(ctx, &user_param, rem_dest, size))
 					return 17;
 			}
-			if (user_param.servername) {
+			if (user_param.servername || user_param.duplex)
 				print_report(user_param.iters, size, user_param.duplex, tposted, tcompleted, noPeak, no_cpu_freq_fail);
-				/* sync again for the sake of UC/UC */
+			if (user_param.servername) {
+				/* sync again for the sake of UC/UD */
 				rem_dest = pp_client_exch_dest(sockfd, &my_dest, &user_param);
 			} else
 				rem_dest = pp_server_exch_dest(sockfd, &my_dest, &user_param);





More information about the ewg mailing list