Re: [PATCH net-next v5 07/16] bpf: Add setsockopt helper function to bpf

2017-07-02 Thread Lawrence Brakmo
On 7/1/17, 11:51 PM, "kbuild test robot" wrote: Hi Lawrence, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Lawrence-Brakmo/bpf-Adding-support-for-sock_ops/20170701-203039 config:

Re: [PATCH net-next v5 07/16] bpf: Add setsockopt helper function to bpf

2017-07-02 Thread kbuild test robot
Hi Lawrence, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Lawrence-Brakmo/bpf-Adding-support-for-sock_ops/20170701-203039 config: x86_64-randconfig-i0-07010430 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: # save

Re: [PATCH net-next v5 07/16] bpf: Add setsockopt helper function to bpf

2017-06-30 Thread Lawrence Brakmo
On 6/30/17, 5:01 PM, "Daniel Borkmann" wrote: On 06/30/2017 10:06 PM, Lawrence Brakmo wrote: [...] > @@ -2672,6 +2673,69 @@ static const struct bpf_func_proto bpf_get_socket_uid_proto = { > .arg1_type = ARG_PTR_TO_CTX, > }; > >

Re: [PATCH net-next v5 07/16] bpf: Add setsockopt helper function to bpf

2017-06-30 Thread Daniel Borkmann
On 06/30/2017 10:06 PM, Lawrence Brakmo wrote: [...] @@ -2672,6 +2673,69 @@ static const struct bpf_func_proto bpf_get_socket_uid_proto = { .arg1_type = ARG_PTR_TO_CTX, }; +BPF_CALL_5(bpf_setsockopt, struct bpf_sock_ops_kern *, bpf_sock, + int, level, int, optname, char

[PATCH net-next v5 07/16] bpf: Add setsockopt helper function to bpf

2017-06-30 Thread Lawrence Brakmo
Added support for calling a subset of socket setsockopts from BPF_PROG_TYPE_SOCK_OPS programs. The code was duplicated rather than making the changes to call the socket setsockopt function because the changes required would have been larger. The ops supported are: SO_RCVBUF SO_SNDBUF