]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
igb: change how we handle alternate mac addresses
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 5 Oct 2009 06:34:25 +0000 (06:34 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:20:44 +0000 (10:20 -0700)
commite938dc4c79f830ebfae06961e0ec3c05de4fd9d7
treea1de6b5f2517048b801737dd4637976abdf7c70a
parentda07bf0fcc8b02737196369aa7f5bd2e0afec238
igb: change how we handle alternate mac addresses

commit 22896639af98ebc721a94ed71fc3acf2fb4a24dc upstream.

This patch allows us to treat the alternate mac address as though it is the
physical address on the adapter.  This is accomplished by letting the
alt_mac_address function to only fail on an NVM error.  If no errors occur
and the alternate mac address is not present then RAR0 is read as the
default mac address.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Brandon Philips <bphilips@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/igb/e1000_82575.c
drivers/net/igb/e1000_hw.h
drivers/net/igb/e1000_mac.c