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

2017-06-21 Thread Lawrence Brakmo
On 6/21/17, 10:13 AM, "Craig Gallek" wrote: On Wed, Jun 21, 2017 at 12:51 PM, Lawrence Brakmo wrote: > > On 6/20/17, 2:25 PM, "Craig Gallek" wrote: > > On Mon, Jun 19, 2017 at 11:00 PM, Lawrence Brakmo wrote: > > Added support for calling a subset of socket se

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

2017-06-21 Thread Craig Gallek
On Wed, Jun 21, 2017 at 12:51 PM, Lawrence Brakmo wrote: > > On 6/20/17, 2:25 PM, "Craig Gallek" wrote: > > On Mon, Jun 19, 2017 at 11:00 PM, Lawrence Brakmo wrote: > > Added support for calling a subset of socket setsockopts from > > BPF_PROG_TYPE_SOCK_OPS programs. The code was dup

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

2017-06-21 Thread Lawrence Brakmo
On 6/20/17, 2:25 PM, "Craig Gallek" wrote: On Mon, Jun 19, 2017 at 11:00 PM, Lawrence Brakmo wrote: > 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 sets

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

2017-06-20 Thread Craig Gallek
On Mon, Jun 19, 2017 at 11:00 PM, Lawrence Brakmo wrote: > 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

[PATCH net-next v3 07/15] bpf: Add setsockopt helper function to bpf

2017-06-19 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 SO_MAX_