test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] [PATCH v2] tests pmd: do changes due to performance test
       [not found] <1488423318-8936-1-git-send-email-yulong.pei@intel.com>
@ 2017-03-02  3:14 ` Liu, Yong
  0 siblings, 0 replies; only message in thread
From: Liu, Yong @ 2017-03-02  3:14 UTC (permalink / raw)
  To: Yulong Pei, dts

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()
> +
> +

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-02  3:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1488423318-8936-1-git-send-email-yulong.pei@intel.com>
2017-03-02  3:14 ` [dts] [PATCH v2] tests pmd: do changes due to performance test Liu, Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).