[dts] [PATCH V1] tests/vf_kernel fix vlan issue

Liu, Yong yong.liu at intel.com
Thu Mar 8 11:52:03 CET 2018


Hi Meijuan,
Please disable vlan filter at end of this case. All test cases are using 
same host setup, we may not want this case affect following cases.

Thanks,
Marvin

On 02/11/2018 02:28 PM, zhao,meijuan wrote:
> add enable vlan filter/strip parameter,
> you can refer to dpdk 8b9bd0
>
> Signed-off-by: zhao,meijuan <meijuanx.zhao at intel.com>
> ---
>   tests/TestSuite_vf_kernel.py | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/tests/TestSuite_vf_kernel.py b/tests/TestSuite_vf_kernel.py
> index c5c150f..af222a8 100644
> --- a/tests/TestSuite_vf_kernel.py
> +++ b/tests/TestSuite_vf_kernel.py
> @@ -399,6 +399,8 @@ class TestVfKernel(TestCase):
>           verify add/delete vlan
>           """
>           vlan_ids = random.randint(1, 4095)
> +        self.dut_testpmd.execute_cmd("vlan set filter on 0")
> +        self.dut_testpmd.execute_cmd("vlan set strip on 0")
>           self.vm0_dut.send_expect("ifconfig %s up" % self.vm0_intf0, "#")
>           vm0_vf0_mac = self.vm0_dut.ports_info[0]['port'].get_mac_addr()
>   



More information about the dts mailing list