diff mbox series

[1/2] tests/TestSuite_userspace_ethtool:add foxville

Message ID 20200930064644.22944-2-linglix.chen@intel.com (mailing list archive)
State Accepted
Headers show
Series add support NIC | expand

Commit Message

Chen, LingliX Sept. 30, 2020, 6:46 a.m. UTC
Signed-off-by: Chen Linglix <linglix.chen@intel.com>
---
 tests/TestSuite_userspace_ethtool.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index 213a6283..68dace33 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -585,7 +585,7 @@  class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
         mtus = [1519, 2048]
         mtu_threshold = 2022
         offset = 0
-        if self.nic in ['powerville', 'springville']:
+        if self.nic in ['powerville', 'springville', 'foxville']:
             mtu_threshold = 2026
             offset = 4
         # RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + ICE_VLAN_TAG_SIZE * 2
@@ -605,7 +605,7 @@  class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
 
                 # The mtu threshold is 2022,When it is greater than 2022, the open/stop port is required.
                 if mtu > mtu_threshold:
-                    if self.nic in ['powerville', 'springville']:
+                    if self.nic in ['powerville', 'springville', 'foxville']:
                         mtu = mtu_threshold
                     self.dut.send_expect("stop %s" % index, "EthApp>")
                     self.dut.send_expect("mtu %d %d" % (index, mtu), "EthApp>")