Add locking to vge_ifmedia_upd().

With this WD-timeouts for vge(4) got reduced signifficantly.
Testet on -stable.

Submitted by:	Oleg Bulyzhin
MFC after:	1 day
This commit is contained in:
Michael Reifenberger 2006-09-04 13:14:44 +00:00
parent e6836db530
commit 592777f6b6

View File

@ -2129,8 +2129,10 @@ vge_ifmedia_upd(ifp)
struct mii_data *mii;
sc = ifp->if_softc;
VGE_LOCK(sc);
mii = device_get_softc(sc->vge_miibus);
mii_mediachg(mii);
VGE_UNLOCK(sc);
return (0);
}