Received: by mail.netbsd.org (Postfix, from userid 605) id A15F585625; Tue, 24 Jan 2017 09:05:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 2F76585624 for ; Tue, 24 Jan 2017 09:05:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 6jPZpP2bjclZ for ; Tue, 24 Jan 2017 09:05:28 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 90BD98556E for ; Tue, 24 Jan 2017 09:05:28 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8B72DFBA6; Tue, 24 Jan 2017 09:05:28 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 24 Jan 2017 09:05:28 +0000 From: "Ryota Ozaki" Subject: CVS commit: src To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20170124090528.8B72DFBA6@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Ryota Ozaki" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: ozaki-r Date: Tue Jan 24 09:05:28 UTC 2017 Modified Files: src/sys/dev/ic: hd64570.c midway.c src/sys/dev/pci: if_lmc.c if_lmc.h src/sys/net: bpf.c bpf.h bpfdesc.h src/sys/netisdn: i4b_ipr.c Added Files: src/doc: TODO.smpnet Log Message: Defer bpf_mtap in Rx interrupt context to softint bpf_mtap of some drivers is still called in hardware interrupt context. We want to run them in softint as well as bpf_mtap of most drivers (see if_percpuq_softint and if_input). To this end, bpf_mtap_softint mechanism is implemented; it defers bpf_mtap processing to a dedicated softint for a target driver. By using the machanism, we can move bpf_mtap processing to softint without changing target drivers much while it adds some overhead on CPU and memory. Once target drivers are changed to softint-based, we should return to normal bpf_mtap. Proposed on tech-kern and tech-net To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/doc/TODO.smpnet cvs rdiff -u -r1.51 -r1.52 src/sys/dev/ic/hd64570.c cvs rdiff -u -r1.98 -r1.99 src/sys/dev/ic/midway.c cvs rdiff -u -r1.62 -r1.63 src/sys/dev/pci/if_lmc.c cvs rdiff -u -r1.23 -r1.24 src/sys/dev/pci/if_lmc.h cvs rdiff -u -r1.204 -r1.205 src/sys/net/bpf.c cvs rdiff -u -r1.67 -r1.68 src/sys/net/bpf.h cvs rdiff -u -r1.39 -r1.40 src/sys/net/bpfdesc.h cvs rdiff -u -r1.40 -r1.41 src/sys/netisdn/i4b_ipr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.