From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 670F8C40C for ; Fri, 24 Jul 2015 11:14:57 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 24 Jul 2015 02:14:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,537,1432623600"; d="scan'208";a="734734451" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga001.jf.intel.com with ESMTP; 24 Jul 2015 02:14:55 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6O9ErPH013992; Fri, 24 Jul 2015 17:14:53 +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 t6O9EpNh009170; Fri, 24 Jul 2015 17:14:53 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6O9EpDt009166; Fri, 24 Jul 2015 17:14:51 +0800 From: Yong Liu To: dts@dpdk.org Date: Fri, 24 Jul 2015 17:14:50 +0800 Message-Id: <1437729290-9134-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] Enable ipv6 for each tester port before scan 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, 24 Jul 2015 09:14:57 -0000 From: Marvin Liu If dts exit abnormal, tester port maybe remain ipv6 disabled. So before scan dut port, need make sure tester port ipv6 enable. Signed-off-by: Marvin Liu diff --git a/framework/dut.py b/framework/dut.py index 722b8a7..a5c9db3 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -176,6 +176,8 @@ class Dut(Crb): self.init_core_list() self.pci_devices_information() + # make sure ipv6 enable before scan + self.enable_tester_ipv6() # scan ports before restore interface self.scan_ports() # restore dut ports to kernel @@ -867,7 +869,7 @@ class Dut(Crb): port.disable_ipv6() def enable_tester_ipv6(self): - for tester_port in self.ports_map: + for tester_port in range(len(self.tester.ports_info)): if self.tester.ports_info[tester_port]['type'] != 'ixia': port = self.tester.ports_info[tester_port]['port'] port.enable_ipv6() -- 1.9.3