Re: [PATCH v2 bpf-next 10/11] bpf: Add BPF_SOCK_OPS_STATE_CB

2017-12-26 Thread Alexei Starovoitov
On Thu, Dec 21, 2017 at 05:21:00PM -0800, Lawrence Brakmo wrote: > Adds support for calling sock_ops BPF program when there is a TCP state > change. Two arguments are used; one for the old state and another for > the new state. > > New op: BPF_SOCK_OPS_STATE_CB. > > Signed-off-by: Lawrence Brakmo

[PATCH v2 bpf-next 10/11] bpf: Add BPF_SOCK_OPS_STATE_CB

2017-12-21 Thread Lawrence Brakmo
Adds support for calling sock_ops BPF program when there is a TCP state change. Two arguments are used; one for the old state and another for the new state. New op: BPF_SOCK_OPS_STATE_CB. Signed-off-by: Lawrence Brakmo --- include/uapi/linux/bpf.h | 4 include/uapi/linux/tcp.h | 1 + net/i