|
@@ -9245,6 +9245,16 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|
|
goto err_configure_lan_hmc;
|
|
|
}
|
|
|
|
|
|
+ /* Disable LLDP for NICs that have firmware versions lower than v4.3.
|
|
|
+ * Ignore error return codes because if it was already disabled via
|
|
|
+ * hardware settings this will fail
|
|
|
+ */
|
|
|
+ if (((pf->hw.aq.fw_maj_ver == 4) && (pf->hw.aq.fw_min_ver < 3)) ||
|
|
|
+ (pf->hw.aq.fw_maj_ver < 4)) {
|
|
|
+ dev_info(&pdev->dev, "Stopping firmware LLDP agent.\n");
|
|
|
+ i40e_aq_stop_lldp(hw, true, NULL);
|
|
|
+ }
|
|
|
+
|
|
|
i40e_get_mac_addr(hw, hw->mac.addr);
|
|
|
if (!is_valid_ether_addr(hw->mac.addr)) {
|
|
|
dev_info(&pdev->dev, "invalid MAC address %pM\n", hw->mac.addr);
|