summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-04-02 09:46:49 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-04-02 09:46:49 +0000
commitd40eb3bd005b346bc4a126f253658945e587344d (patch)
tree6498ea4f2779db49fbfaa0bd32e4168ec2ea93c4
parent3e2cf1f9413c42d6942e329ab89b1644fa2f7c4e (diff)
Call if_input() without grabbing the kernel lock first.
-rw-r--r--sys/arch/sparc64/dev/vnet.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/sparc64/dev/vnet.c b/sys/arch/sparc64/dev/vnet.c
index dcc8cfaed50..5b011e86acd 100644
--- a/sys/arch/sparc64/dev/vnet.c
+++ b/sys/arch/sparc64/dev/vnet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnet.c,v 1.42 2015/04/01 15:23:32 kettenis Exp $ */
+/* $OpenBSD: vnet.c,v 1.43 2015/04/02 09:46:48 kettenis Exp $ */
/*
* Copyright (c) 2009, 2015 Mark Kettenis
*
@@ -745,9 +745,7 @@ vnet_rx_vio_desc_data(struct vnet_softc *sc, struct vio_msg_tag *tag)
/* Pass it on. */
ml_enqueue(&ml, m);
- KERNEL_LOCK();
if_input(ifp, &ml);
- KERNEL_UNLOCK();
skip:
dm->tag.stype = VIO_SUBTYPE_ACK;
@@ -855,9 +853,7 @@ vnet_rx_vio_dring_data(struct vnet_softc *sc, struct vio_msg_tag *tag)
idx = 0;
}
- KERNEL_LOCK();
if_input(ifp, &ml);
- KERNEL_UNLOCK();
if (ack_end_idx == -1) {
dm->tag.stype = VIO_SUBTYPE_NACK;