test suite reviews and discussions
 help / color / mirror / Atom feed
From: Peng Zhihong <zhihongx.peng@intel.com>
To: dts@dpdk.org
Cc: Peng Zhihong <zhihongx.peng@intel.com>
Subject: [dts] [PATCH V1] add support for cvl
Date: Fri, 25 Oct 2019 08:08:12 -0700	[thread overview]
Message-ID: <20191025150812.17223-1-zhihongx.peng@intel.com> (raw)

add support for cvl

Signed-off-by: Peng Zhihong <zhihongx.peng@intel.com>
---
 tests/TestSuite_userspace_ethtool.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index 116fd3a..9a30199 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -546,9 +546,14 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
         mtus = [1519, 2048]
         mtu_threshold = 2022
         offset = 0
+
         if self.nic in ['powerville', 'springville']:
             mtu_threshold = 2026
             offset = 4
+        elif self.nic in ['columbiaville_25g', 'columbiaville_100g']:
+            #mtu + ICE_ETH_OVERHEAD  = mtu + HEADER_SIZE['eth'] + offset (ICE_ETH_OVERHEAD is 26)
+            offset = 8
+
         for index in range(len(self.ports)):
             port = self.ports[index]
             # change mtu
@@ -561,12 +566,11 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
                 if mtu > mtu_threshold:
                     if self.nic in ['powerville', 'springville']:
                         mtu = mtu_threshold
-                    self.dut.send_expect("stop %s" % index, "EthApp>")
-                    self.dut.send_expect("mtu %d %d" % (index, mtu), "EthApp>")
-                    self.dut.send_expect("open %s" % index, "EthApp>")
+                self.dut.send_expect("stop %s" % index, "EthApp>")
                 self.dut.send_expect("mtu %d %d" % (index, mtu), "EthApp>")
-                time.sleep(5)
+                self.dut.send_expect("open %s" % index, "EthApp>")
                 ori_rx_pkts, _ = self.strip_portstats(index)
+                time.sleep(5)
                 pkt_size = mtu + HEADER_SIZE['eth'] + offset
                 pkt = Packet(pkt_type='UDP', pkt_len=pkt_size)
                 pkt.send_pkt(self.tester, tx_port=intf, count=4)
-- 
2.17.1


             reply	other threads:[~2019-10-25  7:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-25 15:08 Peng Zhihong [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-10-25 16:52 Peng Zhihong
2019-11-04  3:19 ` Tu, Lijuan
2019-10-23 15:59 [dts] [[PATCH " Peng Zhihong
2019-10-24  8:20 ` He, Zhiwei
2019-11-04  2:44 ` Tu, Lijuan

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=20191025150812.17223-1-zhihongx.peng@intel.com \
    --to=zhihongx.peng@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).