Skip to contentSkip to conversation

net/i40e: fix getting eeprom information

PATCH Applied Pavel Ivashchenko 3 participants 3 messages Jul 2, 2020 – Jul 7, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: fix getting eeprom information

---
 drivers/net/i40e/i40e_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev.c +1 -1
index 970a31cb2..5fdfadf7b 100644
@@ -12093,7 +12093,7 @@ static int i40e_get_module_eeprom(struct rte_eth_dev *dev,
 		}
 		status = i40e_aq_get_phy_register(hw,
 				I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE,
-				addr, offset, 1, &value, NULL);
+				addr, 1, offset, &value, NULL);
 		if (status)
 			return -EIO;
 		data[i] = (uint8_t)value;
Signature · 1 line
2.25.1
#1 lore raw

CCing i40e maintainers.
This is a trivial fix without which getting module EEPROM doesn't work at all.

Quoted 24 lines · Pavel Ivashchenko
---
 drivers/net/i40e/i40e_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev.c +1 -1
index 970a31cb2..5fdfadf7b 100644
@@ -12093,7 +12093,7 @@ static int i40e_get_module_eeprom(struct
 rte_eth_dev *dev,
                }
                status = i40e_aq_get_phy_register(hw,
                                I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE,
-                               addr, offset, 1, &value, NULL);
+                               addr, 1, offset, &value, NULL);
                if (status)
                        return -EIO;
                data[i] = (uint8_t)value;

--
2.25.1