diff options
author | 2015-04-02 09:46:48 +0000 | |
---|---|---|
committer | 2015-04-02 09:46:48 +0000 | |
commit | a9b8a173676ca1aef8d951e818e4793b83331197 (patch) | |
tree | 285a84e687b109330826bc636e4141bd99a648ce | |
parent | Grab the kernel lock around the bpf_mtap_ether() call in if_input(). This (diff) | |
download | wireguard-openbsd-a9b8a173676ca1aef8d951e818e4793b83331197.tar.xz wireguard-openbsd-a9b8a173676ca1aef8d951e818e4793b83331197.zip |
Call if_input() without grabbing the kernel lock first.
-rw-r--r-- | sys/arch/sparc64/dev/vnet.c | 6 |
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; |