From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6AD04F94 for ; Wed, 20 Sep 2017 11:58:48 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Sep 2017 02:58:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,420,1500966000"; d="scan'208";a="314164333" Received: from dpdk-test47.sh.intel.com ([10.67.118.152]) by fmsmga004.fm.intel.com with ESMTP; 20 Sep 2017 02:58:46 -0700 From: wang fei To: dts@dpdk.org Cc: wang fei Date: Wed, 20 Sep 2017 20:31:15 +0800 Message-Id: <1505910675-50844-1-git-send-email-feix.y.wang@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [Patch V1] framework/tester.py : add this function to support ixia to send fixed number of packets during certain period it is only for test_suite nic_single_core_perf, not for common use 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, 20 Sep 2017 09:58:48 -0000 Signed-off-by: wang fei --- framework/tester.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/framework/tester.py b/framework/tester.py index e7fb6bc..78202d0 100644 --- a/framework/tester.py +++ b/framework/tester.py @@ -491,6 +491,17 @@ class Tester(Crb): return out.rpartition('[')[0] + def traffic_generator_send_packets(self,portList,ratePercent,packetNum,delay=5,runTime=60): + """ + send fixed number of packets on specified ports during runTime time. + Be note that this function is only used for nic_single_core_perf test case, not for common use + """ + if self.check_port_list(portList, 'ixia'): + return self.ixia_packet_gen.send_packets(portList, ratePercent, packetNum,delay,runTime) + if not self.check_port_list(portList): + self.logger.warning("exception by mixed port types") + return None + def traffic_generator_throughput(self, portList, rate_percent=100, delay=5): """ Run throughput performance test on specified ports. -- 2.7.4