split BPF out of core networking
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 19 repliesIn review
- v12 patches 1 replySuperseded
Changes in v2 from the cover letter
rebase on top of net-next
split filter.c into kernel/bpf/core.c instead of net/bpf/core.c
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: filter: split filter.c into two filesinclude/ kernel/ kernel/ +2 more | +1052 | 0 replies | |
| 2/2 | net: filter: split BPF out of core networkingarch/ kernel/ kernel/ +1 more | +28 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 net-next 0/2] split BPF out of core networking
This patch set splits BPF out of core networking into generic component
patch #1 splits filter.c into two logical pieces: generic BPF core and socket filters. It only moves functions around. No real changes.
patch #2 adds hidden CONFIG_BPF that seccomp/tracing can select
The main value of the patch is not a NET separation, but rather logical boundary between generic BPF core and socket filtering. All socket specific code stays in net/core/filter.c and kernel/bpf/core.c is for generic BPF infrastructure (both classic and internal).
Note that CONFIG_BPF_JIT is still under NET, so NET-less configs cannot use BPF JITs yet. This can be cleaned up in the future. Also it seems to makes sense to split up filter.h into generic and socket specific as well to cleanup the boundary further.
Tested with several NET and NET-less configs on arm and x86
V1->V2:
rebase on top of net-next
split filter.c into kernel/bpf/core.c instead of net/bpf/core.c
Alexei Starovoitov (2):
net: filter: split filter.c into two files
net: filter: split BPF out of core networking
arch/Kconfig | 6 +- include/linux/filter.h | 2 + kernel/Makefile | 1 + kernel/bpf/Makefile | 5 + kernel/bpf/core.c | 1063 ++++++++++++++++++++++++++++++++++++++++++++++++ net/Kconfig | 1 + net/core/filter.c | 1023 +--------------------------------------------- 7 files changed, 1079 insertions(+), 1022 deletions(-) create mode 100644 kernel/bpf/Makefile create mode 100644 kernel/bpf/core.c
Signature · 1 line
1.7.9.5