From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 50A731396 for ; Tue, 27 Jan 2015 03:21:16 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 26 Jan 2015 18:16:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,471,1418112000"; d="scan'208";a="518009109" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga003.jf.intel.com with ESMTP; 26 Jan 2015 18:14:10 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t0R2LBHN017331; Tue, 27 Jan 2015 10:21:11 +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 t0R2L9iB011135; Tue, 27 Jan 2015 10:21:11 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t0R2L8is011131; Tue, 27 Jan 2015 10:21:08 +0800 From: Yong Liu To: dts@dpdk.org Date: Tue, 27 Jan 2015 10:21:06 +0800 Message-Id: <1422325266-11099-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1422247975-30646-1-git-send-email-yong.liu@intel.com> References: <1422247975-30646-1-git-send-email-yong.liu@intel.com> Subject: [dts] [PATCH] framework: enable DUT and Tester run in the same platform 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, 27 Jan 2015 02:21:16 -0000 Skip to ping self port when DUT and Tester in the same platform. Not support software performance in the same platform now. Signed-off-by: Yong Liu --- This patch based on "[PATCH 0/4] Support additional port configuration file". framework/tester.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/framework/tester.py b/framework/tester.py index 345ab41..9100967 100644 --- a/framework/tester.py +++ b/framework/tester.py @@ -73,6 +73,8 @@ class Tester(Crb): self.scapyCmds = [] self.bgCmds = [] self.bgItf = '' + self.packet_gen = None + self.ixia_packet_gen = None def init_ext_gen(self): """ @@ -287,6 +289,11 @@ class Tester(Crb): if hits[localPort]: continue + # skip ping self port + if (self.crb['IP'] == self.crb['tester IP']) and \ + (self.dut.ports_info[dutPort]['pci'] == self.ports_info[localPort]['pci']): + continue + ipv6 = self.dut.get_ipv6_address(dutPort) if ipv6 == "Not connected": continue @@ -440,6 +447,7 @@ class Tester(Crb): """ if not self.has_external_traffic_generator(): self.alt_session.send_expect('killall scapy 2>/dev/null; echo tester', '# ', 5) + if self.packet_gen: super(Tester, self).kill_all() def close(self): -- 1.9.3