Correctly mark the CPU port.
Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
This commit is contained in:
parent
27529b1102
commit
80ff233751
@ -440,6 +440,7 @@ arswitch_getport(device_t dev, etherswitch_port_t *p)
|
||||
mii = arswitch_miiforport(sc, p->es_port);
|
||||
if (p->es_port == 0) {
|
||||
/* fill in fixed values for CPU port */
|
||||
p->es_flags |= ETHERSWITCH_PORT_CPU;
|
||||
ifmr->ifm_count = 0;
|
||||
ifmr->ifm_current = ifmr->ifm_active =
|
||||
IFM_ETHER | IFM_1000_T | IFM_FDX;
|
||||
|
Loading…
Reference in New Issue
Block a user