summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-14 00:15:26 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-14 00:15:26 +0000
commit21abd455d6046e2e77d82833c6f8565116f92078 (patch)
tree1157f874d911a62c2d4962d536acfea03d04281a
parente1255a66b5f16f7eefc56a1ca035618c11e26a11 (diff)
downloadFreeBSD-src-21abd455d6046e2e77d82833c6f8565116f92078.zip
FreeBSD-src-21abd455d6046e2e77d82833c6f8565116f92078.tar.gz
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.
-rw-r--r--sys/dev/xe/if_xe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/xe/if_xe.c b/sys/dev/xe/if_xe.c
index e47d8d2..c60fa0a 100644
--- a/sys/dev/xe/if_xe.c
+++ b/sys/dev/xe/if_xe.c
@@ -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;
OpenPOWER on IntegriCloud