net/i40e: fix getting EEPROM information

Fixes: 50130a0c44 ("net/i40e/base: change AQ command for PHY access")
Cc: stable@dpdk.org

Signed-off-by: Pavel Ivashchenko <pivashchenko@nfware.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
Pavel Ivashchenko 2020-07-02 12:37:17 +00:00 committed by Ferruh Yigit
parent c04e7f5a70
commit 2fc1d6da88

View File

@ -12081,7 +12081,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;