Skip to content

RFC introduce support for XDP programs in cpumaps

Lorenzo Bianconi bpf netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: cpumap: add the possibility to attach a eBPF program to cpumapkernel/bpf/cpumap.c+92 -193 replies
2/2samples/bpf: xdp_redirect_cpu: load a eBPF program on cpu_mapsamples/bpf/xdp_redirect_cpu_kern.c samples/bpf/xdp_redirect_cpu_user.c+93 -140 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC bpf-next 0/2] introduce support for XDP programs in cpumaps

Similar to what David Ahern proposed here [1] for DEVMAPs, introduce the capability to attach and run a XDP program to cpumap entries.
The idea behind this feature is to add the possibility to define on which CPU run the eBPF program if the underlying hw does not support RSS. Even if the series is functional, at the moment some bit are missing (e.g XDP_REDIRECT support or defining a new attach type).
The goal of this series is to get feebacks to add missing features.

[1] https://patchwork.ozlabs.org/project/netdev/cover/[email protected]/

Lorenzo Bianconi (2):
bpf: cpumap: add the possibility to attach a eBPF program to cpumap samples/bpf: xdp_redirect_cpu: load a eBPF program on cpu_map

 kernel/bpf/cpumap.c                 | 111 +++++++++++++++++++++++-----
 samples/bpf/xdp_redirect_cpu_kern.c |  24 +++++-
 samples/bpf/xdp_redirect_cpu_user.c |  83 +++++++++++++++++----
 3 files changed, 185 insertions(+), 33 deletions(-)
Signature · 1 line
2.26.2