All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesper Dangaard Brouer <brouer@redhat.com>
To: Jean-Philippe Menil <jpmenil@gmail.com>
Cc: Donatas Abraitis <donatas.abraitis@gmail.com>,
	xdp-newbies@vger.kernel.org, brouer@redhat.com
Subject: Re: XDP for very newbies
Date: Thu, 6 Jul 2017 10:36:13 +0200	[thread overview]
Message-ID: <20170706103613.70b5cecb@redhat.com> (raw)
In-Reply-To: <f72ede56-eed2-502c-75c2-bc4296d709c9@gmail.com>


On Wed, 5 Jul 2017 21:31:32 +0200 Jean-Philippe Menil <jpmenil@gmail.com> 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 <jpmenil@gmail.com> 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

  parent reply	other threads:[~2017-07-06  8:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-05 18:36 XDP for very newbies Donatas Abraitis
2017-07-05 19:00 ` Jean-Philippe Menil
2017-07-05 19:23   ` Donatas Abraitis
2017-07-05 19:31     ` Jean-Philippe Menil
2017-07-06  6:00       ` Rami Rosen
2017-07-06  8:36       ` Jesper Dangaard Brouer [this message]
2017-07-07  6:57         ` Donatas Abraitis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170706103613.70b5cecb@redhat.com \
    --to=brouer@redhat.com \
    --cc=donatas.abraitis@gmail.com \
    --cc=jpmenil@gmail.com \
    --cc=xdp-newbies@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.