Skip to content

a few corrections for SOCK_SUPPORT_ZC

Pavel Begunkov io-uring netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4udp: advertise ipv6 udp support for msghdr::ubuf_infonet/ipv6/udp.c+1 -00 repliesApplied
2/4net: remove SOCK_SUPPORT_ZC from sockmapinclude/net/sock.h net/ipv4/tcp_bpf.c net/ipv4/udp_bpf.c +1 more+15 -80 repliesApplied
3/4net/ulp: remove SOCK_SUPPORT_ZC from tls socketsnet/ipv4/tcp_ulp.c+3 -00 repliesApplied
4/4net: also flag accepted sockets supporting msghdr originated zerocopynet/ipv4/af_inet.c+2 -00 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net 0/4] a few corrections for SOCK_SUPPORT_ZC

There are several places/cases that got overlooked in regards to SOCK_SUPPORT_ZC. We're lacking the flag for IPv6 UDP sockets and accepted TCP sockets. We also should clear the flag when someone tries to hijack a socket by replacing the ->sk_prot callbacks.

Pavel Begunkov (3):
udp: advertise ipv6 udp support for msghdr::ubuf_info
net: remove SOCK_SUPPORT_ZC from sockmap net/ulp: remove SOCK_SUPPORT_ZC from tls sockets

Stefan Metzmacher (1):
net: also flag accepted sockets supporting msghdr originated zerocopy

 include/net/sock.h  | 7 +++++++
 net/ipv4/af_inet.c  | 2 ++
 net/ipv4/tcp_bpf.c  | 4 ++--
 net/ipv4/tcp_ulp.c  | 3 +++
 net/ipv4/udp_bpf.c  | 4 ++--
 net/ipv6/udp.c      | 1 +
 net/unix/unix_bpf.c | 8 ++++----
 7 files changed, 21 insertions(+), 8 deletions(-)
Signature · 1 line
2.38.0