summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_vr.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-08-10 19:41:05 +0000
committerderaadt <deraadt@openbsd.org>2009-08-10 19:41:05 +0000
commit4ffe6de589ac4bca0097e20124ae0c10c27cef0b (patch)
treeef93c1a8bc4b74480649f872dcb33e7cf1c359dc /sys/dev/pci/if_vr.c
parentclear the beacons owner/valid bits to avoid garbage. (diff)
downloadwireguard-openbsd-4ffe6de589ac4bca0097e20124ae0c10c27cef0b.tar.xz
wireguard-openbsd-4ffe6de589ac4bca0097e20124ae0c10c27cef0b.zip
A few more simple cases of shutdown hooks which only call xxstop, when
we now know the interface has already been stopped
Diffstat (limited to 'sys/dev/pci/if_vr.c')
-rw-r--r--sys/dev/pci/if_vr.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index 4c961ebe1c2..f4b17689899 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.98 2009/08/09 11:40:56 deraadt Exp $ */
+/* $OpenBSD: if_vr.c,v 1.99 2009/08/10 19:41:05 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -122,7 +122,6 @@ int vr_ioctl(struct ifnet *, u_long, caddr_t);
void vr_init(void *);
void vr_stop(struct vr_softc *);
void vr_watchdog(struct ifnet *);
-void vr_shutdown(void *);
int vr_ifmedia_upd(struct ifnet *);
void vr_ifmedia_sts(struct ifnet *, struct ifmediareq *);
@@ -668,8 +667,6 @@ vr_attach(struct device *parent, struct device *self, void *aux)
m_clsetwms(ifp, MCLBYTES, 2, VR_RX_LIST_CNT - 1);
if_attach(ifp);
ether_ifattach(ifp);
-
- shutdownhook_establish(vr_shutdown, sc);
return;
fail_5:
@@ -1547,18 +1544,6 @@ vr_stop(struct vr_softc *sc)
sizeof(sc->vr_ldata->vr_tx_list));
}
-/*
- * Stop all chip I/O so that the kernel's probe routines don't
- * get confused by errant DMAs when rebooting.
- */
-void
-vr_shutdown(void *arg)
-{
- struct vr_softc *sc = (struct vr_softc *)arg;
-
- vr_stop(sc);
-}
-
int
vr_alloc_mbuf(struct vr_softc *sc, struct vr_chain_onefrag *r)
{