David Miller <[EMAIL PROTECTED]> wrote:

>Look at a driver such as 3c509.c, for example.
[...]
>If the driver isn't setting up an explicit ->set_mac_address handler,
>it isn't going to be programming the RX MAC of the chip and therefore
>not recognize packets to that new MAC as destined for it.

        If I'm not mistaken, it looks like 3c509.c sets the MAC on the
chip from dev->dev_addr in el3_up():

        /* Set the station address in window 2 each time opened. */
        EL3WINDOW(2);

        for (i = 0; i < 6; i++)
                outb(dev->dev_addr[i], ioaddr + i);

        I don't have the spec for 3c509 handy, but 3c59x.c does the same
thing in vortex_up(), and its spec says the first 6 bytes of register
window 2 are the "StationAddress".

        So, I'm still wondering what drivers really never let you change
the MAC address.

        -J

---
        -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to