Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964822AbaFCU6Z (ORCPT ); Tue, 3 Jun 2014 16:58:25 -0400 Received: from mail-we0-f173.google.com ([74.125.82.173]:37598 "EHLO mail-we0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933299AbaFCU6W (ORCPT ); Tue, 3 Jun 2014 16:58:22 -0400 MIME-Version: 1.0 In-Reply-To: <538E319B.3000606@redhat.com> References: <1401692506-7796-1-git-send-email-ast@plumgrid.com> <538C3C94.3080206@redhat.com> <538CAEA6.4060307@redhat.com> <538D8DAA.7090105@redhat.com> <538E319B.3000606@redhat.com> Date: Tue, 3 Jun 2014 13:58:21 -0700 Message-ID: Subject: Re: [PATCH v2 net-next 0/2] split BPF out of core networking From: Alexei Starovoitov To: Daniel Borkmann Cc: "David S. Miller" , Ingo Molnar , Steven Rostedt , Chema Gonzalez , Eric Dumazet , Peter Zijlstra , Arnaldo Carvalho de Melo , Jiri Olsa , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , Kees Cook , Network Development , LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 3, 2014 at 1:35 PM, Daniel Borkmann wrote: > On 06/03/2014 05:44 PM, Alexei Starovoitov wrote: > ... >> >> All of your points are valid. They are right questions to ask. I just >> >> don't see why you're still arguing about first step of filter.c split, >> whereas your concerns are about steps 2, 3, 4. > > > Fair enough, lets keep them in mind though for future work. Btw, Ok :) > are other files planned for kernel/bpf/ or should it instead just > simply be kernel/bpf.c? The most obvious one is eBPF verifier in separate file (kernel/bpf/verifier.c) bpf maps is yet another thing, but that's different topic. Probably a set of bpf-callable functions in another file. Like right now for sockets these helpers are __skb_get_pay_offset(), __skb_get_nlattr() For tracing there will be a different set of helper functions and eventually some will be common. Like __get_raw_cpu_id() from filter.c could eventually move to kernel/bpf/helpers.c I'm not a fan of squeezing different logic into one file. -- 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/