From 3de2c5e7d88738ed4df45cd50dabd8c58988bd9b Mon Sep 17 00:00:00 2001 From: rwatson Date: Wed, 25 Aug 2004 03:37:25 +0000 Subject: 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. --- sys/pci/if_dc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/pci') 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; -- cgit v1.1