BPF helper improvements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | bpf: minor cleanups on fd maps and helperskernel/ kernel/ | +7 | 0 replies | |
| 2/6 | bpf, trace: fetch current cpu only oncekernel/ | +3 | 0 replies | |
| 3/6 | bpf, trace: add BPF_F_CURRENT_CPU flag for bpf_perf_event_readinclude/ kernel/ | +9 | 0 replies | |
| 4/6 | bpf: don't use raw processor id in generic helperkernel/ net/ | +10 | 0 replies | |
| 5/6 | bpf: add bpf_skb_change_proto helperinclude/ net/ | +214 | 0 replies | |
| 6/6 | bpf: add bpf_skb_change_type helperinclude/ net/ | +33 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Alexei Starovoitov |
|---|---|
| 1/6 | A-b |
| 2/6 | A-b |
| 3/6 | A-b |
| 4/6 | A-b |
| 5/6 | A-b |
| 6/6 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/6] BPF helper improvements
This set adds various BPF helper improvements, that is, cleaning up and adding BPF_F_CURRENT_CPU flag for tracing helper, allowing for preemption checks on bpf_get_smp_processor_id() helper, and adding two new helpers bpf_skb_change_{proto, type} for tc related programs. For further details please see individual patches.
Note, this set requires -net to be merged into -net-next tree first.
Thanks a lot!
Daniel Borkmann (6):
bpf: minor cleanups on fd maps and helpers
bpf, trace: fetch current cpu only once
bpf, trace: add BPF_F_CURRENT_CPU flag for bpf_perf_event_read
bpf: don't use raw processor id in generic helper
bpf: add bpf_skb_change_proto helper
bpf: add bpf_skb_change_type helper
include/uapi/linux/bpf.h | 25 ++++- kernel/bpf/core.c | 3 +- kernel/bpf/helpers.c | 2 +- kernel/trace/bpf_trace.c | 32 +++---- net/core/filter.c | 234 ++++++++++++++++++++++++++++++++++++++++++++++- 5 files changed, 275 insertions(+), 21 deletions(-)
Signature · 1 line
1.9.3