Re: [PATCH bpf-next v6 04/11] bpf: Support passing args to sock_ops bpf function

2018-01-23 Thread Daniel Borkmann
On 01/24/2018 02:30 AM, Lawrence Brakmo wrote: > On 1/23/18, 5:11 PM, "Daniel Borkmann" wrote: [...] > > +{ > > + return -EPERM; > > +} > > + > > +static inline int tcp_call_bpf_4arg(struct sock *sk, int op, u32 arg1, > u32 arg2, > > +

Re: [PATCH bpf-next v6 04/11] bpf: Support passing args to sock_ops bpf function

2018-01-23 Thread Lawrence Brakmo
On 1/23/18, 5:11 PM, "Daniel Borkmann" wrote: On 01/20/2018 02:45 AM, Lawrence Brakmo wrote: > Adds support for passing up to 4 arguments to sock_ops bpf functions. It > reusues the reply union, so the bpf_sock_ops structures are not > increased in size. > > Signed-off-by

Re: [PATCH bpf-next v6 04/11] bpf: Support passing args to sock_ops bpf function

2018-01-23 Thread Daniel Borkmann
On 01/20/2018 02:45 AM, Lawrence Brakmo wrote: > Adds support for passing up to 4 arguments to sock_ops bpf functions. It > reusues the reply union, so the bpf_sock_ops structures are not > increased in size. > > Signed-off-by: Lawrence Brakmo > --- > include/linux/filter.h | 1 + > include/n

[PATCH bpf-next v6 04/11] bpf: Support passing args to sock_ops bpf function

2018-01-19 Thread Lawrence Brakmo
Adds support for passing up to 4 arguments to sock_ops bpf functions. It reusues the reply union, so the bpf_sock_ops structures are not increased in size. Signed-off-by: Lawrence Brakmo --- include/linux/filter.h | 1 + include/net/tcp.h| 64 ++