Skip to content

Add support to set window_clamp from bpf setsockops

Prankur gupta bpf netdev 4 versions – Applied

Status from this message: Applied, Thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesApplied
  2. v32 patches 1 replySuperseded
  3. v22 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches3 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: Adds support for setting window clampinclude/net/tcp.h net/core/filter.c net/ipv4/tcp.c+20 -90 replies
2/2selftests/bpf: Add Userspace tests for TCP_WINDOW_CLAMPtools/testing/selftests/bpf/bpf_tcp_helpers.h tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c +1 more+40 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMartin KaFai Lau
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 bpf-next 0/2] Add support to set window_clamp from bpf setsockops

This patch contains support to set tcp window_field field from bpf setsockops.

v2: Used TCP_WINDOW_CLAMP setsockopt logic for bpf_setsockopt (review comment addressed)

v3: Created a common function for duplicated code (review comment addressed)

v4: Removing logic to pass struct sock and struct tcp_sock together (review comment addressed)

Prankur gupta (2):
bpf: Adds support for setting window clamp selftests/bpf: Add Userspace tests for TCP_WINDOW_CLAMP

 include/net/tcp.h                             |  1 +
 net/core/filter.c                             |  3 ++
 net/ipv4/tcp.c                                | 25 +++++++++-----
 tools/testing/selftests/bpf/bpf_tcp_helpers.h |  1 +
 .../selftests/bpf/prog_tests/tcpbpf_user.c    |  4 +++
 .../selftests/bpf/progs/test_tcpbpf_kern.c    | 33 +++++++++++++++++++
 tools/testing/selftests/bpf/test_tcpbpf.h     |  2 ++
 7 files changed, 60 insertions(+), 9 deletions(-)
Signature · 1 line
2.24.1