Commit 832aa09e authored by Lucas Stach's avatar Lucas Stach Committed by Ezequiel Garcia
Browse files

HACK: igb: use random MAC when no valid MAC is present

If both the internal EEPROM and the DT don't provide a valid MAC use
a random one to at leat allow some testing.
Signed-off-by: Lucas Stach's avatarLucas Stach <>
parent 5ad75963
......@@ -3207,8 +3207,9 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
if (!is_valid_ether_addr(netdev->dev_addr)) {
dev_err(&pdev->dev, "Invalid MAC Address\n");
err = -EIO;
goto err_eeprom;
netdev_info(netdev, "Using random MAC address: %pM\n",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment