Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/mips/cavium/if_octm.c 231987 2012-02-22 01:30:25Z gonzo $
---
> * $FreeBSD: head/sys/mips/cavium/if_octm.c 232289 2012-02-29 05:48:29Z gonzo $
66d65
< #include "octe/ethernet-common.h"
180,183c179,182
< if (cvm_assign_mac_address(&mac, NULL) != 0) {
< device_printf(dev, "unable to allocate MAC address.\n");
< return (ENXIO);
< }
---
> mac = 0;
> memcpy((u_int8_t *)&mac + 2, cvmx_sysinfo_get()->mac_addr_base, 6);
> mac += sc->sc_port;
>