Skip to content

bpf: expose bpf_{g,s}etsockopt to more bpf_sock_addr hooks

Stanislav Fomichev bpf netdev 2 versions 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 · linked by author and title

  1. v2 Latest4 patches 4 repliesApplied 4/4
  2. v11 patch 2 repliesSuperseded

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4bpf: enable bpf_{g,s}etsockopt in BPF_CGROUP_UDP{4,6}_SENDMSGnet/core/filter.c tools/testing/selftests/bpf/bpf_sockopt_helpers.h tools/testing/selftests/bpf/progs/sendmsg4_prog.c +1 more+37 -00 repliesApplied
2/4bpf: enable bpf_{g,s}etsockopt in BPF_CGROUP_INET{4,6}_GET{PEER,SOCK}NAMEnet/core/filter.c tools/testing/selftests/bpf/progs/connect_force_port4.c tools/testing/selftests/bpf/progs/connect_force_port6.c+24 -00 repliesApplied
3/4selftests/bpf: rewrite recvmsg{4,6} asm progs to c in test_sock_addrtools/testing/selftests/bpf/progs/recvmsg4_prog.c tools/testing/selftests/bpf/progs/recvmsg6_prog.c tools/testing/selftests/bpf/test_sock_addr.c+92 -740 repliesApplied
4/4bpf: enable bpf_{g,s}etsockopt in BPF_CGROUP_UDP{4,6}_RECVMSGnet/core/filter.c tools/testing/selftests/bpf/progs/recvmsg4_prog.c tools/testing/selftests/bpf/progs/recvmsg6_prog.c+14 -04 repliesApplied

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/4] bpf: expose bpf_{g,s}etsockopt to more bpf_sock_addr hooks

We'd like to use the SENDMSG ones, Daniel suggested to expose to more hooks while are here.

Stanislav Fomichev (4):
bpf: enable bpf_{g,s}etsockopt in BPF_CGROUP_UDP{4,6}_SENDMSG
bpf: enable bpf_{g,s}etsockopt in

    BPF_CGROUP_INET{4,6}_GET{PEER,SOCK}NAME

selftests/bpf: rewrite readmsg{4,6} asm progs to c in test_sock_addr
bpf: enable bpf_{g,s}etsockopt in BPF_CGROUP_UDP{4,6}_RECVMSG

 net/core/filter.c                             | 16 ++++
 .../selftests/bpf/bpf_sockopt_helpers.h       | 21 +++++
 .../selftests/bpf/progs/connect_force_port4.c |  8 ++
 .../selftests/bpf/progs/connect_force_port6.c |  8 ++
 .../selftests/bpf/progs/recvmsg4_prog.c       | 42 +++++++++
 .../selftests/bpf/progs/recvmsg6_prog.c       | 48 +++++++++++
 .../selftests/bpf/progs/sendmsg4_prog.c       |  7 ++
 .../selftests/bpf/progs/sendmsg6_prog.c       |  5 ++
 tools/testing/selftests/bpf/test_sock_addr.c  | 86 +++----------------
 9 files changed, 167 insertions(+), 74 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/bpf_sockopt_helpers.h
 create mode 100644 tools/testing/selftests/bpf/progs/recvmsg4_prog.c
 create mode 100644 tools/testing/selftests/bpf/progs/recvmsg6_prog.c
Signature · 1 line
2.30.0.280.ga3ce27912f-goog