]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
fm10k: Report MAC address on driver load
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Fri, 19 Jun 2015 02:41:10 +0000 (19:41 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:03:10 +0000 (22:03 -0800)
This change adds the MAC address to the list of values recorded on driver
load.  The MAC address represents the serial number of the unit and allows
us to track the value should a card be replaced in a system.

The log message should now be similar in output to that of ixgbe.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 25394529
(cherry picked from commit 0ff36676a3778d0655933ace201fca7c11b4e8b5)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c

index c8c55fa812782bbdd078faac180075e230a1e7a3..ec0ffe6b677e5e493a95c70ec44fbb7d6e28d6fc 100644 (file)
@@ -1929,6 +1929,9 @@ static int fm10k_probe(struct pci_dev *pdev,
        /* print warning for non-optimal configurations */
        fm10k_slot_warn(interface);
 
+       /* report MAC address for logging */
+       dev_info(&pdev->dev, "%pM\n", netdev->dev_addr);
+
        /* enable SR-IOV after registering netdev to enforce PF/VF ordering */
        fm10k_iov_configure(pdev, 0);