bpf: Remove attach_type in bpf_netns_link
authorTao Chen <chen.dylane@linux.dev>
Thu, 10 Jul 2025 03:20:36 +0000 (11:20 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 11 Jul 2025 18:01:04 +0000 (11:01 -0700)
commit2a76a80c7ffc9894b90126af7b17584195b40b7a
treee2a1e873000f76d456faf9f6b5bb604b713a136e
parent6e816e1c052b453a93aeb8b57ede9acde58c458d
bpf: Remove attach_type in bpf_netns_link

Use attach_type in bpf_link, and remove it in bpf_netns_link.
And move netns_type field to the end to fill the byte hole.

Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20250710032038.888700-6-chen.dylane@linux.dev
kernel/bpf/net_namespace.c