From patchwork Thu Sep 24 03:23:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 78628 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A78F3A04B1; Thu, 24 Sep 2020 05:21:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5656F1D9DC; Thu, 24 Sep 2020 05:21:16 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 2DA1E1D6DE for ; Thu, 24 Sep 2020 05:21:15 +0200 (CEST) IronPort-SDR: ZsDPgg3emVaVlmiQLz16IZpSJ/foPgp4jsoVuMvr8i3RiKH44hBIEilih3k7ee7eUNleJzTcs/ DSg4F1jw2nwg== X-IronPort-AV: E=McAfee;i="6000,8403,9753"; a="158442961" X-IronPort-AV: E=Sophos;i="5.77,296,1596524400"; d="scan'208";a="158442961" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2020 20:21:14 -0700 IronPort-SDR: LUEdTA2V0OWYICvvk64Svk6rsdJsftGf0pPaCUPCJrqHNtdNLhLHT4vfgbYJxqvBM252NRcOfI SZ7Bt2sijp7w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,296,1596524400"; d="scan'208";a="322820052" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 23 Sep 2020 20:21:12 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Thu, 24 Sep 2020 11:23:16 +0800 Message-Id: <20200924032316.28815-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Link speed unit conversion, the Mbps transfer to the Gbps Signed-off-by: Xie wei Tested-by: Xie,WeiX < weix.xie@intel.com> --- tests/TestSuite_kernelpf_iavf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index 66389a29..965c6593 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -144,7 +144,7 @@ class TestKernelpfIavf(TestCase): self.sriov_vfs_port = self.dut.ports_info[ self.used_dut_port]['vfs_port'] out = self.dut.send_expect('ethtool %s' % self.host_intf, '#') - self.speed = re.findall('Speed: (\d*)', out)[0] + self.speed = int(re.findall('Speed: (\d*)', out)[0])//1000 if self.nic.startswith('columbiaville'): self.dut.send_expect("ip link set %s vf 0 spoofchk off" %(self.host_intf), "# ") if self.running_case == "test_vf_multicast":