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 95B4B9251 for ; Tue, 5 Jan 2016 14:42:19 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 05 Jan 2016 05:42:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,525,1444719600"; d="scan'208";a="886701312" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga002.fm.intel.com with ESMTP; 05 Jan 2016 05:42:19 -0800 Message-ID: <568BC7BC.2080308@intel.com> Date: Tue, 05 Jan 2016 21:40:12 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Yulong Pei , dts@dpdk.org References: <1451033772-22540-1-git-send-email-yulong.pei@intel.com> In-Reply-To: <1451033772-22540-1-git-send-email-yulong.pei@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 05 Jan 2016 13:42:20 -0000 Applied. Thanks. On 12/25/2015 04:56 PM, Yulong Pei wrote: > 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): > > self.vm0_dut_ports = self.vm_dut_0.get_ports('any') > > + port_id_0 = 0 > + > self.vm0_testpmd = 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 = self.vm0_testpmd.get_port_mac(port_id_0) > self.vm0_testpmd.execute_cmd('set fwd mac') > self.vm0_testpmd.execute_cmd('start') > > @@ -118,7 +122,7 @@ class TestVfPacketRxtx(TestCase): > rx_port = self.tester.get_local_port(self.dut_ports[1]) > tgen_ports.append((tx_port, rx_port)) > > - dst_mac = self.vm_dut_0.get_mac_address(self.vm0_dut_ports[0]) > + dst_mac = pmd_vf0_mac > src_mac = self.tester.get_mac(tx_port) > > pkt_param=[("ether", {'dst': dst_mac, 'src': src_mac})]