linux/tools/include/uapi
Stanislav Fomichev 9da93c7449 bpf: Clarify error expectations from bpf_clone_redirect
[ Upstream commit 7cb779a686 ]

Commit 151e887d8f ("veth: Fixing transmit return status for dropped
packets") exposed the fact that bpf_clone_redirect is capable of
returning raw NET_XMIT_XXX return codes.

This is in the conflict with its UAPI doc which says the following:
"0 on success, or a negative error in case of failure."

Update the UAPI to reflect the fact that bpf_clone_redirect can
return positive error numbers, but don't explicitly define
their meaning.

Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230911194731.286342-1-sdf@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-10-06 13:18:17 +02:00
..
asm tools/include/uapi: Fix <asm/errno.h> for parisc and xtensa 2022-09-23 14:15:49 +02:00
asm-generic tools headers UAPI: Sync files changed by new process_mrelease syscall and the removal of some compat entry points 2021-09-10 11:45:07 -03:00
drm tools headers UAPI: Update tools's copy of drm.h headers 2021-09-11 16:24:10 -03:00
linux bpf: Clarify error expectations from bpf_clone_redirect 2023-10-06 13:18:17 +02:00
sound tools include UAPI: Sync sound/asound.h copy with the kernel sources 2022-02-08 18:34:14 +01:00