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.
This commit is contained in:
Bill Paul 2005-04-25 18:37:27 +00:00
parent bb74e5f6f9
commit 42559cd2af

View file

@ -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