From: "zhao,meijuan" <meijuanx.zhao@intel.com>
To: dts@dpdk.org
Cc: "zhao,meijuan" <meijuanx.zhao@intel.com>
Subject: [dts] [PATCH V2 1/2] tests/vf packet rxtx : add dpdk pf + dpdk vf test scenario
Date: Wed, 6 Jun 2018 10:54:01 +0800 [thread overview]
Message-ID: <1528253642-46578-1-git-send-email-meijuanx.zhao@intel.com> (raw)
add dpdk pf + dpdk vf test scenario
Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
---
tests/TestSuite_vf_packet_rxtx.py | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_vf_packet_rxtx.py b/tests/TestSuite_vf_packet_rxtx.py
index 6a29d23..00b8656 100644
--- a/tests/TestSuite_vf_packet_rxtx.py
+++ b/tests/TestSuite_vf_packet_rxtx.py
@@ -252,9 +252,15 @@ class TestVfPacketRxtx(TestCase):
self.setup_3vf_2vm_env_flag = 0
- def test_vf_reset(self):
+ def test_vf_reset_kernel_pf(self):
self.setup_3vf_2vm_env(driver='')
+ self.vf_reset()
+
+ def test_vf_reset_dpdk_pf(self):
+ self.setup_3vf_2vm_env(driver='igb_uio')
+ self.vf_reset()
+ def vf_reset(self):
self.vm0_dut_ports = self.vm_dut_0.get_ports('any')
self.vm1_dut_ports = self.vm_dut_1.get_ports('any')
@@ -296,10 +302,9 @@ class TestVfPacketRxtx(TestCase):
vf0_rx_cnt = pmd0_vf0_stats['RX-packets']
self.verify(vf0_rx_cnt != 0, "no packet was received by vm0_VF0")
-
+
vf0_rx_err = pmd0_vf0_stats['RX-errors']
self.verify(vf0_rx_err == 0, "vm0_VF0 rx-errors")
-
vf1_tx_cnt = pmd0_vf1_stats['TX-packets']
self.verify(vf1_tx_cnt != 0, "no packet was transmitted by vm0_VF1")
@@ -307,7 +312,6 @@ class TestVfPacketRxtx(TestCase):
self.verify(vf1_tx_err == 0, "vm0_VF0 tx-errors")
self.verify(vf0_rx_cnt == vf1_tx_cnt, "vm0_VF0 failed to forward packets to vm0_VF1 when reset vm1_VF0 frequently")
-
def tear_down(self):
if self.setup_2pf_2vf_1vm_env_flag == 1:
--
1.9.3
next reply other threads:[~2018-06-06 2:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-06 2:54 zhao,meijuan [this message]
2018-06-06 2:54 ` [dts] [PATCH V2 2/2] test_plan/vf packet rxtx: " zhao,meijuan
2018-06-11 13:50 ` Liu, Yong
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=1528253642-46578-1-git-send-email-meijuanx.zhao@intel.com \
--to=meijuanx.zhao@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).