summaryrefslogtreecommitdiffstats
path: root/sys/dev/cs
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-13 23:03:11 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-13 23:03:11 +0000
commit048a0f34167c8d4bde8f730e318a3fc3f115a84d (patch)
treeee88a0dfffffa5201276a1ec7c672ebda199d8ce /sys/dev/cs
parent0564d2c810d6d4d45b5556efa8e250b7f57e7f5a (diff)
downloadFreeBSD-src-048a0f34167c8d4bde8f730e318a3fc3f115a84d.zip
FreeBSD-src-048a0f34167c8d4bde8f730e318a3fc3f115a84d.tar.gz
Since if_cs doesn't contain locking or run with INTR_MPSAFE, mark
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
Diffstat (limited to 'sys/dev/cs')
-rw-r--r--sys/dev/cs/if_cs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c
index 352a8de..939c208 100644
--- a/sys/dev/cs/if_cs.c
+++ b/sys/dev/cs/if_cs.c
@@ -613,7 +613,8 @@ cs_attach(device_t dev)
ifp->if_linkmiblen=sizeof sc->mibdata;
*/
- ifp->if_flags=(IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST );
+ ifp->if_flags=(IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST |
+ IFF_NEEDSGIANT);
/*
* this code still in progress (DMA support)
OpenPOWER on IntegriCloud