mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Do not call mii_polltick() immediately after mii_tick().
Poiinted out by: wpaul
This commit is contained in:
parent
cd62a9cb38
commit
b256187110
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84148
@ -2045,18 +2045,15 @@ bge_tick(xsc)
|
||||
mii = device_get_softc(sc->bge_miibus);
|
||||
mii_tick(mii);
|
||||
|
||||
if (!sc->bge_link) {
|
||||
mii_pollstat(mii);
|
||||
if (mii->mii_media_status & IFM_ACTIVE &&
|
||||
IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
|
||||
sc->bge_link++;
|
||||
if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_TX ||
|
||||
IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_SX)
|
||||
printf("bge%d: gigabit link up\n",
|
||||
sc->bge_unit);
|
||||
if (ifp->if_snd.ifq_head != NULL)
|
||||
bge_start(ifp);
|
||||
}
|
||||
if (!sc->bge_link && mii->mii_media_status & IFM_ACTIVE &&
|
||||
IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
|
||||
sc->bge_link++;
|
||||
if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_TX ||
|
||||
IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_SX)
|
||||
printf("bge%d: gigabit link up\n",
|
||||
sc->bge_unit);
|
||||
if (ifp->if_snd.ifq_head != NULL)
|
||||
bge_start(ifp);
|
||||
}
|
||||
|
||||
splx(s);
|
||||
|
@ -1118,7 +1118,6 @@ static void lge_tick(xsc)
|
||||
if (!sc->lge_link) {
|
||||
mii = device_get_softc(sc->lge_miibus);
|
||||
mii_tick(mii);
|
||||
mii_pollstat(mii);
|
||||
if (mii->mii_media_status & IFM_ACTIVE &&
|
||||
IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
|
||||
sc->lge_link++;
|
||||
|
@ -1442,7 +1442,6 @@ static void nge_tick(xsc)
|
||||
mii_tick(mii);
|
||||
|
||||
if (!sc->nge_link) {
|
||||
mii_pollstat(mii);
|
||||
if (mii->mii_media_status & IFM_ACTIVE &&
|
||||
IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
|
||||
sc->nge_link++;
|
||||
|
@ -1098,13 +1098,11 @@ Static void aue_tick(xsc)
|
||||
}
|
||||
|
||||
mii_tick(mii);
|
||||
if (!sc->aue_link) {
|
||||
mii_pollstat(mii);
|
||||
if (mii->mii_media_status & IFM_ACTIVE &&
|
||||
IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE)
|
||||
sc->aue_link++;
|
||||
if (ifp->if_snd.ifq_head != NULL)
|
||||
aue_start(ifp);
|
||||
if (!sc->aue_link && mii->mii_media_status & IFM_ACTIVE &&
|
||||
IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
|
||||
sc->aue_link++;
|
||||
if (ifp->if_snd.ifq_head != NULL)
|
||||
aue_start(ifp);
|
||||
}
|
||||
|
||||
sc->aue_stat_ch = timeout(aue_tick, sc, hz);
|
||||
|
Loading…
Reference in New Issue
Block a user