Skip to content

TCP-BPF callback for listening sockets

Andrey Ignatov netdev 1 version Applied

Status from this message: Applied to bpf-next, thanks Andrey!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6bpf: Add BPF_SOCK_OPS_TCP_LISTEN_CBinclude/uapi/linux/bpf.h net/ipv4/af_inet.c+4 -00 replies
2/6bpf: Sync bpf.h to tools/tools/include/uapi/linux/bpf.h+3 -00 replies
3/6selftests/bpf: Fix const'ness in cgroup_helperstools/testing/selftests/bpf/cgroup_helpers.c tools/testing/selftests/bpf/cgroup_helpers.h+6 -60 replies
4/6selftests/bpf: Switch test_tcpbpf_user to cgroup_helperstools/testing/selftests/bpf/Makefile tools/testing/selftests/bpf/test_tcpbpf_user.c+22 -340 replies
5/6selftests/bpf: Better verification in test_tcpbpftools/testing/selftests/bpf/test_tcpbpf_user.c+39 -250 replies
6/6selftests/bpf: Test case for BPF_SOCK_OPS_TCP_LISTEN_CBtools/testing/selftests/bpf/test_tcpbpf.h tools/testing/selftests/bpf/test_tcpbpf_kern.c tools/testing/selftests/bpf/test_tcpbpf_user.c+16 -60 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlexei StarovoitovLawrence Brakmo
SeriesA-b
1/6A-b
2/6A-b
3/6A-b
4/6A-b
5/6A-b
6/6A-b

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/6] TCP-BPF callback for listening sockets

This patchset adds TCP-BPF callback for listening sockets.

Patch 0001 provides more details and is the main patch in the set.

Patch 0006 adds selftest for the new callback.

Other patches are bug fixes and improvements in TCP-BPF selftest to make it easier to extend in 0006.

Andrey Ignatov (6):
bpf: Add BPF_SOCK_OPS_TCP_LISTEN_CB
bpf: Sync bpf.h to tools/
selftests/bpf: Fix const'ness in cgroup_helpers selftests/bpf: Switch test_tcpbpf_user to cgroup_helpers selftests/bpf: Better verification in test_tcpbpf selftests/bpf: Test case for BPF_SOCK_OPS_TCP_LISTEN_CB

 include/uapi/linux/bpf.h                      |   3 +
 net/ipv4/af_inet.c                            |   1 +
 tools/include/uapi/linux/bpf.h                |   3 +
 tools/testing/selftests/bpf/Makefile          |   1 +
 tools/testing/selftests/bpf/cgroup_helpers.c  |   6 +-
 tools/testing/selftests/bpf/cgroup_helpers.h  |   6 +-
 tools/testing/selftests/bpf/test_tcpbpf.h     |   1 +
 .../testing/selftests/bpf/test_tcpbpf_kern.c  |  17 ++-
 .../testing/selftests/bpf/test_tcpbpf_user.c  | 119 +++++++++---------
 9 files changed, 88 insertions(+), 69 deletions(-)
Signature · 1 line
2.17.1