[Intel-wired-lan] [next PATCH S94 03/13] i40e: Don't read MAC address in recovery mode
Alice Michael
alice.michael at intel.com
Thu Aug 2 00:40:26 UTC 2018
From: Patryk Małek <patryk.malek at intel.com>
This patch removes reading MAC address via AQC
"Manage MAC address read command" in recovery mode
since it's not supported.
Signed-off-by: Patryk Małek <patryk.malek at intel.com>
---
drivers/net/ethernet/intel/i40e/i40e_main.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index c9b1d0c..0a1ecdf 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -13591,21 +13591,6 @@ static int i40e_init_recovery_mode(struct i40e_pf *pf, struct i40e_hw *hw)
goto err_sw_init;
}
- /* allow a platform config to override the HW addr */
- i40e_get_platform_mac_addr(pf->pdev, pf);
-
- if (!is_valid_ether_addr(hw->mac.addr)) {
- /* normally we would return -EIO here */
- dev_info(&pf->pdev->dev, "invalid MAC address %pM\n",
- hw->mac.addr);
- } else {
- dev_info(&pf->pdev->dev, "MAC address: %pM\n", hw->mac.addr);
- }
- ether_addr_copy(hw->mac.perm_addr, hw->mac.addr);
- i40e_get_port_mac_addr(hw, hw->mac.port_addr);
- if (is_valid_ether_addr(hw->mac.port_addr))
- pf->hw_features |= I40E_HW_PORT_ID_VALID;
-
pci_save_state(pf->pdev);
/* set up periodic task facility */
--
2.9.5
More information about the Intel-wired-lan
mailing list