diff options
author | adrian <adrian@FreeBSD.org> | 2013-05-08 20:54:59 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-05-08 20:54:59 +0000 |
commit | 80ff233751bf1434805c634b201b70f7fe16af2e (patch) | |
tree | 200b7941757b8a0d9461e48161e60033ca6b8987 /sys/dev/etherswitch | |
parent | 27529b110232c0d902ca720d41c4918c80c4f63e (diff) | |
download | FreeBSD-src-80ff233751bf1434805c634b201b70f7fe16af2e.zip FreeBSD-src-80ff233751bf1434805c634b201b70f7fe16af2e.tar.gz |
Correctly mark the CPU port.
Submitted by: Luiz Otavio O Souza <loos.br@gmail.com>
Reviewed by: ray
Diffstat (limited to 'sys/dev/etherswitch')
-rw-r--r-- | sys/dev/etherswitch/arswitch/arswitch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/etherswitch/arswitch/arswitch.c b/sys/dev/etherswitch/arswitch/arswitch.c index de84dc3..0490580 100644 --- a/sys/dev/etherswitch/arswitch/arswitch.c +++ b/sys/dev/etherswitch/arswitch/arswitch.c @@ -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; |