[dts][PATCH V1] tests/vf_l2fwd: Optimize scripts
Yu Jiang
yux.jiang at intel.com
Wed Apr 19 07:14:33 CEST 2023
After bind back to kernel, execute "ifconfig .. up" to ensure pf port up
Signed-off-by: Yu Jiang <yux.jiang at intel.com>
---
tests/TestSuite_vf_l2fwd.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/TestSuite_vf_l2fwd.py b/tests/TestSuite_vf_l2fwd.py
index 3bac3744..f8c3f888 100644
--- a/tests/TestSuite_vf_l2fwd.py
+++ b/tests/TestSuite_vf_l2fwd.py
@@ -60,6 +60,9 @@ class TestVfL2fwd(TestCase):
VF_MAC_ADDR_port1 = "00:11:22:33:44:66"
# generate vf
self.dut.bind_interfaces_linux(self.kdriver)
+ for i_port in [self.dut.ports_info[self.dut_ports[0]]["intf"], self.dut.ports_info[self.dut_ports[1]]["intf"]]:
+ self.dut.send_expect("ifconfig %s up" % i_port, "# ")
+ self.dut.is_interface_up(i_port)
self.dut.generate_sriov_vfs_by_port(self.dut_ports[0], 1, self.kdriver)
self.sriov_vfs_port_0 = self.dut.ports_info[self.dut_ports[0]]["vfs_port"]
self.verify(len(self.sriov_vfs_port_0) != 0, "VF create failed")
--
2.25.1
More information about the dts
mailing list