Skip to content

tcp: add some RTO MIN and DELACK MAX {bpf_}set/getsockopt supports

Jason Xing bpf netdev 3 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (net)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesApplied 4/4
  2. v26 patches 6 repliesSuperseded
  3. v15 patches 2 repliesSuperseded

Patches in v3 All 4 applied

#Subject and filesSizeRepliesApplied
1/4tcp: bpf: introduce bpf_sol_tcp_getsockopt to support TCP_BPF flagsnet/core/filter.c+21 -120 repliesApplied
2/4tcp: bpf: support bpf_getsockopt for TCP_BPF_RTO_MINnet/core/filter.c+6 -00 repliesApplied
3/4tcp: bpf: support bpf_getsockopt for TCP_BPF_DELACK_MAXnet/core/filter.c+6 -00 repliesApplied
4/4selftests: add bpf_set/getsockopt() for TCP_BPF_DELACK_MAX and TCP_BPF_RTO_MINtools/testing/selftests/bpf/progs/setget_sockopt.c+2 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH bpf-next v3 0/4] tcp: add some RTO MIN and DELACK MAX {bpf_}set/getsockopt supports

Introduce bpf_sol_tcp_getsockopt() helper.

Add bpf_getsockopt for RTO MIN and DELACK MAX.

Add corresponding selftests for bpf.

---
v3

1. Remove 2 bpf unrelated patches which will be separately submitted after the netdev conference. So this series is consist of pure BPF modification.
2. Fix selftests by adjusting the test/expected value because some arch configs use HZ=100. Now those two selftests can be used from HZ=100 to HZ=1000.

v2

1. add bpf getsockopt common helper
2. target bpf-next net branch

Jason Xing (4):
tcp: bpf: introduce bpf_sol_tcp_getsockopt to support TCP_BPF flags
tcp: bpf: support bpf_getsockopt for TCP_BPF_RTO_MIN
tcp: bpf: support bpf_getsockopt for TCP_BPF_DELACK_MAX
selftests: add bpf_set/getsockopt() for TCP_BPF_DELACK_MAX and
TCP_BPF_RTO_MIN

 net/core/filter.c                             | 45 ++++++++++++++-----
 .../selftests/bpf/progs/setget_sockopt.c      |  2 +
 2 files changed, 35 insertions(+), 12 deletions(-)
Signature · 1 line
2.43.5