test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps
@ 2020-09-24  3:23 Xie wei
  2020-09-24  3:24 ` Xie, WeiX
  2020-10-12  8:07 ` Tu, Lijuan
  0 siblings, 2 replies; 4+ messages in thread
From: Xie wei @ 2020-09-24  3:23 UTC (permalink / raw)
  To: dts; +Cc: Xie wei

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps
  2020-09-24  3:23 [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps Xie wei
@ 2020-09-24  3:24 ` Xie, WeiX
  2020-09-29  2:07   ` Ma, LihongX
  2020-10-12  8:07 ` Tu, Lijuan
  1 sibling, 1 reply; 4+ messages in thread
From: Xie, WeiX @ 2020-09-24  3:24 UTC (permalink / raw)
  To: dts

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps
  2020-09-24  3:24 ` Xie, WeiX
@ 2020-09-29  2:07   ` Ma, LihongX
  0 siblings, 0 replies; 4+ messages in thread
From: Ma, LihongX @ 2020-09-29  2:07 UTC (permalink / raw)
  To: Xie, WeiX, dts

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
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps
  2020-09-24  3:23 [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps Xie wei
  2020-09-24  3:24 ` Xie, WeiX
@ 2020-10-12  8:07 ` Tu, Lijuan
  1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-10-12  8:07 UTC (permalink / raw)
  To: Xie, WeiX, dts; +Cc: Xie, WeiX

> Link speed unit conversion, the Mbps transfer to the Gbps
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>

Applied

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24  3:23 [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:the Mbps transfer to the Gbps Xie wei
2020-09-24  3:24 ` Xie, WeiX
2020-09-29  2:07   ` Ma, LihongX
2020-10-12  8:07 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox