Skip to content

bpf: add support for BASE_RTT

Lawrence Brakmo netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bpf: add support for BPF_SOCK_OPS_BASE_RTTinclude/uapi/linux/bpf.h+7 -00 replies
2/5bpf: Adding helper function bpf_getsockopsinclude/uapi/linux/bpf.h net/core/filter.c tools/testing/selftests/bpf/bpf_helpers.h+63 -50 replies
3/5bpf: Add BPF_SOCKET_OPS_BASE_RTT support to tcp_nvnet/ipv4/tcp_nv.c+38 -21 reply
4/5bpf: sample BPF_SOCKET_OPS_BASE_RTT programsamples/bpf/Makefile samples/bpf/tcp_basertt_kern.c+79 -00 replies
5/5bpf: create samples/bpf/tcp_bpf.readmesamples/bpf/tcp_bbf.readme+27 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchDaniel BorkmannLawrence BrakmoAlexei Starovoitov
1/5A-b A-b
2/5A-b A-b A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH net-next 0/5] bpf: add support for BASE_RTT

This patch set adds the following functionality to socket_ops BPF programs.
1) Add bpf helper function bpf_getsocketops. Currently only supports TCP_CONGESTION
2) Add BPF_SOCKET_OPS_BASE_RTT op to get the base RTT of the connection. In general, the base RTT indicates the threshold such that RTTs above it indicate congestion. More details in the relevant patches.

Consists of the following patches:

[PATCH net-next 1/5] bpf: add support for BPF_SOCK_OPS_BASE_RTT [PATCH net-next 2/5] bpf: Adding helper function bpf_getsockops [PATCH net-next 3/5] bpf: Add BPF_SOCKET_OPS_BASE_RTT support to [PATCH net-next 4/5] bpf: sample BPF_SOCKET_OPS_BASE_RTT program [PATCH net-next 5/5] bpf: create samples/bpf/tcp_bpf.readme

 include/uapi/linux/bpf.h                  | 26 +++++++++++--
 net/core/filter.c                         | 46 ++++++++++++++++++++++-
 net/ipv4/tcp_nv.c                         | 40 +++++++++++++++++++-
 samples/bpf/Makefile                      |  1 +
 samples/bpf/tcp_basertt_kern.c            | 78 +++++++++++++++++++++++++++++++++++++++
 samples/bpf/tcp_bbf.readme                | 27 ++++++++++++++
 tools/testing/selftests/bpf/bpf_helpers.h |  3 ++
7 files changed, 214 insertions(+), 7 deletions(-)