mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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:
parent
bb74e5f6f9
commit
42559cd2af
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue