]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: sample BPF_SOCKET_OPS_BASE_RTT program
authorLawrence Brakmo <brakmo@fb.com>
Fri, 20 Oct 2017 18:05:42 +0000 (11:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 02:12:05 +0000 (03:12 +0100)
commitb258c8b403ba6c93da90fd43042e959b01e82a9d
tree81e2bf2415e67f9d54a668aa0b5e775c0981a53d
parent4fae90f635579bee8a8da6c94e542e5364d65152
bpf: sample BPF_SOCKET_OPS_BASE_RTT program

Sample socket_ops BPF program to test the BPF helper function
bpf_getsocketops and the new socket_ops op BPF_SOCKET_OPS_BASE_RTT.

The program provides a base RTT of 80us when the calling flow is
within a DC (as determined by the IPV6 prefix) and the congestion
algorithm is "nv".

Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked_by: Alexei Starovoitov <ast@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/Makefile
samples/bpf/tcp_basertt_kern.c [new file with mode: 0644]