bpf, docs: Fix bpf_redirect_peer header doc
authorVictor Stewart <v@nametag.social>
Tue, 16 Jan 2024 20:29:52 +0000 (20:29 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Jan 2024 22:43:12 +0000 (14:43 -0800)
Amend the bpf_redirect_peer() header documentation to also mention
support for the netkit device type.

Signed-off-by: Victor Stewart <v@nametag.social>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240116202952.241009-1-v@nametag.social
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/uapi/linux/bpf.h

index 754e68ca8744cc5db4416ef4fc37fcef4d5ae5bc..a00f8a5623e132226838b07c8a676291535bf8bb 100644 (file)
@@ -4839,9 +4839,9 @@ union bpf_attr {
  *             going through the CPU's backlog queue.
  *
  *             The *flags* argument is reserved and must be 0. The helper is
- *             currently only supported for tc BPF program types at the ingress
- *             hook and for veth device types. The peer device must reside in a
- *             different network namespace.
+ *             currently only supported for tc BPF program types at the
+ *             ingress hook and for veth and netkit target device types. The
+ *             peer device must reside in a different network namespace.
  *     Return
  *             The helper returns **TC_ACT_REDIRECT** on success or
  *             **TC_ACT_SHOT** on error.