From: Xiaonan Zhang <xiaonanx.zhang@intel.com>
To: dts@dpdk.org
Subject: [dts] [PATCH] Modify tests/TestSuit_l3fwd.py
Date: Mon, 26 Jan 2015 14:46:57 +0800 [thread overview]
Message-ID: <1422254817-16456-1-git-send-email-xiaonanx.zhang@intel.com> (raw)
From: "xiaonanx.zhang" <xiaonanx.zhang@intel.com>
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 <xiaonanx.zhang@intel.com>
---
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
next reply other threads:[~2015-01-26 6:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-26 6:46 Xiaonan Zhang [this message]
2015-01-27 1:32 ` Liu, Yong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1422254817-16456-1-git-send-email-xiaonanx.zhang@intel.com \
--to=xiaonanx.zhang@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).