Files
twx-linux/include/uapi/linux
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>
2023-10-06 13:18:17 +02:00
..
2021-09-14 08:46:08 +02:00
2021-08-17 11:47:53 -04:00
2021-08-10 13:32:40 -04:00
2021-10-06 12:05:51 +00:00
2021-06-03 15:31:34 -07:00
2023-06-05 09:21:19 +02:00
2021-05-21 15:03:50 +02:00
2023-06-21 15:59:15 +02:00
2021-07-06 10:37:46 -05:00
2021-06-23 12:56:08 -07:00
2023-09-19 12:22:45 +02:00
2021-06-12 13:16:45 -07:00