]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
strparser: Add read_sock callback
authorJiayuan Chen <mrpre@163.com>
Wed, 22 Jan 2025 10:09:13 +0000 (18:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:30:19 +0000 (04:30 -0800)
commita87a6888c05b4a8956c9ce8b2b09569a9fd22218
tree2648d97d61d2df611561f7b175080150752e6c5f
parentd95607a5f2f9bb08194c9deaf4a5f3e8ba59a9d4
strparser: Add read_sock callback

[ Upstream commit 0532a79efd68a4d9686b0385e4993af4b130ff82 ]

Added a new read_sock handler, allowing users to customize read operations
instead of relying on the native socket's read_sock.

Signed-off-by: Jiayuan Chen <mrpre@163.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://patch.msgid.link/20250122100917.49845-2-mrpre@163.com
Stable-dep-of: 36b62df5683c ("bpf: Fix wrong copied_seq calculation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/networking/strparser.rst
include/net/strparser.h
net/strparser/strparser.c