Re: [PATCH v2 bpf-next 06/11] bpf: Add sock_ops RTO callback

2017-12-31 Thread Lawrence Brakmo
On 12/28/17, 9:58 AM, "Yuchung Cheng" wrote: On Thu, Dec 21, 2017 at 5:20 PM, Lawrence Brakmo wrote: > > Adds an optional call to sock_ops BPF program based on whether the > BPF_SOCK_OPS_RTO_CB_FLAG is set in bpf_sock_ops_flags. > The BPF program is passed 2 arguments: icsk_

Re: [PATCH v2 bpf-next 06/11] bpf: Add sock_ops RTO callback

2017-12-28 Thread Yuchung Cheng
On Thu, Dec 21, 2017 at 5:20 PM, Lawrence Brakmo wrote: > > Adds an optional call to sock_ops BPF program based on whether the > BPF_SOCK_OPS_RTO_CB_FLAG is set in bpf_sock_ops_flags. > The BPF program is passed 2 arguments: icsk_retransmits and whether the > RTO has expired. > > Signed-off-by: La

[PATCH v2 bpf-next 06/11] bpf: Add sock_ops RTO callback

2017-12-21 Thread Lawrence Brakmo
Adds an optional call to sock_ops BPF program based on whether the BPF_SOCK_OPS_RTO_CB_FLAG is set in bpf_sock_ops_flags. The BPF program is passed 2 arguments: icsk_retransmits and whether the RTO has expired. Signed-off-by: Lawrence Brakmo --- include/uapi/linux/bpf.h | 5 + include/uapi/l