diff options
author | Juli Mallett <jmallett@FreeBSD.org> | 2011-02-12 02:41:33 +0000 |
---|---|---|
committer | Juli Mallett <jmallett@FreeBSD.org> | 2011-02-12 02:41:33 +0000 |
commit | cb2096acbf8e6e6fd434be1fbd95f025f1c11850 (patch) | |
tree | 9005f2866f1824724e7475aef92f4286a6889b84 /sys/mips/cavium/octe/ethernet-common.c | |
parent | bf26df36932a7027cf06567551dd384e1a373dd3 (diff) |
The Lanner MR-730 uses the first two MACs at its MAC base for the 10/100
management ports, and gigabit ports start at an offset of 2 from the MAC
base.
Notes
Notes:
svn path=/head/; revision=218594
Diffstat (limited to 'sys/mips/cavium/octe/ethernet-common.c')
-rw-r--r-- | sys/mips/cavium/octe/ethernet-common.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/mips/cavium/octe/ethernet-common.c b/sys/mips/cavium/octe/ethernet-common.c index b107749fe57c..415c3d43600f 100644 --- a/sys/mips/cavium/octe/ethernet-common.c +++ b/sys/mips/cavium/octe/ethernet-common.c @@ -279,6 +279,20 @@ int cvm_oct_common_init(struct ifnet *ifp) octeon_bootinfo->mac_addr_base[5] + count}; cvm_oct_private_t *priv = (cvm_oct_private_t *)ifp->if_softc; + switch (cvmx_sysinfo_get()->board_type) { +#if defined(OCTEON_VENDOR_LANNER) + case CVMX_BOARD_TYPE_CUST_LANNER_MR730: + /* + * The MR-730 uses its first two MACs for the management + * ports. + */ + mac[5] += 2; + break; +#endif + default: + break; + } + ifp->if_mtu = ETHERMTU; count++; |