]> git.baikalelectronics.ru Git - kernel.git/commit
net: remove SOCK_SUPPORT_ZC from sockmap
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 26 Oct 2022 23:25:57 +0000 (00:25 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Oct 2022 03:21:25 +0000 (20:21 -0700)
commit8e186ad9f0a4e406b4b4c3426741e5c07059bfe4
tree1e0dcc256b6989057ca328e93d0aac846722405b
parenta5160bc5e4955292629aac1ed09a2d01686918d5
net: remove SOCK_SUPPORT_ZC from sockmap

sockmap replaces ->sk_prot with its own callbacks, we should remove
SOCK_SUPPORT_ZC as the new proto doesn't support msghdr::ubuf_info.

Cc: <stable@vger.kernel.org> # 6.0
Reported-by: Jakub Kicinski <kuba@kernel.org>
Fixes: 03814fb0137dd ("net: flag sockets supporting msghdr originated zerocopy")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h
net/ipv4/tcp_bpf.c
net/ipv4/udp_bpf.c
net/unix/unix_bpf.c