summaryrefslogtreecommitdiffstats
path: root/sys/dev/vx
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-14 00:12:42 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-14 00:12:42 +0000
commite1255a66b5f16f7eefc56a1ca035618c11e26a11 (patch)
treeace207e02730fa5e53c5028c6794671351673012 /sys/dev/vx
parent9fc2ef2be3ad82a83db37ed87fbf2ee6ba9a8185 (diff)
downloadFreeBSD-src-e1255a66b5f16f7eefc56a1ca035618c11e26a11.zip
FreeBSD-src-e1255a66b5f16f7eefc56a1ca035618c11e26a11.tar.gz
Since if_vx 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/vx')
-rw-r--r--sys/dev/vx/if_vx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c
index 1435343..584196e 100644
--- a/sys/dev/vx/if_vx.c
+++ b/sys/dev/vx/if_vx.c
@@ -158,7 +158,8 @@ vxattach(dev)
if_initname(ifp, device_get_name(dev), device_get_unit(dev));
ifp->if_mtu = ETHERMTU;
ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
- ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+ ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST |
+ IFF_NEEDSGIANT;
ifp->if_start = vxstart;
ifp->if_ioctl = vxioctl;
ifp->if_init = vxinit;
OpenPOWER on IntegriCloud