test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] tests: fix device link down failed in pmd_bonded
@ 2019-09-11  0:29 Xinfeng Zhao
  2019-09-11  8:38 ` Zhao, XinfengX
  2019-09-20  6:16 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Xinfeng Zhao @ 2019-09-11  0:29 UTC (permalink / raw)
  To: dts; +Cc: Xinfeng Zhao

Signed-off-by: Xinfeng Zhao <xinfengx.zhao@intel.com>
---
 tests/TestSuite_pmd_bonded.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/TestSuite_pmd_bonded.py b/tests/TestSuite_pmd_bonded.py
index 9ae6d32..f0c39d8 100644
--- a/tests/TestSuite_pmd_bonded.py
+++ b/tests/TestSuite_pmd_bonded.py
@@ -806,6 +806,14 @@ UDP(sport=srcport, dport=destport)/Raw(load="\x50"*%s)], iface="%s", count=%d)'
 
         self.tester_bond = "bond0"
 
+        for port in self.dut_ports:
+            tester_port = self.tester.get_local_port(port)
+            intf = self.tester.get_interface(tester_port)
+            driver = self.tester.ports_info[tester_port]['port'].get_nic_driver()
+            if driver == "i40e":
+                self.tester.send_expect("ethtool --set-priv-flags %s link-down-on-close on"
+                        % intf, "# ", 10)
+
     def set_up(self):
         """
         Run before each test case.
-- 
2.17.1


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

end of thread, other threads:[~2019-09-20  6:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11  0:29 [dts] [PATCH] tests: fix device link down failed in pmd_bonded Xinfeng Zhao
2019-09-11  8:38 ` Zhao, XinfengX
2019-09-20  6:16 ` Tu, Lijuan

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).