test suite reviews and discussions
 help / color / mirror / Atom feed
From: Yulong Pei <yulong.pei@intel.com>
To: dts@dpdk.org
Cc: Yulong Pei <yulong.pei@intel.com>
Subject: [dts] [PATCH] tests: add packet rxtx test case for dpdk pf and dpdk vf
Date: Mon, 21 Mar 2016 18:34:08 +0800	[thread overview]
Message-ID: <1458556448-16483-1-git-send-email-yulong.pei@intel.com> (raw)

Signed-off-by: Yulong Pei <yulong.pei@intel.com>
---
 tests/TestSuite_vf_packet_rxtx.py | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_vf_packet_rxtx.py b/tests/TestSuite_vf_packet_rxtx.py
index a632a44..599bc8d 100644
--- a/tests/TestSuite_vf_packet_rxtx.py
+++ b/tests/TestSuite_vf_packet_rxtx.py
@@ -100,11 +100,13 @@ class TestVfPacketRxtx(TestCase):
 
         self.setup_2pf_2vf_1vm_env_flag = 0
 
-######1. test case for kernel pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx.
 
-    def test_kernel_2pf_2vf_1vm(self):
+    def packet_rx_tx(self, driver='default'):
 
-        self.setup_2pf_2vf_1vm_env(driver='')
+        if driver == 'igb_uio':
+            self.setup_2pf_2vf_1vm_env(driver='igb_uio')
+        else:
+            self.setup_2pf_2vf_1vm_env(driver='')
 
         self.vm0_dut_ports = self.vm_dut_0.get_ports('any')
         port_id_0 = 0
@@ -133,6 +135,17 @@ class TestVfPacketRxtx(TestCase):
         result = self.tester.check_random_pkts(tgen_ports, allow_miss=False, params=pkt_param)
         self.verify(result != False, "VF0 failed to forward packets to VF1")
 
+
+######1. test case for kernel pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx.
+    def test_kernel_2pf_2vf_1vm(self):
+
+        self.packet_rx_tx(driver='')
+
+######2. test case for dpdk pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx.
+    def test_dpdk_2pf_2vf_1vm(self):
+
+        self.packet_rx_tx(driver='igb_uio')
+
     def setup_3vf_2vm_env(self, driver='default'):
 
         self.used_dut_port = self.dut_ports[0]
-- 
2.1.0

             reply	other threads:[~2016-03-21 10:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-21 10:34 Yulong Pei [this message]
2016-03-22  7:24 ` 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=1458556448-16483-1-git-send-email-yulong.pei@intel.com \
    --to=yulong.pei@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).