test suite reviews and discussions
 help / color / mirror / Atom feed
From: Lijuan Tu <lijuanx.a.tu@intel.com>
To: dts@dpdk.org
Cc: Lijuan Tu <lijuanx.a.tu@intel.com>
Subject: [dts] [PATCH V1 1/8] tests/vf_packet_rxtx: remove crc-strip parameter
Date: Fri, 12 May 2017 16:18:08 +0800	[thread overview]
Message-ID: <1494577095-45103-2-git-send-email-lijuanx.a.tu@intel.com> (raw)
In-Reply-To: <1494577095-45103-1-git-send-email-lijuanx.a.tu@intel.com>

Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
---
 tests/TestSuite_vf_packet_rxtx.py | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_vf_packet_rxtx.py b/tests/TestSuite_vf_packet_rxtx.py
index 3eb9737..50451f6 100644
--- a/tests/TestSuite_vf_packet_rxtx.py
+++ b/tests/TestSuite_vf_packet_rxtx.py
@@ -52,7 +52,10 @@ class TestVfPacketRxtx(TestCase):
                 self.host_testpmd = PmdOutput(self.dut)
                 eal_param = '-b %(vf0)s -b %(vf1)s' % {'vf0': self.sriov_vfs_port_0[0].pci,
                                                        'vf1': self.sriov_vfs_port_1[0].pci}
-                self.host_testpmd.start_testpmd("1S/2C/2T", "--crc-strip", eal_param=eal_param)
+                if (self.nic in ["niantic", "sageville", "sagepond"]):
+                    self.host_testpmd.start_testpmd("1S/9C/1T", "--txq=4 --rxq=4 ", eal_param=eal_param)
+                else:
+                    self.host_testpmd.start_testpmd("1S/5C/1T", "", eal_param=eal_param)
 
             # set up VM0 ENV
             self.vm0 = QEMUKvm(self.dut, 'vm0', 'vf_packet_rxtx')
@@ -114,7 +117,7 @@ class TestVfPacketRxtx(TestCase):
         self.vm0_dut_ports = self.vm_dut_0.get_ports('any')
         port_id_0 = 0
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
-        self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--crc-strip')
+        out = self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
         pmd_vf0_mac = self.vm0_testpmd.get_port_mac(port_id_0)
         self.vm0_testpmd.execute_cmd('set fwd mac')
         self.vm0_testpmd.execute_cmd('start')
@@ -132,6 +135,7 @@ class TestVfPacketRxtx(TestCase):
         pkt_param=[("ether", {'dst': dst_mac, 'src': src_mac})]
 
         result = self.tester.check_random_pkts(tgen_ports, allow_miss=False, params=pkt_param)
+        print self.vm0_testpmd.execute_cmd('show port stats all')
         self.verify(result != False, "VF0 failed to forward packets to VF1")
 
 
@@ -244,7 +248,7 @@ class TestVfPacketRxtx(TestCase):
         port_id_1 = 1
 
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
-        self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--crc-strip')
+        self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
         self.vm0_testpmd.execute_cmd('show port info all')
         pmd0_vf0_mac = self.vm0_testpmd.get_port_mac(port_id_0)
         self.vm0_testpmd.execute_cmd('set fwd mac')
@@ -253,7 +257,7 @@ class TestVfPacketRxtx(TestCase):
         time.sleep(2)
 
         self.vm1_testpmd = PmdOutput(self.vm_dut_1)
-        self.vm1_testpmd.start_testpmd(VM_CORES_MASK, '--crc-strip')
+        self.vm1_testpmd.start_testpmd(VM_CORES_MASK)
         self.vm1_testpmd.execute_cmd('show port info all')
 
         tx_port = self.tester.get_local_port(self.dut_ports[0])
@@ -305,6 +309,9 @@ class TestVfPacketRxtx(TestCase):
 
         for port_id in self.dut_ports:
             self.dut.destroy_sriov_vfs_by_port(port_id)
+            # DPDK-1754
+            intf = self.dut.ports_info[port_id]['intf']
+            self.dut.send_expect("ethtool -s %s autoneg on" % intf, "# ")
 
     def tear_down_all(self):
         pass
-- 
1.9.3

  reply	other threads:[~2017-05-12  8:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12  8:18 [dts] [PATCH V1 0/8] sync virtual tests to dpdk1705 Lijuan Tu
2017-05-12  8:18 ` Lijuan Tu [this message]
2017-05-15  1:56   ` [dts] [PATCH V1 1/8] tests/vf_packet_rxtx: remove crc-strip parameter Liu, Yong
2017-05-12  8:18 ` [dts] [PATCH V1 2/8] tests/vf_macfilter: " Lijuan Tu
2017-05-15  1:57   ` Liu, Yong
2017-05-12  8:18 ` [dts] [PATCH V1 3/8] tests/vf_offload: fix variable name typo and " Lijuan Tu
2017-05-15  1:57   ` Liu, Yong
2017-05-12  8:18 ` [dts] [PATCH V1 4/8] tests/vf_port_start_stop: make adjustment to dpdk1705 Lijuan Tu
2017-05-15  2:00   ` Liu, Yong
2017-05-12  8:18 ` [dts] [PATCH V1 5/8] test/vf_rss: remove crc-strip parameter, and check RSS config command Lijuan Tu
2017-05-15  2:01   ` Liu, Yong
2017-05-12  8:18 ` [dts] [PATCH V1 6/8] test/vf_to_vf_nic_bridge: remove crc-strip parameter and filter misc packets Lijuan Tu
2017-05-15  2:03   ` Liu, Yong
2017-05-12  8:18 ` [dts] [PATCH V1 7/8] tests/vm_power_manager: adjust to dpdk1705 Lijuan Tu
2017-05-15  2:05   ` Liu, Yong
2017-05-12  8:18 ` [dts] [PATCH 8/8] tests/vxlan_sample: " Lijuan Tu
2017-05-15  2:06   ` 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=1494577095-45103-2-git-send-email-lijuanx.a.tu@intel.com \
    --to=lijuanx.a.tu@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).