On Wed, Jul 09, 2025 at 11:08 AM +08, Tao Chen wrote: > Use attach_type in bpf_link, and remove it in bpf_netns_link. > > Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx> > Signed-off-by: Tao Chen <chen.dylane@xxxxxxxxx> > --- > kernel/bpf/net_namespace.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/kernel/bpf/net_namespace.c b/kernel/bpf/net_namespace.c > index 63702c86275..6d27bd97c95 100644 > --- a/kernel/bpf/net_namespace.c > +++ b/kernel/bpf/net_namespace.c > @@ -11,7 +11,6 @@ > > struct bpf_netns_link { > struct bpf_link link; > - enum bpf_attach_type type; > enum netns_bpf_attach_type netns_type; > > /* We don't hold a ref to net in order to auto-detach the link Nit: Doesn't that create a hole? Maybe move netns_type to the end. [...]