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:
parent
e6836db530
commit
592777f6b6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user