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

Message ID 1616549906-20484-1-git-send-email-junx.w.zhou@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/link_status_interrupt: make copper cable can sense the interruption |

Commit Message

Zhou, JunX W March 24, 2021, 1:38 a.m. UTC
  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(+)
  

Comments

Zhou, JunX W March 24, 2021, 1:45 a.m. UTC | #1
>-----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>
  
Tu, Lijuan March 25, 2021, 5:56 a.m. UTC | #2
> -----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
  

Patch

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