From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:60532 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752045AbdGFIgZ (ORCPT ); Thu, 6 Jul 2017 04:36:25 -0400 Date: Thu, 6 Jul 2017 10:36:13 +0200 From: Jesper Dangaard Brouer Subject: Re: XDP for very newbies Message-ID: <20170706103613.70b5cecb@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: xdp-newbies-owner@vger.kernel.org List-ID: To: Jean-Philippe Menil Cc: Donatas Abraitis , xdp-newbies@vger.kernel.org, brouer@redhat.com On Wed, 5 Jul 2017 21:31:32 +0200 Jean-Philippe Menil wrote: > On 07/05/2017 09:23 PM, Donatas Abraitis wrote: > > Yeah, but I cannot find anything useful regarding generic XDP which is > > a new feature. > > > > On Wed, Jul 5, 2017 at 10:00 PM, Jean-Philippe Menil wrote: > >> On 07/05/2017 08:36 PM, Donatas Abraitis wrote: > >>> > >>> Hi folks! > >>> > >>> I see some isolated examples about XDP, but cannot find any good > >>> tutorial in one place starting from theory to practical examples. Who > >>> can recommend something as a starting point? > >>> > >>> I would like to try Generic XDP or so. > >>> > >> > >> Hi Donatas, > >> > >> There is tons of stuff already referenced by Quentin: > >> https://qmonnet.github.io/whirl-offload/2016/09/01/dive-into-bpf/ > >> > >> It's bpf oriented, but there is a lot of links/docs in the "About XDP" > >> section. > >> > > Hi, > > Take a look to the blogspot from Jesper: > http://prototype-kernel.readthedocs.io/en/latest/blogposts/xdp25_eval_generic_xdp_tx.html Thanks for mentioning this document. There is a general introduction to XDP here: https://prototype-kernel.readthedocs.io/en/latest/networking/XDP/introduction.html I'm developing some practical examples to get people started using XDP and eBPF. I've made an effort to detect common errors and tool chain setup issues, and give error messages with elaborate hints. They are placed in my github repo: https://github.com/netoptimizer/prototype-kernel https://github.com/netoptimizer/prototype-kernel/tree/master/kernel/samples/bpf The generic XDP feature can be activated with cmdline option "--skb-mode" in (most of) my examples. The blacklist example were used in a tutorial session at NetDevConf 2.1: http://netdevconf.org/2.1/session.html?gospodarek Slides: http://netdevconf.org/2.1/slides/apr7/gospodarek-Netdev2.1-XDP-for-the-Rest-of-Us_Final.pdf Video: https://youtu.be/iBkR4gvjxtE?t=2m1s -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer