From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Graf Subject: Re: [PATCH iproute2 -next v2] tc, bpf: finalize eBPF support for cls and act front-end Date: Wed, 1 Apr 2015 23:15:26 +0100 Message-ID: <20150401221526.GA19425@casper.infradead.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: stephen@networkplumber.org, ast@plumgrid.com, jiri@resnulli.us, jhs@mojatatu.com, netdev@vger.kernel.org To: Daniel Borkmann Return-path: Received: from casper.infradead.org ([85.118.1.10]:58410 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbbDAWP2 (ORCPT ); Wed, 1 Apr 2015 18:15:28 -0400 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 04/01/15 at 05:57pm, Daniel Borkmann wrote: > This work finalizes both eBPF front-ends for the classifier and action > part in tc, it allows for custom ELF section selection, a simplified tc > command frontend (while keeping compat), reusing of common maps between > classifier and actions residing in the same object file, and exporting > of all map fds to an eBPF agent for handing off further control in user > space. > > It also adds an extensive example of how eBPF can be used, and a minimal > self-contained example agent that dumps map data. The example is well > documented and hopefully provides a good starting point into programming > cls_bpf and act_bpf. > > Signed-off-by: Daniel Borkmann > Cc: Alexei Starovoitov > Cc: Jiri Pirko > Cc: Jamal Hadi Salim The examples for both the classifier/action and the map fd handover are very nicely written and help a lot to understand how all of this works. FWIW: Acked-by: Thomas Graf