From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id C58678D91 for ; Wed, 30 Dec 2015 04:36:47 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP; 29 Dec 2015 19:36:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,498,1444719600"; d="scan'208";a="21026235" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 29 Dec 2015 19:36:46 -0800 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 29 Dec 2015 19:36:46 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 29 Dec 2015 19:36:46 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.133]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.57]) with mapi id 14.03.0248.002; Wed, 30 Dec 2015 11:36:44 +0800 From: "Pei, Yulong" To: "Xu, Qian Q" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] use get_port_mac() to get vf mac in testpmd Thread-Index: AQHRPvIiK0ntGysG0UaMuvDElfpPmp7iVG+AgACToXA= Date: Wed, 30 Dec 2015 03:36:43 +0000 Message-ID: <188971FCDA171749BED5DA74ABF3E6F00351FB5B@shsmsx102.ccr.corp.intel.com> References: <1451033772-22540-1-git-send-email-yulong.pei@intel.com> <82F45D86ADE5454A95A89742C8D1410E031A490F@shsmsx102.ccr.corp.intel.com> In-Reply-To: <82F45D86ADE5454A95A89742C8D1410E031A490F@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmY1YWExYzktNmQ2Yi00NTk4LWJlZTItYWNhM2JkNTI0OGZhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjQuMTAuMTkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUFF4a3RRY3d4S3dCeXRHeVNZRDRRajVTUmJhM1NFeFN6a1FGSkRRNlIwWT0ifQ== x-ctpclassification: CTP_IC 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] use get_port_mac() to get vf mac in testpmd 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: Wed, 30 Dec 2015 03:36:48 -0000 + self.vm0_testpmd.execute_cmd('show port info all') It can show "all" the port info that bind to testpmd and print the info to= the log, it can help to debug when bump into issues. -----Original Message----- From: Xu, Qian Q=20 Sent: Wednesday, December 30, 2015 10:46 AM To: Pei, Yulong ; dts@dpdk.org Subject: RE: [dts] [PATCH] use get_port_mac() to get vf mac in testpmd + self.vm0_testpmd.execute_cmd('show port info all') + pmd_vf0_mac =3D self.vm0_testpmd.get_port_mac(port_id_0) In fact, self.vm0_testpmd.execute_cmd('show port info all') is not needed, = get_port_mac has called the function to show port info port_id Thanks Qian -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yulong Pei Sent: Friday, December 25, 2015 4:56 PM To: dts@dpdk.org Subject: [dts] [PATCH] use get_port_mac() to get vf mac in testpmd use get_port_mac() to get vf mac in testpmd Signed-off-by: Yulong Pei --- tests/TestSuite_vf_packet_rxtx.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_vf_packet_rxtx.py b/tests/TestSuite_vf_packet_= rxtx.py index e5a9aca..19bc331 100644 --- a/tests/TestSuite_vf_packet_rxtx.py +++ b/tests/TestSuite_vf_packet_rxtx.py @@ -106,8 +106,12 @@ class TestVfPacketRxtx(TestCase): =20 self.vm0_dut_ports =3D self.vm_dut_0.get_ports('any') =20 + port_id_0 =3D 0 + self.vm0_testpmd =3D PmdOutput(self.vm_dut_0) self.vm0_testpmd.start_testpmd(VM_CORES_MASK) + self.vm0_testpmd.execute_cmd('show port info all') + pmd_vf0_mac =3D self.vm0_testpmd.get_port_mac(port_id_0) self.vm0_testpmd.execute_cmd('set fwd mac') self.vm0_testpmd.execute_cmd('start') =20 @@ -118,7 +122,7 @@ class TestVfPacketRxtx(TestCase): rx_port =3D self.tester.get_local_port(self.dut_ports[1]) tgen_ports.append((tx_port, rx_port)) =20 - dst_mac =3D self.vm_dut_0.get_mac_address(self.vm0_dut_ports[0]) + dst_mac =3D pmd_vf0_mac src_mac =3D self.tester.get_mac(tx_port) =20 pkt_param=3D[("ether", {'dst': dst_mac, 'src': src_mac})] --=20 2.1.0