Thread (1 message) 1 message, 1 author, 2012-02-09

Re: [PATCH 2/2] smsc95xx: allow to re-use MAC address already programmed

From: Peter Meerwald <hidden>
Date: 2012-02-09 09:59:37

Hello David,
quoted
patch adds a module parameter which allows to keep the MAC address already 
set (e.g. by the boot loader) if it is valid (otherwise the MAC address is read 
from an optional EEPROM or randomly generated)
No way, for the same reason as your other patch.
Module parameters suck, use something generic.
is there a generic solution (yet)?

the goal is to support tftp-ing a kernel image from u-boot and doing 
a rootnfs mount in the kernel (with the same MAC address)

it was suggested to set the MAC address from userspace/initrd which seems 
to be a lot of overhead

I am aware of Danny Kukawka's work in a similar direction

the embedded approach would probably be to hand some board-specific 
callback to the 'network layer' in order to obtain a MAC whenever it is 
needed; this could replace/supplement random_ether_addr() found in many 
drivers

regards, p.

-- 

Peter Meerwald
+43-664-2444418 (mobile)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help