From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id B6F822B88 for ; Thu, 2 Mar 2017 04:22:02 +0100 (CET) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2017 19:22:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,228,1484035200"; d="scan'208";a="70639721" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by orsmga005.jf.intel.com with ESMTP; 01 Mar 2017 19:22:00 -0800 Message-ID: <58B78E0E.9080905@intel.com> Date: Thu, 02 Mar 2017 11:14:22 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Yulong Pei , dts@dpdk.org References: <1488423318-8936-1-git-send-email-yulong.pei@intel.com> In-Reply-To: <1488423318-8936-1-git-send-email-yulong.pei@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH v2] tests pmd: do changes due to performance test 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: Thu, 02 Mar 2017 03:22:03 -0000 Yulong, Please add port dependency check in single core case. Logic should like: if ports >=4: use 4 port function else: check port number >=2 use 2 port function On 03/02/2017 10:55 AM, Yulong Pei wrote: > + def test_perf_single_core_performance(self): > + """ > + Run single core performance > + """ > + if len(self.dut_ports) == 4: > + self.pmd_performance_4ports() > + else: > + self.pmd_performance_2ports() > + > +