skmsg: Return copied bytes in sk_msg_memcopy_from_iter
authorLevi Zim <rsworktech@outlook.com>
Sat, 30 Nov 2024 13:38:22 +0000 (21:38 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 20 Dec 2024 21:53:36 +0000 (22:53 +0100)
commitfdf478d236dcf0f1f68534df5d456ced625195bd
tree22483cb4ffb1ac93b7b5f12a87a330ef2e24b626
parentd888b7af7c149c115dd6ac772cc11c375da3e17c
skmsg: Return copied bytes in sk_msg_memcopy_from_iter

Previously sk_msg_memcopy_from_iter returns the copied bytes from the
last copy_from_iter{,_nocache} call upon success.

This commit changes it to return the total number of copied bytes on
success.

Signed-off-by: Levi Zim <rsworktech@outlook.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Björn Töpel <bjorn@kernel.org>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20241130-tcp-bpf-sendmsg-v1-1-bae583d014f3@outlook.com
net/core/skmsg.c