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)
commit23729ff23186424e54b4d6678fcd526cdacef4d3
tree48015cc7037fbacbbc73b14326367381efbc46d1
parentd2f5bbbc350050895d9f33c2744a61f9e0af1caa
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