[dts] [PATCH V2] Modify the clv offset code
Peng Zhihong
zhihongx.peng at intel.com
Mon Oct 21 13:21:43 CEST 2019
Signed-off-by: Peng Zhihong <zhihongx.peng at intel.com>
---
tests/TestSuite_userspace_ethtool.py | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index 116fd3a..94918e9 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -546,9 +546,16 @@ 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']:
+ #ICE_ETH_OVERHEAD is 8
+ offset = 8
+ else:
+ pass
+
for index in range(len(self.ports)):
port = self.ports[index]
# change mtu
@@ -561,10 +568,9 @@ 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>")
+ self.dut.send_expect("open %s" % index, "EthApp>")
time.sleep(5)
ori_rx_pkts, _ = self.strip_portstats(index)
pkt_size = mtu + HEADER_SIZE['eth'] + offset
--
2.17.1
More information about the dts
mailing list