From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 9235E8D3C for ; Fri, 25 Dec 2015 09:56:20 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 25 Dec 2015 00:56:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,477,1444719600"; d="scan'208";a="869233643" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 25 Dec 2015 00:56:18 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id tBP8uGE8029310; Fri, 25 Dec 2015 16:56:16 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id tBP8uECu022576; Fri, 25 Dec 2015 16:56:16 +0800 Received: (from ypei@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id tBP8uDCp022572; Fri, 25 Dec 2015 16:56:13 +0800 From: Yulong Pei To: dts@dpdk.org Date: Fri, 25 Dec 2015 16:56:12 +0800 Message-Id: <1451033772-22540-1-git-send-email-yulong.pei@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [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: Fri, 25 Dec 2015 08:56:21 -0000 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})] -- 2.1.0