lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 04 Jun 2013 17:24:17 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	thomas.petazzoni@...e-electrons.com
Cc:	netdev@...r.kernel.org, jason@...edaemon.net,
	gregory.clement@...e-electrons.com, andrew@...n.ch,
	ezequiel.garcia@...e-electrons.com, alior@...vell.com,
	linux-arm-kernel@...ts.infradead.org,
	sergei.shtylyov@...entembedded.com, joe@...ches.com
Subject: Re: [PATCH v2] net: mvneta: read MAC address from hardware when
 available

From: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
Date: Tue,  4 Jun 2013 16:52:23 +0200

> This patch improves the logic used by the mvneta driver to find a MAC
> address for a particular interface. Until now, it was only looking at
> the Device Tree, and if no address was found, was falling back to
> generating a random MAC address.
> 
> This patch adds the intermediate solution of reading the MAC address
> from the hardware registers, in case it has been set by the
> bootloader. So the order is now:
> 
>  1) MAC address from the Device Tree
>  2) MAC address from the hardware registers
>  3) Random MAC address
> 
> This requires moving the MAC address initialization a little bit later
> in the ->probe() code, because it now requires the hardware registers
> to be remapped.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>

Applied to net-next, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ