[V1] tests/link_status_interrupt: make copper cable can sense the interruption
Commit Message
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
>-----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>
> -----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
@@ -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())