All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] Patch for igb_main.c
@ 2018-03-25 23:46 James Courtier-Dutton
  2018-03-26  1:53 ` Kirsher, Jeffrey T
  2018-03-26 15:39 ` Duyck, Alexander H
  0 siblings, 2 replies; 9+ messages in thread
From: James Courtier-Dutton @ 2018-03-25 23:46 UTC (permalink / raw)
  To: intel-wired-lan

Hi,

I have a patch for igb_main.c that helps bring up the igb NIC on the
Utilite Pro  embedded ARM PC.
How do I get this added to the kernel?
Summary below:

Kind Regards

James


Author: James Courtier-Dutton <James.Dutton@gmail.com>
Date:   Sat Jul 1 19:27:51 2017 +0100

    net: igb: This helps to bring up the igb NIC by using a random MAC
address when no other sources of MAC addres are available.

    This help bring up the igb NIC on the Utilite.

    Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c
b/drivers/net/ethernet/intel/igb/igb_main.c
index be456ba..d7c2c99 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -2509,6 +2509,11 @@ static int igb_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
                        dev_err(&pdev->dev, "NVM Read Error\n");
        }

+       if (!is_valid_ether_addr(hw->mac.addr)) {
+               dev_info(&pdev->dev, "Random MAC Address\n");
+               random_ether_addr(hw->mac.addr);
+       }
+
        memcpy(netdev->dev_addr, hw->mac.addr, netdev->addr_len);

        if (!is_valid_ether_addr(netdev->dev_addr)) {

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-03-26 21:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-25 23:46 [Intel-wired-lan] Patch for igb_main.c James Courtier-Dutton
2018-03-26  1:53 ` Kirsher, Jeffrey T
2018-03-26 15:39 ` Duyck, Alexander H
2018-03-26 19:00   ` James Courtier-Dutton
2018-03-26 20:10     ` Alexander Duyck
2018-03-26 20:29       ` Fujinaka, Todd
2018-03-26 20:42         ` James Courtier-Dutton
2018-03-26 21:13           ` Fujinaka, Todd
2018-03-26 21:23           ` Alexander Duyck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.