Re: [PATCH net-next v4 01/16] bpf: BPF support for sock_ops

2017-06-30 Thread Lawrence Brakmo
On 6/29/17, 2:46 AM, "netdev-ow...@vger.kernel.org on behalf of Daniel Borkmann" wrote: On 06/28/2017 07:31 PM, Lawrence Brakmo wrote: > Created a new BPF program type, BPF_PROG_TYPE_SOCK_OPS, and a corresponding > struct that allows BPF programs of this type to access some of the

Re: [PATCH net-next v4 01/16] bpf: BPF support for sock_ops

2017-06-29 Thread kbuild test robot
Hi Lawrence, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Lawrence-Brakmo/bpf-BPF-cgroup-support-for-sock_ops/20170629-203719 config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https:/

Re: [PATCH net-next v4 01/16] bpf: BPF support for sock_ops

2017-06-29 Thread kbuild test robot
Hi Lawrence, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Lawrence-Brakmo/bpf-BPF-cgroup-support-for-sock_ops/20170629-203719 config: tile-allyesconfig (attached as .config) compiler: tilegx-linux-gcc (GCC) 4.6.2 reproduce: wget https://r

Re: [PATCH net-next v4 01/16] bpf: BPF support for sock_ops

2017-06-29 Thread Daniel Borkmann
On 06/28/2017 07:31 PM, Lawrence Brakmo wrote: Created a new BPF program type, BPF_PROG_TYPE_SOCK_OPS, and a corresponding struct that allows BPF programs of this type to access some of the socket's fields (such as IP addresses, ports, etc.). It uses the existing bpf cgroups infrastructure so the

Re: [PATCH net-next v4 01/16] bpf: BPF support for sock_ops

2017-06-28 Thread Alexei Starovoitov
On 6/28/17 10:31 AM, Lawrence Brakmo wrote: +#ifdef CONFIG_BPF +static inline int tcp_call_bpf(struct sock *sk, bool is_req_sock, int op) +{ + struct bpf_sock_ops_kern sock_ops; + int ret; + + if (!is_req_sock) + sock_owned_by_me(sk); + + memset(&sock_ops, 0,

[PATCH net-next v4 01/16] bpf: BPF support for sock_ops

2017-06-28 Thread Lawrence Brakmo
Created a new BPF program type, BPF_PROG_TYPE_SOCK_OPS, and a corresponding struct that allows BPF programs of this type to access some of the socket's fields (such as IP addresses, ports, etc.). It uses the existing bpf cgroups infrastructure so the programs can be attached per cgroup with full in