[dts] [PATCH V2 2/4] tests/vf_vlan: modify code to adapt avx512

Tu, Lijuan lijuan.tu at intel.com
Fri Nov 5 13:31:38 CET 2021



> -----Original Message-----
> From: dts <dts-bounces at dpdk.org> On Behalf Of Xiang An
> Sent: 2021年11月4日 14:52
> To: dts at dpdk.org
> Cc: An, XiangX <xiangx.an at intel.com>
> Subject: [dts] [PATCH V2 2/4] tests/vf_vlan: modify code to adapt avx512
> 
> Based on dpdk commit:4b64ccb328 modify dts code to adapt avx512.
> 
> Signed-off-by: Xiang An <xiangx.an at intel.com>
> ---
>  tests/TestSuite_vf_vlan.py | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index
> 127eca3..ff3e13f 100644
> --- a/tests/TestSuite_vf_vlan.py
> +++ b/tests/TestSuite_vf_vlan.py
> @@ -35,7 +35,7 @@ import time
> 
>  from framework.packet import Packet
>  from framework.pmd_output import PmdOutput -from framework.settings
> import get_nic_name
> +from framework.settings import get_nic_name, load_global_setting,
> +DPDK_RXMODE_SETTING
>  from framework.test_case import TestCase  from framework.virt_common
> import VM
> 
> @@ -346,7 +346,10 @@ class TestVfVlan(TestCase):
>          self.vm0_dut_ports = self.vm_dut_0.get_ports('any')
> 
>          self.vm0_testpmd = PmdOutput(self.vm_dut_0)
> -        self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
> +        if load_global_setting(DPDK_RXMODE_SETTING) == 'avx512':
> +            self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--enable-rx-cksum')
> +        else:
> +            self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
>          self.vm0_testpmd.execute_cmd('set fwd rxonly')
>          self.vm0_testpmd.execute_cmd('set verbose 1')
>          self.vm0_testpmd.execute_cmd('vlan set strip on 0') @@ -417,7 +420,10
> @@ class TestVfVlan(TestCase):
>          if self.kdriver == "i40e":
>              self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '')
>          else:
> -            self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
> +            if load_global_setting(DPDK_RXMODE_SETTING) == 'avx512':
> +                self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--enable-rx-
> cksum')
> +            else:
> +                self.vm0_testpmd.start_testpmd(VM_CORES_MASK)

AVX512 should have the same behavior with other path,  is this a know issue in dpdk21.11 ? if not, please submit a bug to dpdk.


More information about the dts mailing list