Subject: Re: hme sbus mac address question
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Anthony Sofia <anthony@dryhump.net>
List: port-sparc
Date: 01/19/2004 17:13:31
On Mon, Jan 19, 2004 at 10:16:55PM +0100, Manuel Bouyer said:
>On Sun, Jan 18, 2004 at 05:30:20PM -0600, Anthony Sofia wrote:
>> Hello all,
>> 
>> I have a sparcstation5 with a qfe card in it. Each hme interface on this
>> card has it's own mac address which i confirmed in openboot, but it does not
>> appear our hme sbus driver supports using the local mac address, instead the
>> mac address of the system is used. Is there anything I am missing wrt using
>> the local mac address for each hme interface?
>
>I think this is somewhere in a faq on www.netbsd.org for the sparc port.
>Basically there's a openprom variable to turn on, something like
>local-mac-addr (I don't remember the exact name and can't check right now,
>sorry).
>

There is a local-mac-address? variable, but (as far as i can tell) netbsd does
not respect it. I tried to add a condition to the if_hme_sbus.c file to check
if there is a mac address in the prom for that interface to use it and to fall
back to the system's mac address, however PROM_getprop does not return me the
local mac address of the hme interface. This is the method the openbsd hme sbus
driver uses and it (and it works on the ss5 w/qfe).

Here is the function call in question incase anyone can point out a mistake:

PROM_getprop(node, "local-mac-address",
             sizeof(u_int8_t), &retsize,
             &sc->sc_enaddr) 

Anthony Sofia (anthony@dryhump.net)
--
I'll take care of those murderous trolls.