Since if_lnc doesn't contain locking or run with INTR_MPSAFE, mark

the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
This commit is contained in:
Robert Watson 2004-08-13 23:20:50 +00:00
parent b095765df6
commit 26ec2d74aa

View File

@ -857,7 +857,8 @@ lnc_attach_common(device_t dev)
sc->arpcom.ac_if.if_softc = sc;
if_initname(&sc->arpcom.ac_if, device_get_name(dev),
device_get_unit(dev));
sc->arpcom.ac_if.if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
sc->arpcom.ac_if.if_flags = IFF_BROADCAST | IFF_SIMPLEX |
IFF_MULTICAST | IFF_NEEDSGIANT;
sc->arpcom.ac_if.if_timer = 0;
sc->arpcom.ac_if.if_start = lnc_start;
sc->arpcom.ac_if.if_ioctl = lnc_ioctl;