Since if_cm 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 22:57:44 +00:00
parent ec722f0875
commit 07f3ffc4fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133678

View File

@ -321,7 +321,7 @@ cm_attach(dev)
/* XXX IFQ_SET_READY(&ifp->if_snd); */
ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
ifp->if_timer = 0;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_NEEDSGIANT;
arc_ifattach(ifp, linkaddress);