[dts] [PATCH v2] tests pmd: do changes due to performance test

Liu, Yong yong.liu at intel.com
Thu Mar 2 04:14:22 CET 2017


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




More information about the dts mailing list