From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 9F9E52BA0 for ; Thu, 25 Feb 2016 02:32:27 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 24 Feb 2016 17:32:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,496,1449561600"; d="scan'208";a="910691093" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by fmsmga001.fm.intel.com with ESMTP; 24 Feb 2016 17:32:24 -0800 From: Lijuan Tu To: qian.q.xu@intel.com, huilongx.xu@intel.com, yulong.pei@intel.com, dts@dpdk.org Date: Thu, 25 Feb 2016 09:28:00 +0800 Message-Id: <1456363680-12939-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH]tests vf_rss: use get_port_mac() to get vf mac in testpmd, add nh=132 to assign sctp packet 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: Thu, 25 Feb 2016 01:32:28 -0000 Signed-off-by: Lijuan Tu --- tests/TestSuite_vf_rss.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vf_rss.py b/tests/TestSuite_vf_rss.py index 9b6ee6f..0e83832 100644 --- a/tests/TestSuite_vf_rss.py +++ b/tests/TestSuite_vf_rss.py @@ -58,7 +58,7 @@ class TestVfRss(TestCase): self.tester.scapy_append('sys.path.append("./")') self.tester.scapy_append('from sctp import *') self.vm_dut_0.send_expect("start", "testpmd>") - mac = self.vm_dut_0.get_mac_address(0) + mac = self.vm0_testpmd.get_port_mac(0) # send packet with different source and dest ip if tran_type == "ipv4-other": for i in range(16): @@ -124,12 +124,12 @@ class TestVfRss(TestCase): time.sleep(.5) elif tran_type == "ipv6-sctp": for i in range(16): - packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")/SCTP(sport=1024,dport=1025,tag=1)], iface="%s")' % ( + packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d", nh=132)/SCTP(sport=1024,dport=1025,tag=1)], iface="%s")' % ( mac, i + 1, i + 2, itf) self.tester.scapy_append(packet) self.tester.scapy_execute() time.sleep(.5) - packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")/SCTP(sport=1025,dport=1024,tag=1)], iface="%s")' % ( + packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d", nh=132)/SCTP(sport=1025,dport=1024,tag=1)], iface="%s")' % ( mac, i + 2, i + 1, itf) self.tester.scapy_append(packet) self.tester.scapy_execute() @@ -221,6 +221,7 @@ class TestVfRss(TestCase): self.verify(len(self.dut_ports) >= 1, "Not enough ports available") self.vm0 = None + self.host_testpmd = None self.setup_1pf_1vf_1vm_env_flag = 0 self.setup_1pf_1vf_1vm_env(driver='') -- 2.5.0