[dts] [PATCH V1 2/2] tests/veb_switch: fix Rx bytes statistics
Xie wei
weix.xie at intel.com
Mon Jan 18 08:09:24 CET 2021
According to dpdk commit e8326d3, fix Rx bytes statistics.
Signed-off-by: Xie wei <weix.xie at 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
More information about the dts
mailing list