netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: filter: split eBPF interpreter out of core networking
@ 2014-07-23  6:01 Alexei Starovoitov
  2014-07-23  6:01 ` [PATCH net-next 1/2] net: filter: split filter.c into two files Alexei Starovoitov
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Alexei Starovoitov @ 2014-07-23  6:01 UTC (permalink / raw)
  To: David S. Miller; +Cc: Ingo Molnar, Linus Torvalds, netdev, linux-kernel

Hi David,

I believe my recent set of RFC/patches [1] provided good visibility on where
I would like to take eBPF subsystem. These two trivial patches is a first step
in that direction:
patch 1 - mechanical split of eBPF interpreter out of filter.c
patch 2 - nominate myself as a maintainer for eBPF core pieces
In the foreseeable future eBPF patches will be going through net-next,
so put netdev as a primary mailing list

[1] git://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf master

Alexei Starovoitov (2):
  net: filter: split filter.c into two files
  bpf: update MAINTAINERS entry

 MAINTAINERS         |    7 +
 kernel/Makefile     |    1 +
 kernel/bpf/Makefile |    1 +
 kernel/bpf/core.c   |  536 +++++++++++++++++++++++++++++++++++++++++++++++++++
 net/core/filter.c   |  511 ------------------------------------------------
 5 files changed, 545 insertions(+), 511 deletions(-)
 create mode 100644 kernel/bpf/Makefile
 create mode 100644 kernel/bpf/core.c

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH net-next 0/2] split BPF out of core networking
@ 2014-06-01  1:42 Alexei Starovoitov
  2014-06-01  1:42 ` [PATCH net-next 1/2] net: filter: split filter.c into two files Alexei Starovoitov
  0 siblings, 1 reply; 12+ messages in thread
From: Alexei Starovoitov @ 2014-06-01  1:42 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, 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 split was proposed in the previous thread:
http://article.gmane.org/gmane.linux.network/316050

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 net/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.

The patches are on top of Daniel's cleanup to minimize conflicts:
http://patchwork.ozlabs.org/patch/353700/
http://patchwork.ozlabs.org/patch/353699/

Unfortunately they conflict with Chema's patches which in turn conflict
with Daniel's. But since Daniel got in the queue first, I've rebased mine
on top of Daniel's.

Tested with several NET and NET-less configs on arm and x86

Alexei Starovoitov (2):
  net: filter: split filter.c into two files
  net: filter: split BPF out of core networking

 arch/Kconfig           |    3 +-
 include/linux/filter.h |    2 +
 net/Kconfig            |    4 +
 net/Makefile           |    1 +
 net/bpf/Makefile       |    5 +
 net/bpf/core.c         | 1063 ++++++++++++++++++++++++++++++++++++++++++++++++
 net/core/filter.c      | 1023 +---------------------------------------------
 7 files changed, 1079 insertions(+), 1022 deletions(-)
 create mode 100644 net/bpf/Makefile
 create mode 100644 net/bpf/core.c

-- 
1.7.9.5

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

end of thread, other threads:[~2014-07-25  0:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-23  6:01 [PATCH net-next 0/2] net: filter: split eBPF interpreter out of core networking Alexei Starovoitov
2014-07-23  6:01 ` [PATCH net-next 1/2] net: filter: split filter.c into two files Alexei Starovoitov
2014-07-23  6:11   ` Varka Bhadram
2014-07-23  8:26     ` David Laight
2014-07-23  8:54     ` Daniel Borkmann
2014-07-23 16:49       ` Alexei Starovoitov
2014-07-24 23:45   ` Valdis.Kletnieks
2014-07-24 23:58     ` Alexei Starovoitov
2014-07-25  0:48       ` Valdis.Kletnieks
2014-07-23  6:01 ` [PATCH net-next 2/2] bpf: update MAINTAINERS entry Alexei Starovoitov
2014-07-24  4:08 ` [PATCH net-next 0/2] net: filter: split eBPF interpreter out of core networking David Miller
  -- strict thread matches above, loose matches on Subject: below --
2014-06-01  1:42 [PATCH net-next 0/2] split BPF " Alexei Starovoitov
2014-06-01  1:42 ` [PATCH net-next 1/2] net: filter: split filter.c into two files Alexei Starovoitov

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).