From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 76AA34CC7 for ; Thu, 25 Oct 2018 08:01:34 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2018 23:01:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,423,1534834800"; d="scan'208";a="98442871" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 24 Oct 2018 23:01:32 -0700 From: wenjieli To: dts@dpdk.org Cc: wenjieli Date: Thu, 25 Oct 2018 14:04:30 +0800 Message-Id: <1540447470-12750-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/shutdown_api: add the sagepond speed/duplex status in change_linkspeed X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2018 06:01:34 -0000 It is NOT a DPDK issue. With sagepond nic on DUT, after change DUT nic speed/duplex by linux commands "ethtool -s ethX speed SPEED duplex full", the tester nic speed and duplex will change to "Unknown" and disconnec from its peer port. "Unknown" is expected behavior, and will not check packet forwarding. Signed-off-by: wenjieli --- tests/TestSuite_shutdown_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index 52a8fbf..035d118 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -314,6 +314,8 @@ class TestShutdownApi(TestCase): self.dut.send_expect("port start all", "testpmd> ", 100) time.sleep(5) # sleep few seconds for link stable + if self.nic in ["sagepond"]: + config = ['Unknown!', 'Unknown! (255)'] for port in self.ports: out = self.tester.send_expect( "ethtool %s" % self.tester.get_interface(self.tester.get_local_port(port)), "# ") @@ -322,7 +324,8 @@ class TestShutdownApi(TestCase): self.verify("Duplex: %s" % config[1] in out, "Wrong link type reported by the self.tester.") self.dut.send_expect("start", "testpmd> ") - self.check_forwarding() + if self.nic not in ["sagepond"]: + self.check_forwarding() self.dut.send_expect("stop", "testpmd> ") def test_enable_disablejumbo(self): -- 2.17.2