[V2,1/2] tests/userspace_ethtool: modify dts script to support ixgbe nic

Message ID 20230110151955.857186-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V2,1/2] tests/userspace_ethtool: modify dts script to support ixgbe nic |

Commit Message

Jiale, SongX Jan. 10, 2023, 3:19 p.m. UTC
  according to the solution provided by the EPG team, if you read eeprom
on the ixgbe nic, use the "length" parameter to reduce the size to
0x4000.

Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
 tests/TestSuite_userspace_ethtool.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
  

Patch

diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index d8db9073..b62e732f 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -406,6 +406,17 @@  class TestUserspaceEthtool(TestCase):
             self.dut.send_expect(
                 "ethtool --eeprom-dump %s raw on > %s" % (intf, ethtool_eeprom), "# "
             )
+            if self.kdriver == "ixgbe":
+                self.dut.send_expect(
+                    "ethtool --eeprom-dump %s length 0x4000 raw on > %s"
+                    % (intf, ethtool_eeprom),
+                    "# ",
+                )
+            else:
+                self.dut.send_expect(
+                    "ethtool --eeprom-dump %s raw on > %s" % (intf, ethtool_eeprom),
+                    "# ",
+                )
             # wait for file ready
             time.sleep(2)
             # dpdk userspcae tools dump eeprom file size different with kernel ethtool dump