[dts] [PATCH V1] tests/kernelpf_iavf: optimize script

Song Jiale songx.jiale at intel.com
Wed Mar 8 13:06:44 CET 2023


to be compatible with i40e's mac rules and ensure that vf's mac address remains unchanged, 
reset vf's mac before the test starts.

Signed-off-by: Song Jiale <songx.jiale at intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 8780bb54..6b6c573c 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -93,6 +93,9 @@ class TestKernelpfIavf(TestCase):
             self.destroy_vm_env()
         elif self.env_done is False:
             self.setup_vm_env()
+        self.dut.send_expect(
+            "ip link set %s vf 0 mac %s" % (self.host_intf, self.vf_mac), "# "
+        )
 
     def setup_vm_env(self, driver="default", set_vf_mac=True):
         """
-- 
2.25.1



More information about the dts mailing list