From patchwork Thu Jun 18 03:12:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Duyck X-Patchwork-Id: 486059 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2FF1E14029C for ; Thu, 18 Jun 2015 13:12:59 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751228AbbFRDMz (ORCPT ); Wed, 17 Jun 2015 23:12:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54829 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751207AbbFRDMx (ORCPT ); Wed, 17 Jun 2015 23:12:53 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id AEEA935C815; Thu, 18 Jun 2015 03:12:53 +0000 (UTC) Received: from [192.168.122.149] (vpn-231-39.phx2.redhat.com [10.3.231.39]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5I3CrZY003856; Wed, 17 Jun 2015 23:12:53 -0400 Subject: [PATCH] fm10k: Report MAC address on driver load From: Alexander Duyck To: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com Date: Wed, 17 Jun 2015 20:12:52 -0700 Message-ID: <20150618031252.15654.56639.stgit@ahduyck-vm-fedora22> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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. Signed-off-by: Alexander Duyck --- drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c index df9fda38bdd1..5db41ab3b762 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c @@ -1837,7 +1837,7 @@ static int fm10k_probe(struct pci_dev *pdev, fm10k_ptp_register(interface); /* print bus type/speed/width info */ - dev_info(&pdev->dev, "(PCI Express:%s Width: %s Payload: %s)\n", + dev_info(&pdev->dev, "(PCI Express:%s Width: %s Payload: %s) %pM\n", (hw->bus.speed == fm10k_bus_speed_8000 ? "8.0GT/s" : hw->bus.speed == fm10k_bus_speed_5000 ? "5.0GT/s" : hw->bus.speed == fm10k_bus_speed_2500 ? "2.5GT/s" : @@ -1849,7 +1849,7 @@ static int fm10k_probe(struct pci_dev *pdev, (hw->bus.payload == fm10k_bus_payload_128 ? "128B" : hw->bus.payload == fm10k_bus_payload_256 ? "256B" : hw->bus.payload == fm10k_bus_payload_512 ? "512B" : - "Unknown")); + "Unknown"), netdev->dev_addr); /* print warning for non-optimal configurations */ fm10k_slot_warn(interface);