[dpdk-dev] [Bug 506] i40e: Fix for rte_eth_dev_get_module_eeprom()
bugzilla at dpdk.org
bugzilla at dpdk.org
Fri Jul 10 11:10:16 CEST 2020
https://bugs.dpdk.org/show_bug.cgi?id=506
Bug ID: 506
Summary: i40e: Fix for rte_eth_dev_get_module_eeprom()
Product: DPDK
Version: 20.05
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: ethdev
Assignee: dev at dpdk.org
Reporter: frederic.coiffier at 6cure.com
Target Milestone: ---
In DPDK 20.05 (and maybe previous versions), the
rte_eth_dev_get_module_eeprom() returns 512 bytes but all bytes are equal to
0x04.
Therefore, using the official Intel i40e 2.11.29 with ethtool -m works fine.
By comparing the 2 source code, we found a small typo in
i40e_get_module_eeprom():
- i40e-2.11.29:
status = i40e_aq_get_phy_register(hw,
I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE,
addr, true, offset, &value, NULL);
- DPDK 20.05:
status = i40e_aq_get_phy_register(hw,
I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE,
addr, offset, 1, &value, NULL);
By swapping offset and 1 in the DPDK source code, the
rte_eth_dev_get_module_eeprom() function works fine.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the dev
mailing list