aboutsummaryrefslogtreecommitdiff
path: root/samples/bpf/tcp_basertt_kern.c
AgeCommit message (Collapse)AuthorFilesLines
2017-10-22bpf: sample BPF_SOCKET_OPS_BASE_RTT programLawrence Brakmo1-0/+78
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 <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Acked_by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>