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)
commitc890063e440456e75c2e70f6bcec3797f1771eb6
tree81e2bf2415e67f9d54a668aa0b5e775c0981a53d
parent85cce215781685bbc94b6af2bd1aa40b71965a70
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]