summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2016-01-19 17:16:19 +0000
committermikeb <mikeb@openbsd.org>2016-01-19 17:16:19 +0000
commit1e3ec00f2f6ad7ad8c36cbc5ddafe45edf2a6a11 (patch)
tree0bd3ca95d477acb22576023615235032af39354a
parentFix a few issues in the xnf transmit path (diff)
downloadwireguard-openbsd-1e3ec00f2f6ad7ad8c36cbc5ddafe45edf2a6a11.tar.xz
wireguard-openbsd-1e3ec00f2f6ad7ad8c36cbc5ddafe45edf2a6a11.zip
Mask interrupts on boot, masking/unmasking is handled by stop/init
-rw-r--r--sys/dev/pv/if_xnf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pv/if_xnf.c b/sys/dev/pv/if_xnf.c
index dabbb497ca9..61a3fb1c810 100644
--- a/sys/dev/pv/if_xnf.c
+++ b/sys/dev/pv/if_xnf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xnf.c,v 1.7 2016/01/19 17:13:22 mikeb Exp $ */
+/* $OpenBSD: if_xnf.c,v 1.8 2016/01/19 17:16:19 mikeb Exp $ */
/*
* Copyright (c) 2015, 2016 Mike Belopuhov
@@ -245,6 +245,7 @@ xnf_attach(struct device *parent, struct device *self, void *aux)
printf(": failed to establish an interrupt\n");
return;
}
+ xen_intr_mask(sc->sc_xih);
printf(": event channel %u, address %s\n", sc->sc_xih,
ether_sprintf(sc->sc_ac.ac_enaddr));