Skip to content

Do not limit cb_flags when creating child sk from listen sk

Martin KaFai Lau bpf netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: tcp: Do not limit cb_flags when creating child sk from listen skinclude/net/tcp.h net/ipv4/tcp_minisocks.c+0 -340 repliesApplied
2/2bpf: selftest: Ensure the child sk inherited all bpf_sock_ops_cb_flagstools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c tools/testing/selftests/bpf/progs/test_tcp_hdr_options.c +1 more+22 -60 repliesApplied

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchStanislav Fomichev
SeriesT-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 v1 thread

Cover letter [PATCH bpf-next 0/2] Do not limit cb_flags when creating child sk from listen sk

This set fixes an issue that the bpf_skops_init_child() unnecessarily limited the child sk from inheriting all bpf_sock_ops_cb_flags of the listen sk. It also adds a test to check that.

Martin KaFai Lau (2):
bpf: tcp: Do not limit cb_flags when creating child sk from listen sk
bpf: selftest: Ensure the child sk inherited all bpf_sock_ops_cb_flags

 include/net/tcp.h                             | 33 -------------------
 net/ipv4/tcp_minisocks.c                      |  1 -
 .../bpf/prog_tests/tcp_hdr_options.c          | 12 +++++++
 .../bpf/progs/test_misc_tcp_hdr_options.c     |  4 +--
 .../bpf/progs/test_tcp_hdr_options.c          |  7 ++--
 .../selftests/bpf/test_tcp_hdr_options.h      |  5 +--
 6 files changed, 22 insertions(+), 40 deletions(-)
Signature · 1 line
2.24.1