[V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps
diff mbox series

Message ID 20200924032316.28815-1-weix.xie@intel.com
State Accepted
Headers show
Series
  • [V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps
Related show

Commit Message

Xie, WeiX Sept. 24, 2020, 3:23 a.m. UTC
Link speed unit conversion, the Mbps transfer to the Gbps

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Xie, WeiX Sept. 24, 2020, 3:24 a.m. UTC | #1
Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei


> -----Original Message-----
> From: Xie, WeiX
> Sent: Thursday, September 24, 2020 11:23 AM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts][PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to
> the Gbps
LihongX Ma Sept. 29, 2020, 2:07 a.m. UTC | #2
Why need to change the Mbps to Gbps, if it is the dpdk changed, can you add the commit id to the commit comments.

Regards,
Ma,lihong

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xie, WeiX
> Sent: Thursday, September 24, 2020 11:24 AM
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps
> transfer to the Gbps
>
Tu, Lijuan Oct. 12, 2020, 8:07 a.m. UTC | #3
> Link speed unit conversion, the Mbps transfer to the Gbps
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>

Applied

Patch
diff mbox series

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":