From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 8CC2F5A26 for ; Tue, 7 Jul 2015 11:38:13 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 07 Jul 2015 02:38:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,422,1432623600"; d="scan'208";a="757435989" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 07 Jul 2015 02:38:11 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t679c8Ip019692; Tue, 7 Jul 2015 17:38:08 +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 t679c5Wq022444; Tue, 7 Jul 2015 17:38:07 +0800 Received: (from dayuqiu@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t679c5HJ022440; Tue, 7 Jul 2015 17:38:05 +0800 From: Michael Qiu To: dts@dpdk.org Date: Tue, 7 Jul 2015 17:37:59 +0800 Message-Id: <1436261880-22395-3-git-send-email-michael.qiu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1436261880-22395-1-git-send-email-michael.qiu@intel.com> References: <1436261880-22395-1-git-send-email-michael.qiu@intel.com> Subject: [dts] [PATCH 2/3] tests: Add RRC support in suit scatter 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: Tue, 07 Jul 2015 09:38:14 -0000 Add RRC support in suit scatter Signed-off-by: Michael Qiu --- tests/TestSuite_scatter.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_scatter.py b/tests/TestSuite_scatter.py index 643fe4a..130898f 100644 --- a/tests/TestSuite_scatter.py +++ b/tests/TestSuite_scatter.py @@ -62,10 +62,11 @@ class TestScatter(TestCase): """ sport = self.tester.get_local_port(sPortid) sintf = self.tester.get_interface(sport) - smac = self.dut.get_mac_address(sPortid) + smac = self.tester.get_mac(sport) + dmac = self.dut.get_mac_address(sPortid) rport = self.tester.get_local_port(rPortid) rintf = self.tester.get_interface(rport) - if self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"]: + if self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single", "redrockcanyou"]: self.tester.send_expect("ifconfig %s mtu 9000" % sintf, "#") self.tester.send_expect("ifconfig %s mtu 9000" % rintf, "#") @@ -79,10 +80,10 @@ class TestScatter(TestCase): self.tester.scapy_foreground() self.tester.scapy_append( - 'sendp([Ether(dst="%s")/IP(len=%s)/Raw(load="\x50"*%s)], iface="%s")' % (smac, pktlen, padding, sintf)) + 'sendp([Ether(src="%s",dst="%s")/IP(len=%s)/Raw(load="\x50"*%s)], iface="%s")' % (smac, dmac,pktlen, padding, sintf)) self.tester.scapy_execute() res = self.tester.scapy_get_result() - if self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"]: + if self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single", "redrockcanyou"]: self.tester.send_expect("ifconfig %s mtu 1500" % sintf, "#") self.tester.send_expect("ifconfig %s mtu 1500" % sintf, "#") return res @@ -103,7 +104,7 @@ class TestScatter(TestCase): portMask = dts.create_mask(dutPorts[:2]) # set the mbuf size to 1024 - if self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"]: + if self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single", "redrockcanyou"]: out = self.pmdout.start_testpmd( "1S/2C/2T", "--mbcache=200 --mbuf-size=2048 --portmask=%s --max-pkt-len=9000" % portMask) else: @@ -111,12 +112,12 @@ class TestScatter(TestCase): "1S/2C/2T", "--mbcache=200 --mbuf-size=1024 --portmask=%s" % portMask) self.verify("Error" not in out, "launch error 1") - if self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"]: + if self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single", "redrockcanyou"]: self.dut.send_expect("set fwd mac", "testpmd> ", 120) self.dut.send_expect("start", "testpmd> ") for offset in [-1, 0, 1, 4, 5]: - if self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"]: + if self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single", "redrockcanyou"]: ret = self.scatter_pktgen_send_packet( dutPorts[0], dutPorts[1], 2048 + offset) else: -- 1.9.3