diff mbox series

[V1,8/9] tests/kernelpf_iavf: update case code for driver change

Message ID 1634717221-221075-8-git-send-email-songx.jiale@intel.com (mailing list archive)
State Superseded
Headers show
Series [V1,1/9] tests/cvl_dcf_flow_priority: update case code for driver change | expand

Commit Message

Jiale Song Oct. 20, 2021, 8:07 a.m. UTC
Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 6a858fc..7b3d891 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -140,6 +140,8 @@  class TestKernelpfIavf(TestCase):
         # bind to default driver
         self.bind_nic_driver(self.dut_ports, driver="")
         self.used_dut_port = self.dut_ports[0]
+        if self.nic.startswith('columbiaville'):
+            self.dut.send_expect('ethtool --set-priv-flags %s vf-vlan-pruning on' % self.host_intf, "# ")
         self.dut.generate_sriov_vfs_by_port(
             self.used_dut_port, 1, driver=driver)
         self.sriov_vfs_port = self.dut.ports_info[
@@ -1036,3 +1038,5 @@  class TestKernelpfIavf(TestCase):
         if self.env_done:
             self.destroy_vm_env()
 
+        if self.nic.startswith('columbiaville'):
+            self.dut.send_expect('ethtool --set-priv-flags %s vf-vlan-pruning off' % self.host_intf, "# ")