From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Starovoitov Subject: Re: [PATCH net-next 2/2] act_bpf: add initial eBPF support for actions Date: Fri, 20 Mar 2015 14:21:51 -0700 Message-ID: <550C8F6F.9050403@plumgrid.com> References: <6fcca3889ace4f7f090470e50a001aca721bd0d9.1426859241.git.daniel@iogearbox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: jiri@resnulli.us, netdev@vger.kernel.org, Jamal Hadi Salim To: Daniel Borkmann , davem@davemloft.net Return-path: Received: from mail-pa0-f49.google.com ([209.85.220.49]:35971 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751120AbbCTVVx (ORCPT ); Fri, 20 Mar 2015 17:21:53 -0400 Received: by padcy3 with SMTP id cy3so120308186pad.3 for ; Fri, 20 Mar 2015 14:21:53 -0700 (PDT) In-Reply-To: <6fcca3889ace4f7f090470e50a001aca721bd0d9.1426859241.git.daniel@iogearbox.net> Sender: netdev-owner@vger.kernel.org List-ID: On 3/20/15 7:11 AM, Daniel Borkmann wrote: > This work extends the "classic" BPF programmable tc action by extending > its scope also to native eBPF code! > > Together with commit e2e9b6541dd4 ("cls_bpf: add initial eBPF support > for programmable classifiers") this adds the facility to implement fully > flexible classifier and actions for tc that can be implemented in a C > subset in user space, "safely" loaded into the kernel, and being run in > native speed when JITed. > > Also, since eBPF maps can be shared between eBPF programs, it offers the > possibility that cls_bpf and act_bpf can share data 1) between themselves > and 2) between user space applications. That means that, f.e. customized > runtime statistics can be collected in user space, but also more importantly > classifier and action behaviour could be altered based on map input from > the user space application. > > For the remaining details on the workflow and integration, see the cls_bpf > commit e2e9b6541dd4. Preliminary iproute2 part can be found under [1]. > > [1] http://git.breakpoint.cc/cgit/dborkman/iproute2.git/log/?h=ebpf-act > > Signed-off-by: Daniel Borkmann > Cc: Jamal Hadi Salim > Cc: Jiri Pirko Acked-by: Alexei Starovoitov