[V1,1/2] tests/userspace_ethtool: modify dts script to support 82599 NIC
Commit Message
in case on 82599 NIC to read the eeprom, please use 'length' parameter
to reduce size to 0x4000.
Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
tests/TestSuite_userspace_ethtool.py | 11 +++++++++++
1 file changed, 11 insertions(+)
@@ -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