[dts] [PATCH V1] tests/TestSuite_vf_vlan:set filter on before add vlan

zhang,yan yanx.a.zhang at intel.com
Tue Jul 23 04:58:18 CEST 2019


set filter on before add vlan.
Otherwise the following error will be reported:
    ---Port 0: vlan-filtering disabled
    ---rte_eth_dev_vlan_filter(port_pi=0, vlan_id=4095, on=1) failed diag=-38

Signed-off-by: zhang,yan <yanx.a.zhang at intel.com>
---
 tests/TestSuite_vf_vlan.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py
index d0175b3..f50a7e5 100644
--- a/tests/TestSuite_vf_vlan.py
+++ b/tests/TestSuite_vf_vlan.py
@@ -289,6 +289,7 @@ class TestVfVlan(TestCase):
             # if you want insert tx_vlan,
             # please enable rx_vlan at the same time
             if self.kdriver == "i40e":
+                self.vm0_testpmd.execute_cmd('vlan set filter on 0')
                 self.vm0_testpmd.execute_cmd('rx_vlan add %d 0' % tx_vlan)
             self.vm0_testpmd.execute_cmd('stop')
             self.vm0_testpmd.execute_cmd('port stop all')
-- 
2.17.2



More information about the dts mailing list