Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754594AbaFCSQy (ORCPT ); Tue, 3 Jun 2014 14:16:54 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:56726 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751440AbaFCSQx (ORCPT ); Tue, 3 Jun 2014 14:16:53 -0400 Date: Tue, 3 Jun 2014 20:16:46 +0200 From: Ingo Molnar To: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo , Steven Rostedt , Jonathan Corbet , "David S. Miller" , Daniel Borkmann , Chema Gonzalez , Eric Dumazet , Peter Zijlstra , Jiri Olsa , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , Kees Cook , Network Development , LKML Subject: Re: [PATCH v2 net-next 0/2] split BPF out of core networking Message-ID: <20140603181646.GA5028@gmail.com> References: <1401692506-7796-1-git-send-email-ast@plumgrid.com> <20140602081545.7baf4a91@lwn.net> <20140602092456.2114440a@gandalf.local.home> <20140602141606.GC2544@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Alexei Starovoitov wrote: > On Mon, Jun 2, 2014 at 7:16 AM, Arnaldo Carvalho de Melo > wrote: > > Em Mon, Jun 02, 2014 at 09:24:56AM -0400, Steven Rostedt escreveu: > >> On Mon, 2 Jun 2014 08:15:45 -0500 > >> Jonathan Corbet wrote: > > > >> > On Mon, 2 Jun 2014 00:01:44 -0700 > >> > Alexei Starovoitov wrote: > > > >> > > This patch set splits BPF out of core networking into generic component > > > >> > Quick, probably dumb question: if you're going to split it out, why not > >> > split it out entirely, into kernel/ or (perhaps better) lib/? The > >> > whole point seems to be that BPF is outgrowing its networking home, so > >> > it seems like it might be better to make it truly generic. > > > >> I believe this is what Ingo suggested as well. If it is become generic, > >> it belongs in lib/ > > > > Yes, that was his suggestion, which I agree with, FWIW. > > I guess I posted v2 too quickly :) v2 splits filter.c into > kernel/bpf/. I think it's a better location than lib/bpf, since lib > feels too constrained by definition of 'library'. bpf is more than a > set of library calls. Yeah, the upgrade to kernel/bpf/ is a better place for BPF IMO: BPF is really an 'active', stateful subsystem, with non-trivial per arch implementations, while lib/ is generally for standalone, generic, platform-decoupled library functions (with a few exceptions). Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/