]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add BPF_CGROUP_SOCK_OPS callback that is executed on every RTT
authorStanislav Fomichev <sdf@google.com>
Tue, 2 Jul 2019 16:13:56 +0000 (09:13 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Jul 2019 14:52:01 +0000 (16:52 +0200)
commit4cdea11a67bceae89aaf0d4032558a54f39a0ff1
tree48015cc7037fbacbbc73b14326367381efbc46d1
parent05ec36e1f38f2736746ed24e0da3cd2d07c2625c
bpf: add BPF_CGROUP_SOCK_OPS callback that is executed on every RTT

Performance impact should be minimal because it's under a new
BPF_SOCK_OPS_RTT_CB_FLAG flag that has to be explicitly enabled.

Suggested-by: Eric Dumazet <edumazet@google.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Priyaranjan Jha <priyarjha@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/net/tcp.h
include/uapi/linux/bpf.h
net/ipv4/tcp_input.c