From: Zhou Jun <junx.w.zhou@intel.com>
To: dts@dpdk.org
Cc: Zhou Jun <junx.w.zhou@intel.com>
Subject: [dts] [PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption
Date: Wed, 24 Mar 2021 09:38:26 +0800 [thread overview]
Message-ID: <1616549906-20484-1-git-send-email-junx.w.zhou@intel.com> (raw)
use ethtool set priv flags to make copper cable can sense
the interruption
Signed-off-by: Zhou Jun <junx.w.zhou@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
next reply other threads:[~2021-03-24 1:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-24 1:38 Zhou Jun [this message]
2021-03-24 1:45 ` Zhou, JunX W
2021-03-25 5:56 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1616549906-20484-1-git-send-email-junx.w.zhou@intel.com \
--to=junx.w.zhou@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).