summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2005-04-25 18:37:27 +0000
committerwpaul <wpaul@FreeBSD.org>2005-04-25 18:37:27 +0000
commitc66cc39233d46b432648fba0730c83c5967c734a (patch)
treec90b4f205024d93740f3823005030c5573d99903 /sys
parent06ecb5ca5dff42222430d539c78aefd4ba733b2f (diff)
downloadFreeBSD-src-c66cc39233d46b432648fba0730c83c5967c734a.zip
FreeBSD-src-c66cc39233d46b432648fba0730c83c5967c734a.tar.gz
Correct the if_link_state_change() logic: when the link went down,
if_link_state_change() reported link up, and when the link went up, if_link_state_change() reported link down. These should be swapped.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/vge/if_vge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vge/if_vge.c b/sys/dev/vge/if_vge.c
index 403ef0c..d262f5e 100644
--- a/sys/dev/vge/if_vge.c
+++ b/sys/dev/vge/if_vge.c
@@ -1581,14 +1581,14 @@ vge_tick(xsc)
if (!(mii->mii_media_status & IFM_ACTIVE)) {
sc->vge_link = 0;
if_link_state_change(&sc->arpcom.ac_if,
- LINK_STATE_UP);
+ LINK_STATE_DOWN);
}
} else {
if (mii->mii_media_status & IFM_ACTIVE &&
IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
sc->vge_link = 1;
if_link_state_change(&sc->arpcom.ac_if,
- LINK_STATE_DOWN);
+ LINK_STATE_UP);
#if __FreeBSD_version < 502114
if (ifp->if_snd.ifq_head != NULL)
#else
OpenPOWER on IntegriCloud