From: Xie wei <weix.xie@intel.com>
To: dts@dpdk.org
Cc: Xie wei <weix.xie@intel.com>
Subject: [dts] [PATCH V1 2/2] tests/veb_switch: fix Rx bytes statistics
Date: Mon, 18 Jan 2021 15:09:24 +0800 [thread overview]
Message-ID: <20210118070924.23616-3-weix.xie@intel.com> (raw)
In-Reply-To: <20210118070924.23616-1-weix.xie@intel.com>
According to dpdk commit e8326d3, fix Rx bytes statistics.
Signed-off-by: Xie wei <weix.xie@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
next prev parent reply other threads:[~2021-01-18 7:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-18 7:09 [dts] [PATCH V1 0/2]fix " Xie wei
2021-01-18 7:09 ` [dts] [PATCH V1 1/2] tests/vf_jumboframe: fix " Xie wei
2021-01-18 7:09 ` Xie wei [this message]
2021-01-18 7:35 ` [dts] [PATCH V1 0/2]fix " Xie, WeiX
2021-01-19 9:02 ` Zhao, HaiyangX
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210118070924.23616-3-weix.xie@intel.com \
--to=weix.xie@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).