]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: Clarify handling of mark and tstamp by redirect_peer
authorPaul Chaignon <paul.chaignon@gmail.com>
Mon, 5 May 2025 19:58:39 +0000 (21:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 May 2025 01:16:33 +0000 (18:16 -0700)
commitf5c79ffdc250bc8c90fd4fdf1e5d7ac4647912d5
tree18c695e7afdd4dfb8a02f21704e6c1734398d644
parentc4327229948879814229b46aa26a750718888503
bpf: Clarify handling of mark and tstamp by redirect_peer

When switching network namespaces with the bpf_redirect_peer helper, the
skb->mark and skb->tstamp fields are not zeroed out like they can be on
a typical netns switch. This patch clarifies that in the helper
description.

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/ccc86af26d43c5c0b776bcba2601b7479c0d46d0.1746460653.git.paul.chaignon@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h