From: Daniel Borkmann Date: Wed, 3 Jul 2019 14:52:03 +0000 (+0200) Subject: Merge branch 'bpf-tcp-rtt-hook' X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e5a3e259ef239f443951d401db10db7d426c9497;p=openwrt%2Fstaging%2Fblogic.git Merge branch 'bpf-tcp-rtt-hook' Stanislav Fomichev says: ==================== Congestion control team would like to have a periodic callback to track some TCP statistics. Let's add a sock_ops callback that can be selectively enabled on a socket by socket basis and is executed for every RTT. BPF program frequency can be further controlled by calling bpf_ktime_get_ns and bailing out early. I run neper tcp_stream and tcp_rr tests with the sample program from the last patch and didn't observe any noticeable performance difference. v2: * add a comment about second accept() in selftest (Yonghong Song) * refer to tcp_bpf.readme in sample program (Yonghong Song) ==================== Suggested-by: Eric Dumazet Cc: Eric Dumazet Cc: Priyaranjan Jha Cc: Yuchung Cheng Cc: Soheil Hassas Yeganeh Acked-by: Soheil Hassas Yeganeh Acked-by: Yuchung Cheng Acked-by: Yonghong Song Acked-by: Lawrence Brakmo Signed-off-by: Daniel Borkmann --- e5a3e259ef239f443951d401db10db7d426c9497