DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 506] i40e: Fix for rte_eth_dev_get_module_eeprom()
@ 2020-07-10  9:10 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2020-07-10  9:10 UTC (permalink / raw)
  To: dev

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@dpdk.org
          Reporter: frederic.coiffier@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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-10  9:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-10  9:10 [dpdk-dev] [Bug 506] i40e: Fix for rte_eth_dev_get_module_eeprom() bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).