From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 1AE5D255 for ; Mon, 26 Jan 2015 10:19:19 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 26 Jan 2015 01:16:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,467,1418112000"; d="scan'208";a="667520568" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 26 Jan 2015 01:19:17 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t0Q9JFup027364; Mon, 26 Jan 2015 17:19:15 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t0Q9JDtp032260; Mon, 26 Jan 2015 17:19:15 +0800 Received: (from xiaonanx@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t0Q9JDQe032256; Mon, 26 Jan 2015 17:19:13 +0800 From: Xiaonan Zhang To: dts@dpdk.org Date: Mon, 26 Jan 2015 17:19:12 +0800 Message-Id: <1422263952-32225-1-git-send-email-xiaonanx.zhang@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] framework support get oversize for performance X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2015 09:19:20 -0000 From: "xiaonanx.zhang" modify get_transmission_results function in framework etgen.py use ixia api stat cget -oversize to get Oversize and CRC Errors add return get oversize condition Signed-off-by: xiaonanx.zhang --- framework/etgen.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/framework/etgen.py b/framework/etgen.py index 2f2e975..f2da4ab 100644 --- a/framework/etgen.py +++ b/framework/etgen.py @@ -581,13 +581,18 @@ class IxiaPacketGenerator(SSHConnection): out = self.send_expect("stat cget -bitsReceived", '% ', 10) self.logger.debug("port %d bits rate:" % (port) + out) bpsRate += int(out.strip()) + out = self.send_expect("stat cget -oversize", '%', 10) + oversize += int(out.strip()) self.logger.info("Rate: %f Mpps" % (rate * 1.0 / 1000000)) self.logger.info("Mbps rate: %f Mbps" % (bpsRate * 1.0 / 1000000)) self.send_expect("ixStopTransmit portList", "%", 30) - return (bpsRate, rate) + if rate == 0 and oversize > 0: + return (bpsRate, oversize) + else: + return (bpsRate, rate) def config_ixia_dcb_init(self, rxPort, txPort): """ -- 1.9.3