[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140916.151711.203074982751372582.davem@davemloft.net>
Date: Tue, 16 Sep 2014 15:17:11 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: ast@...mgrid.com
Cc: mingo@...nel.org, torvalds@...ux-foundation.org,
luto@...capital.net, dborkman@...hat.com,
hannes@...essinduktion.org, chema@...gle.com, edumazet@...gle.com,
a.p.zijlstra@...llo.nl, pablo@...filter.org, hpa@...or.com,
akpm@...ux-foundation.org, keescook@...omium.org,
linux-api@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v12 net-next 04/11] bpf: expand BPF syscall with
program load/unload
From: Alexei Starovoitov <ast@...mgrid.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists