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 A512E5A65 for ; Wed, 8 Jul 2015 16:06:55 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 08 Jul 2015 07:06:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,431,1432623600"; d="scan'208";a="602356414" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga003.jf.intel.com with ESMTP; 08 Jul 2015 07:06:53 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t68E6owr009989; Wed, 8 Jul 2015 22:06:50 +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 t68E6m0k009904; Wed, 8 Jul 2015 22:06:50 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t68E6mmh009900; Wed, 8 Jul 2015 22:06:48 +0800 From: Yong Liu To: dts@dpdk.org Date: Wed, 8 Jul 2015 22:06:46 +0800 Message-Id: <1436364406-9868-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] fix bug that virtualization module not work with IXIA portmap 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, 08 Jul 2015 14:06:56 -0000 From: Marvin Liu Signed-off-by: Marvin Liu diff --git a/framework/virt_dut.py b/framework/virt_dut.py index 5e4d212..d127c3c 100644 --- a/framework/virt_dut.py +++ b/framework/virt_dut.py @@ -312,16 +312,19 @@ class VirtDut(DPDKdut): # for two vfs connected to same tester port # need skip ping from devices on same pf device remotepci = self.tester.ports_info[remotePort]['pci'] - remoteport = self.tester.ports_info[remotePort]['port'] - vfs = [] - # vm_dut and tester in same dut - host_ip = self.crb['IP'].split(':')[0] - if self.crb['tester IP'] == host_ip: - vfs = remoteport.get_sriov_vfs_pci() - # if hostpci is vf of tester port - if hostpci == remotepci or hostpci in vfs: - print dts.RED("Skip ping from same PF device") - continue + port_type = self.tester.ports_info[remotePort]['type'] + # IXIA port should not check whether has vfs + if port_type != 'ixia': + remoteport = self.tester.ports_info[remotePort]['port'] + vfs = [] + # vm_dut and tester in same dut + host_ip = self.crb['IP'].split(':')[0] + if self.crb['tester IP'] == host_ip: + vfs = remoteport.get_sriov_vfs_pci() + # if hostpci is vf of tester port + if hostpci == remotepci or hostpci in vfs: + print dts.RED("Skip ping from same PF device") + continue ipv6 = self.get_ipv6_address(vmPort) if ipv6 == "Not connected": -- 1.9.3