test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_veb_switch:fix Rx bytes statistics
@ 2021-09-09 18:20 Yang Lewei
  2021-09-28  0:23 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Lewei @ 2021-09-09 18:20 UTC (permalink / raw)
  To: dts; +Cc: Yang Lewei

According to dpdk commit e8326d3, fix Rx bytes statistics.

Signed-off-by: Yang Lewei <leweix.yang@intel.com>
---
 tests/TestSuite_veb_switch.py | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/tests/TestSuite_veb_switch.py b/tests/TestSuite_veb_switch.py
index cdd2b3c4..915296ff 100644
--- a/tests/TestSuite_veb_switch.py
+++ b/tests/TestSuite_veb_switch.py
@@ -283,18 +283,10 @@ class TestVEBSwitching(TestCase):
 
         self.dut.send_expect("stop", "testpmd>", 2)
         self.session_secondary.send_expect("stop", "testpmd>", 2)
-        out = self.session_secondary.send_expect("show port info 0", "testpmd>")
-        vf1_driver = re.findall("Driver\s*name:\s*(\w+)", out)[0]
 
         vf0_tx_stats = self.veb_get_pmd_stats("first", 0, "tx")
         vf1_rx_stats = self.veb_get_pmd_stats("second", 0, "rx")
-        if self.kdriver == 'ice':
-            vf1_rx_stats[-1] = vf1_rx_stats[-1] + 4
-        if self.kdriver == 'i40e':
-            if vf1_driver == 'net_iavf':
-                vf1_rx_stats[-1] = vf1_rx_stats[-1] + 4
-            else:
-                vf1_rx_stats[-1] = vf1_rx_stats[-1]
+        vf1_rx_stats[-1] = vf1_rx_stats[-1] + 4
         self.verify(vf0_tx_stats[0] != 0, "no packet was sent by VF0")
         self.verify(vf0_tx_stats == vf1_rx_stats, "VF1 failed to receive packets from VF0")
     
-- 
2.17.1


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

* Re: [dts] [PATCH V1] tests/TestSuite_veb_switch:fix Rx bytes statistics
  2021-09-09 18:20 [dts] [PATCH V1] tests/TestSuite_veb_switch:fix Rx bytes statistics Yang Lewei
@ 2021-09-28  0:23 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2021-09-28  0:23 UTC (permalink / raw)
  To: Yang, LeweiX, dts; +Cc: Yang, LeweiX

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Yang Lewei
> Sent: 2021年9月10日 2:21
> To: dts@dpdk.org
> Cc: Yang, LeweiX <leweix.yang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_veb_switch:fix Rx bytes statistics
> 
> According to dpdk commit e8326d3, fix Rx bytes statistics.
> 
> Signed-off-by: Yang Lewei <leweix.yang@intel.com>

Applied

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

end of thread, other threads:[~2021-09-28  0:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09 18:20 [dts] [PATCH V1] tests/TestSuite_veb_switch:fix Rx bytes statistics Yang Lewei
2021-09-28  0:23 ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	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

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


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