From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 944FA2142 for ; Fri, 26 Feb 2016 04:11:14 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP; 25 Feb 2016 19:11:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,498,1449561600"; d="scan'208";a="55024720" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 25 Feb 2016 19:11:13 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 25 Feb 2016 19:11:13 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 25 Feb 2016 19:11:12 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.24]) by shsmsx102.ccr.corp.intel.com ([169.254.2.232]) with mapi id 14.03.0248.002; Fri, 26 Feb 2016 11:11:10 +0800 From: "Liu, Yong" To: "Tu, LijuanX A" , "Xu, Qian Q" , "Xu, HuilongX" , "Pei, Yulong" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH]tests vf_rss: use get_port_mac() to get vf mac in testpmd, add nh=132 to assign sctp packet Thread-Index: AQHRb2x3/jt+fr4VpEuK4zmrHiUncZ89p8IA Date: Fri, 26 Feb 2016 03:11:09 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E144FC409@SHSMSX103.ccr.corp.intel.com> References: <1456363680-12939-1-git-send-email-lijuanx.a.tu@intel.com> In-Reply-To: <1456363680-12939-1-git-send-email-lijuanx.a.tu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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: Fri, 26 Feb 2016 03:11:15 -0000 Applied. Thanks. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Lijuan Tu > Sent: Thursday, February 25, 2016 9:28 AM > To: Xu, Qian Q; Xu, HuilongX; Pei, Yulong; dts@dpdk.org > Subject: [dts] [PATCH]tests vf_rss: use get_port_mac() to get vf mac in > testpmd, add nh=3D132 to assign sctp packet >=20 > Signed-off-by: Lijuan Tu > --- > tests/TestSuite_vf_rss.py | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) >=20 > 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 =3D self.vm_dut_0.get_mac_address(0) > + mac =3D self.vm0_testpmd.get_port_mac(0) > # send packet with different source and dest ip > if tran_type =3D=3D "ipv4-other": > for i in range(16): > @@ -124,12 +124,12 @@ class TestVfRss(TestCase): > time.sleep(.5) > elif tran_type =3D=3D "ipv6-sctp": > for i in range(16): > - packet =3D > r'sendp([Ether(dst=3D"%s")/IPv6(src=3D"3ffe:2501:200:1fff::%d", > dst=3D"3ffe:2501:200:3::%d")/SCTP(sport=3D1024,dport=3D1025,tag=3D1)], if= ace=3D"%s")' % > ( > + packet =3D > r'sendp([Ether(dst=3D"%s")/IPv6(src=3D"3ffe:2501:200:1fff::%d", > dst=3D"3ffe:2501:200:3::%d", nh=3D132)/SCTP(sport=3D1024,dport=3D1025,tag= =3D1)], > iface=3D"%s")' % ( > mac, i + 1, i + 2, itf) > self.tester.scapy_append(packet) > self.tester.scapy_execute() > time.sleep(.5) > - packet =3D > r'sendp([Ether(dst=3D"%s")/IPv6(src=3D"3ffe:2501:200:1fff::%d", > dst=3D"3ffe:2501:200:3::%d")/SCTP(sport=3D1025,dport=3D1024,tag=3D1)], if= ace=3D"%s")' % > ( > + packet =3D > r'sendp([Ether(dst=3D"%s")/IPv6(src=3D"3ffe:2501:200:1fff::%d", > dst=3D"3ffe:2501:200:3::%d", nh=3D132)/SCTP(sport=3D1025,dport=3D1024,tag= =3D1)], > iface=3D"%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) >=3D 1, "Not enough ports availa= ble") >=20 > self.vm0 =3D None > + self.host_testpmd =3D None > self.setup_1pf_1vf_1vm_env_flag =3D 0 > self.setup_1pf_1vf_1vm_env(driver=3D'') >=20 > -- > 2.5.0