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 C6DFF282 for ; Mon, 26 Jan 2015 07:47:05 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 25 Jan 2015 22:43:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,467,1418112000"; d="scan'208";a="656393721" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 25 Jan 2015 22:47:03 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t0Q6l14B008879; Mon, 26 Jan 2015 14:47:01 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t0Q6kwNs016494; Mon, 26 Jan 2015 14:47:00 +0800 Received: (from xiaonanx@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t0Q6kwtw016490; Mon, 26 Jan 2015 14:46:58 +0800 From: Xiaonan Zhang To: dts@dpdk.org Date: Mon, 26 Jan 2015 14:46:57 +0800 Message-Id: <1422254817-16456-1-git-send-email-xiaonanx.zhang@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] Modify tests/TestSuit_l3fwd.py 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 06:47:06 -0000 From: "xiaonanx.zhang" use ixia to config stream sourceIpAddrMode and ipProtocol to make sure source addr random and ip ipProtocol is raw. add ip function for get fortville better performance. Signed-off-by: xiaonanx.zhang --- tests/TestSuite_l3fwd.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/TestSuite_l3fwd.py b/tests/TestSuite_l3fwd.py index 0e7df85..64f0f32 100644 --- a/tests/TestSuite_l3fwd.py +++ b/tests/TestSuite_l3fwd.py @@ -610,6 +610,21 @@ class TestL3fwd(TestCase): self.plot_2_ports() dts.results_table_print() + def ip(self, port, frag, src, proto, tos, dst, chksum, len, options, version, flags, ihl, ttl, id): + self.add_tcl_cmd("protocol config -name ip") + self.add_tcl_cmd('ip config -sourceIpAddr "%s"' % src) + self.add_tcl_cmd("ip config -sourceIpAddrMode ipRandom") + self.add_tcl_cmd('ip config -destIpAddr "%s"' % dst) + self.add_tcl_cmd("ip config -destIpAddrMode ipIdle") + self.add_tcl_cmd("ip config -ttl %d" % ttl) + self.add_tcl_cmd("ip config -totalLength %d" % len) + self.add_tcl_cmd("ip config -fragment %d" % frag) + self.add_tcl_cmd("ip config -ipProtocol ipV4ProtocolReserved255") + self.add_tcl_cmd("ip config -identifier %d" % id) + self.add_tcl_cmd("stream config -framesize %d" % (len + 18)) + self.add_tcl_cmd("ip set %d %d %d" % (self.chasId, port['card'], port['port'])) + + def tear_down(self): """ Run after each test case. -- 1.9.3