linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v9 net-next 0/4] load imm64 insn and uapi/linux/bpf.h
@ 2014-09-03  3:17 Alexei Starovoitov
  2014-09-03  3:17 ` [PATCH v9 net-next 1/4] net: filter: add "load 64-bit immediate" eBPF instruction Alexei Starovoitov
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Alexei Starovoitov @ 2014-09-03  3:17 UTC (permalink / raw)
  To: David S. Miller
  Cc: Ingo Molnar, Linus Torvalds, Andy Lutomirski, Steven Rostedt,
	Daniel Borkmann, Hannes Frederic Sowa, Chema Gonzalez,
	Eric Dumazet, Peter Zijlstra, H. Peter Anvin, Andrew Morton,
	Kees Cook, linux-api-u79uwXL29TY76Z2rM5mHXA,
	netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

Hi,

V8->V9
- rebase on top of Hannes's patch in the same area [1]
- no changes to patches 1 and 2
- added patches 3 and 4 as RFC to address Daniel's concern.
  patch 3 moves eBPF instruction macros and
  patch 4 split macros which are shared between classic and eBPF
  into bpf_common.h
  3 and 4 will be used by verifier testsuite and will be reposted later
  during stage III

V8 thread with 'why' reasoning and end goal:
https://lkml.org/lkml/2014/8/27/628

Original set [2] of ~28 patches I'm planning to present in 4 stages:

  I. this 2 patches to fork off llvm upstreaming
 II. bpf syscall with manpage and map implementation
III. bpf program load/unload with verifier testsuite (1st user of
     instruction macros from bpf.h and 1st user of load imm64 insn)
 IV. tracing, etc

[1] http://patchwork.ozlabs.org/patch/385266/
[2] https://lkml.org/lkml/2014/8/26/859

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [PATCH v9 net-next 2/4] net: filter: split filter.h and expose eBPF to user space
@ 2014-09-04  5:41 Alexei Starovoitov
       [not found] ` <CAMEtUuz6zraph_8xXW43bNbh5uPRki0yOufMfV5pKMRLhDrQQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Alexei Starovoitov @ 2014-09-04  5:41 UTC (permalink / raw)
  To: David S. Miller
  Cc: Ingo Molnar, Linus Torvalds, Andy Lutomirski, Steven Rostedt,
	Hannes Frederic Sowa, Chema Gonzalez, Eric Dumazet,
	Peter Zijlstra, H. Peter Anvin, Andrew Morton, Kees Cook,
	Linux API, Network Development, LKML, Daniel Borkmann

On Wed, Sep 3, 2014 at 8:46 AM, Daniel Borkmann <dborkman@redhat.com> wrote:
> On 09/03/2014 05:17 AM, Alexei Starovoitov wrote:
>>
>> allow user space to generate eBPF programs
>>
>> uapi/linux/bpf.h: eBPF instruction set definition
>>
>> linux/filter.h: the rest
>>
>> This patch only moves macro definitions, but practically it freezes
>> existing
>> eBPF instruction set, though new instructions can still be added in the
>> future.
>>
>> These eBPF definitions cannot go into uapi/linux/filter.h, since the names
>> may conflict with existing applications.
>>
>> Full eBPF ISA description is in Documentation/networking/filter.txt
>>
>> Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
>
>
> Ok, given you post the remaining two RFCs later on this window as
> you indicate, I have no objections:
>
> Acked-by: Daniel Borkmann <dborkman@redhat.com>

David,

I see that all 4 patches are marked as rfc, whereas I tagged
only 3 and 4 as 'rfc' and mentioned in cover letter that they
will be coming for real in stage III. Here they support patch 2
and show the future changes to bpf.h file.
Patches 1 and 2 are good to go.
Note that they're on top of Hannes's patch:
http://patchwork.ozlabs.org/patch/385266/
Do you want me to resubmit just first two?

Thanks

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

end of thread, other threads:[~2014-10-14 20:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-03  3:17 [PATCH v9 net-next 0/4] load imm64 insn and uapi/linux/bpf.h Alexei Starovoitov
2014-09-03  3:17 ` [PATCH v9 net-next 1/4] net: filter: add "load 64-bit immediate" eBPF instruction Alexei Starovoitov
2014-09-03  3:17 ` [PATCH v9 net-next 2/4] net: filter: split filter.h and expose eBPF to user space Alexei Starovoitov
     [not found]   ` <1409714246-31054-3-git-send-email-ast-uqk4Ao+rVK5Wk0Htik3J/w@public.gmane.org>
2014-09-03 15:46     ` Daniel Borkmann
2014-10-13 17:21       ` Daniel Borkmann
2014-10-13 21:49         ` Alexei Starovoitov
2014-10-14  7:34           ` Daniel Borkmann
2014-10-14  8:43             ` Alexei Starovoitov
2014-10-14 20:27               ` Daniel Borkmann
2014-09-03  3:17 ` [PATCH RFC v9 net-next 3/4] net: filter: move eBPF instruction macros Alexei Starovoitov
     [not found] ` <1409714246-31054-1-git-send-email-ast-uqk4Ao+rVK5Wk0Htik3J/w@public.gmane.org>
2014-09-03  3:17   ` [PATCH RFC v9 net-next 4/4] net: filter: move common defines into bpf_common.h Alexei Starovoitov
  -- strict thread matches above, loose matches on Subject: below --
2014-09-04  5:41 [PATCH v9 net-next 2/4] net: filter: split filter.h and expose eBPF to user space Alexei Starovoitov
     [not found] ` <CAMEtUuz6zraph_8xXW43bNbh5uPRki0yOufMfV5pKMRLhDrQQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-04 21:49   ` David Miller

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