[dts] [PATCH V1]perf_vm2vm_virtio_net_perf: use same socket cores with nic port numa id
Tu, Lijuan
lijuan.tu at intel.com
Wed Jul 1 08:06:16 CEST 2020
Applied, thanks
> -----Original Message-----
> From: dts <dts-bounces at dpdk.org> On Behalf Of Xiao Qimai
> Sent: 2020年6月23日 16:27
> To: dts at dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao at intel.com>
> Subject: [dts] [PATCH V1]perf_vm2vm_virtio_net_perf: use same socket cores
> with nic port numa id
>
> Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
> ---
> tests/TestSuite_perf_vm2vm_virtio_net_perf.py | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
> b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
> index 532cdf7..bc9cb3a 100644
> --- a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
> +++ b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
> @@ -54,8 +54,11 @@ from copy import deepcopy
>
> class TestPerfVM2VMVirtioNetPerf(TestCase):
> def set_up_all(self):
> - core_config = "1S/4C/1T"
> - self.cores_list = self.dut.get_core_list(core_config)
> + self.dut_ports = self.dut.get_ports()
> + self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing")
> + # get core mask
> + self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
> + self.cores_list = self.dut.get_core_list('all', socket=self.ports_socket)
> self.verify(len(self.cores_list) >= 4,
> "There has not enough cores to test this suite %s" %
> self.suite_name)
> --
> 1.8.3.1
More information about the dts
mailing list