summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-12-04 15:18:04 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-12-04 15:18:04 +0000
commit4324c38a950f538784f5284ad07a81ed0b40e0a8 (patch)
treece711f680007188d49f9a375fe47ed74535108d5 /sys
parent0ff028dc1cd1e1c5ac1a9baa82668ef70cd9f7d5 (diff)
Add intr_barrier() just in case...
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/dev/vnet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/vnet.c b/sys/arch/sparc64/dev/vnet.c
index 39a37c89800..d062b1113b9 100644
--- a/sys/arch/sparc64/dev/vnet.c
+++ b/sys/arch/sparc64/dev/vnet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnet.c,v 1.51 2015/11/25 03:09:58 dlg Exp $ */
+/* $OpenBSD: vnet.c,v 1.52 2015/12/04 15:18:03 kettenis Exp $ */
/*
* Copyright (c) 2009, 2015 Mark Kettenis
*
@@ -1436,6 +1436,9 @@ vnet_stop(struct ifnet *ifp)
cbus_intr_setenabled(sc->sc_bustag, sc->sc_tx_ino, INTR_DISABLED);
cbus_intr_setenabled(sc->sc_bustag, sc->sc_rx_ino, INTR_DISABLED);
+ intr_barrier(sc->sc_tx_ih);
+ intr_barrier(sc->sc_rx_ih);
+
hv_ldc_tx_qconf(lc->lc_id, 0, 0);
hv_ldc_rx_qconf(lc->lc_id, 0, 0);
lc->lc_tx_seqid = 0;