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(-) 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": -- 2.17.1
[-- Attachment #1: Type: text/plain, Size: 314 bytes --] 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 [-- Attachment #2: TestKernelpfIavf.log --] [-- Type: application/octet-stream, Size: 480909 bytes --]
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
>
> Link speed unit conversion, the Mbps transfer to the Gbps
>
> Signed-off-by: Xie wei <weix.xie@intel.com>
Applied