netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/2] split BPF out of core networking
@ 2014-06-02  7:01 Alexei Starovoitov
  2014-06-02  7:01 ` [PATCH v2 net-next 1/2] net: filter: split filter.c into two files Alexei Starovoitov
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Alexei Starovoitov @ 2014-06-02  7:01 UTC (permalink / raw)
  To: David S. Miller
  Cc: Ingo Molnar, Steven Rostedt, Daniel Borkmann, Chema Gonzalez,
	Eric Dumazet, Peter Zijlstra, Arnaldo Carvalho de Melo, Jiri Olsa,
	Thomas Gleixner, H. Peter Anvin, Andrew Morton, Kees Cook, netdev,
	linux-kernel

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

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-06-24  8:33 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02  7:01 [PATCH v2 net-next 0/2] split BPF out of core networking Alexei Starovoitov
2014-06-02  7:01 ` [PATCH v2 net-next 1/2] net: filter: split filter.c into two files Alexei Starovoitov
2014-06-02  7:01 ` [PATCH v2 net-next 2/2] net: filter: split BPF out of core networking Alexei Starovoitov
2014-06-02  8:57 ` [PATCH v2 net-next 0/2] " Daniel Borkmann
2014-06-02 15:41   ` Alexei Starovoitov
2014-06-02 17:04     ` Daniel Borkmann
2014-06-02 19:02       ` Alexei Starovoitov
2014-06-03  8:56         ` Daniel Borkmann
2014-06-03 15:44           ` Alexei Starovoitov
2014-06-03 20:35             ` Daniel Borkmann
2014-06-03 20:58               ` Alexei Starovoitov
2014-06-03 21:40                 ` Chema Gonzalez
2014-06-04  0:38                   ` Alexei Starovoitov
2014-06-20 16:44                     ` Chema Gonzalez
2014-06-23  9:18                       ` David Laight
2014-06-23 21:57                       ` Alexei Starovoitov
2014-06-24  8:33                         ` Daniel Borkmann
2014-06-02 13:15 ` Jonathan Corbet
2014-06-02 13:24   ` Steven Rostedt
2014-06-02 14:16     ` Arnaldo Carvalho de Melo
2014-06-02 14:57       ` Alexei Starovoitov
2014-06-03 18:16         ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).