All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesper Dangaard Brouer <brouer@redhat.com>
To: xdp-newbies@vger.kernel.org
Cc: "Anton Protopopov" <a.s.protopopov@gmail.com>,
	dsahern@gmail.com, "Toke Høiland-Jørgensen" <toke@redhat.com>
Subject: Re: [bpf-next PATCH 0/3] bpf: improvements to xdp_fwd sample
Date: Wed, 7 Aug 2019 15:00:10 +0200	[thread overview]
Message-ID: <20190807150010.1a58a1d2@carbon> (raw)
In-Reply-To: <156518133219.5636.728822418668658886.stgit@firesoul>

Hi XDP-newbies,

I cross-posted this patchset to remind XDP-users that the kernel
since[2] v4.18 have a BPF helper (bpf_fib_lookup) to do forwarding
lookups in kernel FIB route table directly from XDP.

The XDP-tutorial now have an assignment[3] 'packet03-redirecting' that
also uses this FIB helper (special thanks to Anton Protopopov for
adding this).

Toke's devmap lookup improvement is first avail in kernel v5.3.
Thus, not part of XDP-tutorial yet.


[2] 87f5fc7e48dd ("bpf: Provide helper to do forwarding lookups in kernel FIB table")
 https://git.kernel.org/torvalds/c/87f5fc7e48dd

[3] https://github.com/xdp-project/xdp-tutorial/blob/master/packet03-redirecting/


On Wed, 07 Aug 2019 14:36:12 +0200
Jesper Dangaard Brouer <brouer@redhat.com> wrote:

> This patchset is focused on improvements for XDP forwarding sample
> named xdp_fwd, which leverage the existing FIB routing tables as
> described in LPC2018[1] talk by David Ahern.
> 
> The primary motivation is to illustrate how Toke's recent work
> improves usability of XDP_REDIRECT via lookups in devmap. The other
> patches are to help users understand the sample.
> 
> I have more improvements to xdp_fwd, but those might requires changes
> to libbpf.  Thus, sending these patches first as they are isolated.
> 
> [1] http://vger.kernel.org/lpc-networking2018.html#session-1


-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer

  parent reply	other threads:[~2019-08-07 13:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-07 12:36 [bpf-next PATCH 0/3] bpf: improvements to xdp_fwd sample Jesper Dangaard Brouer
2019-08-07 12:36 ` [bpf-next PATCH 1/3] samples/bpf: xdp_fwd rename devmap name to be xdp_tx_ports Jesper Dangaard Brouer
2019-08-07 17:52   ` Y Song
2019-08-07 17:52   ` David Ahern
2019-08-07 12:36 ` [bpf-next PATCH 2/3] samples/bpf: make xdp_fwd more practically usable via devmap lookup Jesper Dangaard Brouer
2019-08-07 17:52   ` David Ahern
2019-08-07 18:04   ` Y Song
2019-08-08  6:51     ` Jesper Dangaard Brouer
2019-08-07 12:36 ` [bpf-next PATCH 3/3] samples/bpf: xdp_fwd explain bpf_fib_lookup return codes Jesper Dangaard Brouer
2019-08-07 17:52   ` David Ahern
2019-08-07 18:05   ` Y Song
2019-08-07 13:00 ` Jesper Dangaard Brouer [this message]
2019-08-07 22:09   ` [bpf-next PATCH 0/3] bpf: improvements to xdp_fwd sample Zvi Effron
2019-08-08  9:29     ` Jesper Dangaard Brouer
2019-08-08 17:21       ` Zvi Effron

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=20190807150010.1a58a1d2@carbon \
    --to=brouer@redhat.com \
    --cc=a.s.protopopov@gmail.com \
    --cc=dsahern@gmail.com \
    --cc=toke@redhat.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.