From f92e0b28a4e32c815518d0dfd9b65ff131b7eac4 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sat, 14 Aug 2004 00:17:04 +0000 Subject: [PATCH] Since if_ixgb doesn't contain locking or run with INTR_MPSAFE, mark the interface as IFF_NEEDSGIANT so if_start is run holding Giant. --- sys/dev/ixgb/if_ixgb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ixgb/if_ixgb.c b/sys/dev/ixgb/if_ixgb.c index ff525f46696..cc4739199f9 100644 --- a/sys/dev/ixgb/if_ixgb.c +++ b/sys/dev/ixgb/if_ixgb.c @@ -1319,7 +1319,8 @@ ixgb_setup_interface(device_t dev, struct adapter * adapter) ifp->if_baudrate = 1000000000; ifp->if_init = ixgb_init; ifp->if_softc = adapter; - ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; + ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST | + IFF_NEEDSGIANT; ifp->if_ioctl = ixgb_ioctl; ifp->if_start = ixgb_start; ifp->if_watchdog = ixgb_watchdog;