* [dts] [PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption
@ 2021-03-24 1:38 Zhou Jun
2021-03-24 1:45 ` Zhou, JunX W
0 siblings, 1 reply; 3+ messages in thread
From: Zhou Jun @ 2021-03-24 1:38 UTC (permalink / raw)
To: dts; +Cc: Zhou Jun
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption
2021-03-24 1:38 [dts] [PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption Zhou Jun
@ 2021-03-24 1:45 ` Zhou, JunX W
2021-03-25 5:56 ` Tu, Lijuan
0 siblings, 1 reply; 3+ messages in thread
From: Zhou, JunX W @ 2021-03-24 1:45 UTC (permalink / raw)
To: Zhou, JunX W, dts
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
>-----Original Message-----
>From: Zhou Jun [mailto:junx.w.zhou@intel.com]
>Sent: Wednesday, March 24, 2021 9:38 AM
>To: dts@dpdk.org
>Cc: Zhou, JunX W <junx.w.zhou@intel.com>
>Subject: [dts][PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption
>
>use ethtool set priv flags to make copper cable can sense the interruption
>
>Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
Tested-by: Zhou, Jun <junx.w.zhou@intel.com>
[-- Attachment #2: TestLinkStatusInterrupt.log --]
[-- Type: application/octet-stream, Size: 444609 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption
2021-03-24 1:45 ` Zhou, JunX W
@ 2021-03-25 5:56 ` Tu, Lijuan
0 siblings, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2021-03-25 5:56 UTC (permalink / raw)
To: Zhou, JunX W, Zhou, JunX W, dts
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Zhou, JunX W
> Sent: 2021年3月24日 9:46
> To: Zhou, JunX W <junx.w.zhou@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/link_status_interrupt: make copper cable can
> sense the interruption
>
> >-----Original Message-----
> >From: Zhou Jun [mailto:junx.w.zhou@intel.com]
> >Sent: Wednesday, March 24, 2021 9:38 AM
> >To: dts@dpdk.org
> >Cc: Zhou, JunX W <junx.w.zhou@intel.com>
> >Subject: [dts][PATCH V1] tests/link_status_interrupt: make copper cable can
> sense the interruption
> >
> >use ethtool set priv flags to make copper cable can sense the interruption
> >
> >Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
>
> Tested-by: Zhou, Jun <junx.w.zhou@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-25 5:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24 1:38 [dts] [PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption Zhou Jun
2021-03-24 1:45 ` Zhou, JunX W
2021-03-25 5:56 ` 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).