Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031178AbbKEABJ (ORCPT ); Wed, 4 Nov 2015 19:01:09 -0500 Received: from mga02.intel.com ([134.134.136.20]:31699 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932288AbbKEABI convert rfc822-to-8bit (ORCPT ); Wed, 4 Nov 2015 19:01:08 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,245,1444719600"; d="scan'208";a="678555682" From: "Nelson, Shannon" To: Sowmini Varadhan , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "Kirsher, Jeffrey T" , "Brandeburg, Jesse" , "Wyborny, Carolyn" , "Skidmore, Donald C" , "Vick, Matthew" , "Ronciak, John" , "Williams, Mitch A" , "andy.shevchenko@gmail.com" Subject: RE: [PATCH v6] i40e: Look up MAC address in Open Firmware or IDPROM Thread-Topic: [PATCH v6] i40e: Look up MAC address in Open Firmware or IDPROM Thread-Index: AQHRF1eAI66elKYwrkig2TfGYvQn8p6MiuOA Date: Thu, 5 Nov 2015 00:01:05 +0000 Message-ID: References: <20151104232100.GJ14575@oracle.com> In-Reply-To: <20151104232100.GJ14575@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.200.108] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1473 Lines: 38 > From: Sowmini Varadhan [mailto:sowmini.varadhan@oracle.com] > Sent: Wednesday, November 04, 2015 3:21 PM > > This is the i40e equivalent of commit c762dff24c06 ("ixgbe: Look up MAC > address in Open Firmware or IDPROM"). > > As with that fix, attempt to look up the MAC address in Open Firmware > on systems that support it, and use IDPROM on SPARC if no OF address > is found. > > In the case of the i40e there is an assumption that the default mac > address has already been set up as the primary mac filter on probe, > so if this filter is obtained from the Open Firmware or IDPROM, an > explicit write is needed via i40e_aq_mac_address_write() and > i40e_aq_add_macvlan() invocation. > > Reviewed-by: Martin K. Petersen > Signed-off-by: Sowmini Varadhan > --- > v2, v3: Andy Shevchenko comments > v4: Shannon Nelson review: explicitly set up mac filters before > register_netdev > v5: Shannon Nelson code style comments > v6: Shannon Nelson code style comments > > drivers/net/ethernet/intel/i40e/i40e_main.c | 83 > ++++++++++++++++++++++++++- > 1 files changed, 82 insertions(+), 1 deletions(-) > Acked-by: Shannon Nelson -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/