[dts] [PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption

Zhou Jun junx.w.zhou at intel.com
Wed Mar 24 02:38:26 CET 2021


use ethtool set priv flags to make copper cable can sense
 the interruption

Signed-off-by: Zhou Jun <junx.w.zhou at intel.com>
---
 tests/TestSuite_link_status_interrupt.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/TestSuite_link_status_interrupt.py b/tests/TestSuite_link_status_interrupt.py
index e5fd69e..2e8c282 100644
--- a/tests/TestSuite_link_status_interrupt.py
+++ b/tests/TestSuite_link_status_interrupt.py
@@ -77,6 +77,8 @@ class TestLinkStatusInterrupt(TestCase):
         """
         self.intf = self.tester.get_interface(
             self.tester.get_local_port(dutPort))
+        if self.dut.get_os_type() != 'freebsd':
+            self.tester.send_expect("ethtool --set-priv-flags %s link-down-on-close on" % self.intf, "#", 10)
         self.tester.send_expect("ifconfig %s %s" %
                                 (self.intf, status.lower()), "# ", 10)
         verify_point = "Port %s Link %s" % (dutPort, status.lower()) 
-- 
1.8.3.1



More information about the dts mailing list