From patchwork Fri Dec 14 10:49:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Kong X-Patchwork-Id: 206385 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 126172C008F for ; Fri, 14 Dec 2012 21:46:43 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755793Ab2LNKqk (ORCPT ); Fri, 14 Dec 2012 05:46:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9548 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755359Ab2LNKqk (ORCPT ); Fri, 14 Dec 2012 05:46:40 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBEAkcvq022945 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Dec 2012 05:46:38 -0500 Received: from dhcp-8-167.nay.redhat.com ([10.66.7.126]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id qBEAkaiq020904; Fri, 14 Dec 2012 05:46:37 -0500 From: Amos Kong To: rick.jones2@hp.com Cc: netdev@vger.kernel.org, Amos Kong Subject: [Netperf PATCH] output remote_send_size in TCP_MAERTS result Date: Fri, 14 Dec 2012 18:49:08 +0800 Message-Id: <1355482148-31407-1-git-send-email-akong@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org When I executed TCP_MAERTS by following command line: netperf-2.6.0 -H 192.168.58.23 -l 10 -C -t TCP_MAERTS -- -m 512,1024 The outputed send size is '512'. When I executed TCP_MAERTS by following command line: netperf-2.6.0 -H 192.168.58.23 -l 10 -t TCP_MAERTS -- -m 512,1024 The outputed send size is '1024'. In TCP_MAERTS test, we should output the remote send size '1024', this patch fixed this issue. Reported-by: Wenli Quan Signed-off-by: Amos Kong --- src/nettest_omni.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nettest_omni.c b/src/nettest_omni.c index 826167a..b0b1500 100644 --- a/src/nettest_omni.c +++ b/src/nettest_omni.c @@ -5951,7 +5951,7 @@ Size (bytes)\n\ cpu_fmt_1, /* the format string */ rsr_size, /* remote recvbuf size */ lss_size, /* local sendbuf size */ - send_size, /* how large were the recvs */ + remote_send_size, /* how large were the recvs */ elapsed_time, /* how long was the test */ thruput, /* what was the xfer rate */ local_cpu_utilization, /* local cpu */ @@ -5983,7 +5983,7 @@ Size (bytes)\n\ tput_fmt_1, /* the format string */ lsr_size, /* local recvbuf size */ rss_size, /* remot sendbuf size */ - remote_send_size, /* how large were the recvs */ + remote_send_size, /* how large were the recvs */ elapsed_time, /* how long did it take */ thruput, /* how fast did it go */ ((print_headers) ||