summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-25 03:37:25 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-25 03:37:25 +0000
commit3de2c5e7d88738ed4df45cd50dabd8c58988bd9b (patch)
tree6b3505f22db483ef29e056be048d4b9705ef2478 /sys/pci
parent061c5efc056430774ba99666a86b0ae0340c4701 (diff)
downloadFreeBSD-src-3de2c5e7d88738ed4df45cd50dabd8c58988bd9b.zip
FreeBSD-src-3de2c5e7d88738ed4df45cd50dabd8c58988bd9b.tar.gz
if_dc includes locking, but that locking is disabled by a #ifdef
by default. As such, mark if_dc as IFF_NEEDSGIANT until such time as appropriate locking review and testing can take place, and the locking can be enabled by default. RELENG_5 candidate.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_dc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index 4476f2e..262e947 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -2191,7 +2191,8 @@ dc_attach(device_t dev)
if_initname(ifp, device_get_name(dev), device_get_unit(dev));
/* XXX: bleah, MTU gets overwritten in ether_ifattach() */
ifp->if_mtu = ETHERMTU;
- ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+ ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST |
+ IFF_NEEDSGIANT;
ifp->if_ioctl = dc_ioctl;
ifp->if_start = dc_start;
ifp->if_watchdog = dc_watchdog;
OpenPOWER on IntegriCloud