Skip to content

RFC ila: ilarouter bpf code for tc and xdp

Alexei Starovoitov netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2samples/bpf: ilarouter for tcsamples/bpf/Makefile samples/bpf/ila.h samples/bpf/ilarouter_tc.c +1 more+243 -00 replies
2/2samples/bpf: ilarouter for xdpsamples/bpf/Makefile samples/bpf/ilarouter_xdp.c+89 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/2] ila: ilarouter bpf code for tc and xdp

From: Aaron Yue <[email protected]>

Jesper,

here is old email and cover letter that didn't make it to the list due to vger outage (I guess).
The verifier patch that Aaron is talking about has landed long ago.

The dataplane of ILA router is very short and simple.
Control plane is very different matter. It's not ready for prime time yet.

----------

This patch contains the tc and xdp implementation of kernelspace bpf code. It requires userspace to insert to the ILA bpf maps, in tc's case, the precomputed ILA mappings, and in xdp's case, both the precomputed ILA mappings and the MAC address.

The xdp bpf code also requires a verifier patch to allow direct map access from the packet (will be patched in by Alexei).

Aaron Yue (2):
samples/bpf: ilarouter for tc
samples/bpf: ilarouter for xdp

 samples/bpf/Makefile        |   2 +
 samples/bpf/ila.h           |  80 ++++++++++++++++++++++++++++
 samples/bpf/ilarouter_tc.c  | 124 ++++++++++++++++++++++++++++++++++++++++++++
 samples/bpf/ilarouter_xdp.c |  88 +++++++++++++++++++++++++++++++
 samples/bpf/inet_helper.h   |  38 ++++++++++++++
 5 files changed, 332 insertions(+)
 create mode 100644 samples/bpf/ila.h
 create mode 100644 samples/bpf/ilarouter_tc.c
 create mode 100644 samples/bpf/ilarouter_xdp.c
 create mode 100644 samples/bpf/inet_helper.h
Signature · 1 line
2.8.0.rc2