Since if_xe 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:
parent
7eadb7d5e9
commit
7e3a88ea3c
@ -233,7 +233,8 @@ xe_attach (device_t dev)
|
||||
scp->ifp->if_softc = scp;
|
||||
if_initname(scp->ifp, device_get_name(dev), device_get_unit(dev));
|
||||
scp->ifp->if_timer = 0;
|
||||
scp->ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST);
|
||||
scp->ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST |
|
||||
IFF_NEEDSGIANT);
|
||||
scp->ifp->if_linkmib = &scp->mibdata;
|
||||
scp->ifp->if_linkmiblen = sizeof scp->mibdata;
|
||||
scp->ifp->if_start = xe_start;
|
||||
|
Loading…
Reference in New Issue
Block a user