]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add sock_ops RTO callback
authorLawrence Brakmo <brakmo@fb.com>
Fri, 26 Jan 2018 00:14:11 +0000 (16:14 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Jan 2018 00:41:14 +0000 (16:41 -0800)
commit862168323df94be78ddadf255e7dce8b1479ffb1
tree7589bf9c59c29c7fef4bfb2a7f7d98f679715a42
parent1645fc7b8aada31624c4a32d3ab0262c2d98d8ad
bpf: Add sock_ops RTO callback

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 <brakmo@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/uapi/linux/bpf.h
net/ipv4/tcp_timer.c