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)
commitfee9ac06647e59a69fb7aec58f25267c134264b4
tree1e0dcc256b6989057ca328e93d0aac846722405b
parent8f279fb00bb29def9ac79e28c5d6d8e07d21f3fb
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: e993ffe3da4bc ("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