From 2fc1d6da882563ab80786d69b6d7c9d0e4ce860a Mon Sep 17 00:00:00 2001 From: Pavel Ivashchenko Date: Thu, 2 Jul 2020 12:37:17 +0000 Subject: [PATCH] net/i40e: fix getting EEPROM information Fixes: 50130a0c4440 ("net/i40e/base: change AQ command for PHY access") Cc: stable@dpdk.org Signed-off-by: Pavel Ivashchenko Acked-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 472ce2a9e1..777e14926f 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -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; -- 2.20.1