test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/vf_l2fwd: Optimize scripts
@ 2023-04-19  5:14 Yu Jiang
  2023-04-26  6:44 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Yu Jiang @ 2023-04-19  5:14 UTC (permalink / raw)
  To: lijuan.tu, dts; +Cc: Yu Jiang

After bind back to kernel, execute "ifconfig .. up" to ensure pf port up

Signed-off-by: Yu Jiang <yux.jiang@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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dts][PATCH V1] tests/vf_l2fwd: Optimize scripts
  2023-04-19  5:14 [dts][PATCH V1] tests/vf_l2fwd: Optimize scripts Yu Jiang
@ 2023-04-26  6:44 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2023-04-26  6:44 UTC (permalink / raw)
  To: lijuan.tu, dts, Yu Jiang; +Cc: Yu Jiang

On Wed, 19 Apr 2023 13:14:33 +0800, Yu Jiang <yux.jiang@intel.com> wrote:
> After bind back to kernel, execute "ifconfig .. up" to ensure pf port up
> 
> Signed-off-by: Yu Jiang <yux.jiang@intel.com>


Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-26  6:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-19  5:14 [dts][PATCH V1] tests/vf_l2fwd: Optimize scripts Yu Jiang
2023-04-26  6:44 ` lijuan.tu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).