Since if_oltr 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-14 00:19:07 +00:00
parent f92e0b28a4
commit 9baf5f2da1

View File

@ -391,7 +391,7 @@ oltr_pci_attach(device_t dev)
ifp->if_init = oltr_init;
ifp->if_start = oltr_start;
ifp->if_ioctl = oltr_ioctl;
ifp->if_flags = IFF_BROADCAST;
ifp->if_flags = IFF_BROADCAST | IFF_NEEDSGIANT;
ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
bcopy(sc->config.macaddress, sc->arpcom.ac_enaddr, sizeof(sc->config.macaddress));