bpf: sockmap, sockhash: support storing UDP sockets
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest12 patches 1 replyApplied
- v312 patches 21 repliesSuperseded
- v29 patches 10 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 7 patches | 11 replies | Superseded |
Changes in v4 from the cover letter
- Clarify !psock check in sock_map_link_no_progs
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | bpf: sockmap: only check ULP for TCP socketsinclude/ include/ net/ +1 more | +15 | 0 replies | |
| 2/12 | skmsg: update saved hooks only onceinclude/ net/ | +17 | 0 replies | |
| 3/12 | bpf: tcp: move assertions into tcp_bpf_get_protoinclude/ net/ net/ | +31 | 0 replies | |
| 4/12 | bpf: tcp: guard declarations with CONFIG_NET_SOCK_MSGinclude/ | +2 | 0 replies | |
| 5/12 | bpf: sockmap: move generic sockmap hooks from BPF TCPinclude/ include/ include/ +2 more | +118 | 0 replies | |
| 6/12 | bpf: sockmap: simplify sock_map_init_protonet/ | +4 | 0 replies | |
| 7/12 | bpf: add sockmap hooks for UDP socketsMAINTAINERS include/ net/ +1 more | +60 | 0 replies | |
| 8/12 | bpf: sockmap: add UDP supportnet/ | +33 | 0 replies | |
| 9/12 | selftests: bpf: don't listen() on UDP socketstools/ | +25 | 0 replies | |
| 10/12 | selftests: bpf: add tests for UDP sockets in sockmaptools/ | +127 | 0 replies | |
| 11/12 | selftests: bpf: enable UDP sockmap reuseport teststools/ | +0 | 0 replies | |
| 12/12 | bpf, doc: update maintainers for L7 BPFMAINTAINERS | +2 | 0 replies |
Reviews trailers per patch
All 12 patches have a Reviewed-by or Acked-by.
| Patch | Jakub Sitnicki | John Fastabend |
|---|---|---|
| 1/12 | R-b | A-b |
| 2/12 | R-b | A-b |
| 3/12 | R-b | A-b |
| 4/12 | R-b | A-b |
| 5/12 | R-b | A-b |
| 6/12 | R-b | A-b |
| 7/12 | A-b | |
| 8/12 | A-b | |
| 9/12 | R-b | A-b |
| 10/12 | A-b | |
| 11/12 | R-b | A-b |
| 12/12 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next v4 00/12] bpf: sockmap, sockhash: support storing UDP sockets
I've adressed John's nit in patch 3, and added the reviews and acks.
Changes since v3:
- Clarify !psock check in sock_map_link_no_progs
Changes since v2:
- Remove sk_psock_hooks based on Jakub's idea
- Fix reference to tcp_bpf_clone in commit message
- Add inet_csk_has_ulp helper
Changes since v1:
- Check newsk->sk_prot in tcp_bpf_clone
- Fix compilation with BPF_STREAM_PARSER disabled
- Use spin_lock_init instead of static initializer
- Elaborate on TCPF_SYN_RECV
- Cosmetic changes to TEST macros, and more tests
- Add Jakub and me as maintainers
Lorenz Bauer (12):
bpf: sockmap: only check ULP for TCP sockets
skmsg: update saved hooks only once
bpf: tcp: move assertions into tcp_bpf_get_proto
bpf: tcp: guard declarations with CONFIG_NET_SOCK_MSG
bpf: sockmap: move generic sockmap hooks from BPF TCP
bpf: sockmap: simplify sock_map_init_proto
bpf: add sockmap hooks for UDP sockets
bpf: sockmap: add UDP support
selftests: bpf: don't listen() on UDP sockets
selftests: bpf: add tests for UDP sockets in sockmap
selftests: bpf: enable UDP sockmap reuseport tests bpf, doc: update maintainers for L7 BPF
MAINTAINERS | 3 + include/linux/bpf.h | 4 +- include/linux/skmsg.h | 56 ++--- include/net/inet_connection_sock.h | 6 + include/net/tcp.h | 20 +- include/net/udp.h | 5 + net/core/sock_map.c | 157 +++++++++++--- net/ipv4/Makefile | 1 + net/ipv4/tcp_bpf.c | 114 ++-------- net/ipv4/tcp_ulp.c | 7 - net/ipv4/udp_bpf.c | 53 +++++ .../bpf/prog_tests/select_reuseport.c | 6 - .../selftests/bpf/prog_tests/sockmap_listen.c | 204 +++++++++++++----- 13 files changed, 402 insertions(+), 234 deletions(-) create mode 100644 net/ipv4/udp_bpf.c
Signature · 1 line
2.20.1