-
- Downloads
Merge branch 'XDP-redirect-tracepoints'
Jesper Dangaard Brouer says:
====================
XDP redirect tracepoints
I feel this is as far as I can take the tracepoint infrastructure to
assist XDP monitoring.
Tracepoints comes with a base overhead of 25 nanosec for an attached
bpf_prog, and 48 nanosec for using a full perf record. This is
problematic for the XDP use-case, but it is very convenient to use the
existing perf infrastructure.
From a performance perspective, the real solution would be to attach
another bpf_prog (that understand xdp_buff), but I'm not sure we want
to introduce yet another bpf attach API for this.
One thing left is to standardize the possible err return codes, to a
limited set, to allow easier (and faster) mapping into a bpf map.
====================
Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/trace/events/xdp.h 82 additions, 18 deletionsinclude/trace/events/xdp.h
- net/core/filter.c 24 additions, 13 deletionsnet/core/filter.c
- samples/bpf/Makefile 4 additions, 0 deletionssamples/bpf/Makefile
- samples/bpf/xdp_monitor_kern.c 88 additions, 0 deletionssamples/bpf/xdp_monitor_kern.c
- samples/bpf/xdp_monitor_user.c 295 additions, 0 deletionssamples/bpf/xdp_monitor_user.c
- samples/bpf/xdp_redirect_kern.c 10 additions, 1 deletionsamples/bpf/xdp_redirect_kern.c
- samples/bpf/xdp_redirect_map_kern.c 10 additions, 1 deletionsamples/bpf/xdp_redirect_map_kern.c
- samples/bpf/xdp_redirect_map_user.c 15 additions, 7 deletionssamples/bpf/xdp_redirect_map_user.c
- samples/bpf/xdp_redirect_user.c 15 additions, 6 deletionssamples/bpf/xdp_redirect_user.c
Loading
Please register or sign in to comment