lkml.org 
[lkml]   [2014]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v12 net-next 04/11] bpf: expand BPF syscall with program load/unload
From
From: Alexei Starovoitov <ast@plumgrid.com>
Date: Mon, 15 Sep 2014 12:18:34 -0700

> @@ -121,6 +132,21 @@ union bpf_attr {
> void __user *next_key;
> };
> };
> +
> + struct { /* anonymous struct used by BPF_PROG_LOAD command */
> + __u32 prog_type; /* one of enum bpf_prog_type */
> + __u32 insn_cnt;
> + const struct bpf_insn __user *insns;
> + const char __user *license;
> + };
> +};

Again, these need syscall compat handling. You may want to redesign
the types so that perhaps no compat layer translations will be needed.


\
 
 \ /
  Last update: 2014-09-16 22:01    [W:0.124 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site