Re: [PATCH bpf-next v6 05/11] bpf: Adds field bpf_sock_ops_cb_flags to tcp_sock

2018-01-23 Thread Eric Dumazet
On Fri, 2018-01-19 at 19:52 -0800, Alexei Starovoitov wrote: > On Fri, Jan 19, 2018 at 05:45:42PM -0800, Lawrence Brakmo wrote: > > Adds field bpf_sock_ops_cb_flags to tcp_sock and bpf_sock_ops. Its primary > > use is to determine if there should be calls to sock_ops bpf program at > > various poin

Re: [PATCH bpf-next v6 05/11] bpf: Adds field bpf_sock_ops_cb_flags to tcp_sock

2018-01-19 Thread Lawrence Brakmo
On 1/19/18, 7:52 PM, "Alexei Starovoitov" wrote: On Fri, Jan 19, 2018 at 05:45:42PM -0800, Lawrence Brakmo wrote: > Adds field bpf_sock_ops_cb_flags to tcp_sock and bpf_sock_ops. Its primary > use is to determine if there should be calls to sock_ops bpf program at > various points

Re: [PATCH bpf-next v6 05/11] bpf: Adds field bpf_sock_ops_cb_flags to tcp_sock

2018-01-19 Thread Alexei Starovoitov
On Fri, Jan 19, 2018 at 05:45:42PM -0800, Lawrence Brakmo wrote: > Adds field bpf_sock_ops_cb_flags to tcp_sock and bpf_sock_ops. Its primary > use is to determine if there should be calls to sock_ops bpf program at > various points in the TCP code. The field is initialized to zero, > disabling the

[PATCH bpf-next v6 05/11] bpf: Adds field bpf_sock_ops_cb_flags to tcp_sock

2018-01-19 Thread Lawrence Brakmo
Adds field bpf_sock_ops_cb_flags to tcp_sock and bpf_sock_ops. Its primary use is to determine if there should be calls to sock_ops bpf program at various points in the TCP code. The field is initialized to zero, disabling the calls. A sock_ops BPF program can set it, per connection and as necessar