From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6C4F6A0A0A; Wed, 24 Mar 2021 02:41:45 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3331940151; Wed, 24 Mar 2021 02:41:45 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 7F5014014F for ; Wed, 24 Mar 2021 02:41:43 +0100 (CET) IronPort-SDR: +q4KNewhnbIu84cQCaDtpKyc6n0X48HiIc2eQEIgkxGZ/a1MAI1hj96WXmfk206XEteVKWI2S5 Eb/zZ/s0dB1A== X-IronPort-AV: E=McAfee;i="6000,8403,9932"; a="210695166" X-IronPort-AV: E=Sophos;i="5.81,272,1610438400"; d="scan'208";a="210695166" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2021 18:41:42 -0700 IronPort-SDR: 2WoAL9uuANqKC2Hvu978ki3J2QqnQ7ZdoTd0RGoWeR1bW7C7sv1YZ5e+28BLpEKI5J5N1M1FCj bOcCidxq9z0w== X-IronPort-AV: E=Sophos;i="5.81,272,1610438400"; d="scan'208";a="452384636" Received: from unknown (HELO localhost.localdomain.localdomain) ([10.240.183.111]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2021 18:41:41 -0700 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Wed, 24 Mar 2021 09:38:26 +0800 Message-Id: <1616549906-20484-1-git-send-email-junx.w.zhou@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" use ethtool set priv flags to make copper cable can sense the interruption Signed-off-by: Zhou Jun --- 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