From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755627Ab2GJMyg (ORCPT ); Tue, 10 Jul 2012 08:54:36 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:58039 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752291Ab2GJMyd convert rfc822-to-8bit (ORCPT ); Tue, 10 Jul 2012 08:54:33 -0400 From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 4 0/4] Add ability to set defaultless network device MAC addresses to deterministic computed locally administered values Date: Tue, 10 Jul 2012 14:37:51 +0200 User-Agent: KMail/1.13.7 (Linux/3.4-trunk-amd64; KDE/4.8.3; x86_64; ; ) Cc: Andy Green , linux-omap@vger.kernel.org, s-jan@ti.com, arnd@arndb.de, patches@linaro.org, tony@atomide.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, rostedt@goodmis.org References: <20120705024259.26317.16000.stgit@build.warmcat.com> In-Reply-To: <20120705024259.26317.16000.stgit@build.warmcat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Message-Id: <201207101437.54877.florian@openwrt.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le jeudi 05 juillet 2012 04:44:33, Andy Green a écrit : > The following series adds some code to generate legal, locally administered > MAC addresses from OMAP4 CPU Die ID fuse data, and then adds a helper at > net/ethernet taking care of accepting device path / MAC mapping > registrations and running a notifier to enforce the requested MAC when the > matching network device turns up. This looks like something you can solve by user-space entirely. Expose the OMAP4 CPU Die ID using a sysfs attribute, and let user-space manage the MAC address pool. If you tell me you want to use this for nfsroot booting, what prevents you from using an initramfs, assign a valid MAC to your interface and switch over your nfsroot once the interface setup is done? > > On PandaBoard / ES, two devices have no board-level MAC either assigned by > the manufacturer or stored on the board, the last patch in the series adds > these device paths and gets them set when the network device is registered. > > Lastly for convenient testing, there's a little patch on > omap2plus_defconfig that will get Ethernet and WLAN up on Pandaboard. > > The patches are against today's linux-omap. > > Thanks to Tony Lindgren and Arnd Bergmann for comments leading to the > helper in net/ethernet. > > --- > > Andy Green (4): > OMAP: add cpu id register to MAC address helper > NET ethernet introduce mac_platform helper > OMAP4 PANDA register ethernet and wlan for automatic mac allocation > config test config extending omap2plus with wl12xx etc > > > arch/arm/configs/omap2plus_defconfig | 35 +++---- > arch/arm/mach-omap2/Kconfig | 1 > arch/arm/mach-omap2/board-omap4panda.c | 30 ++++++ > arch/arm/mach-omap2/id.c | 39 ++++++++ > arch/arm/mach-omap2/include/mach/id.h | 1 > include/net/mac-platform.h | 39 ++++++++ > net/Kconfig | 5 + > net/ethernet/Makefile | 3 + > net/ethernet/mac-platform.c | 151 > ++++++++++++++++++++++++++++++++ 9 files changed, 282 insertions(+), 22 > deletions(-) > create mode 100644 include/net/mac-platform.h > create mode 100644 net/ethernet/mac-platform.c > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Florian