On Tue, Oct 4, 2022 at 4:12 PM Daniel Borkmann <daniel@xxxxxxxxxxxxx> wrote: > > Implement tc BPF link specific show_fdinfo and link_info to emit ifindex, > attach location and priority. > > Co-developed-by: Nikolay Aleksandrov <razor@xxxxxxxxxxxxx> > Signed-off-by: Nikolay Aleksandrov <razor@xxxxxxxxxxxxx> > Signed-off-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx> > --- LGTM Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > include/uapi/linux/bpf.h | 5 +++++ > kernel/bpf/net.c | 36 ++++++++++++++++++++++++++++++++++ > tools/include/uapi/linux/bpf.h | 5 +++++ > 3 files changed, 46 insertions(+) > > diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h > index c006f561648e..f1b089170b78 100644 > --- a/include/uapi/linux/bpf.h > +++ b/include/uapi/linux/bpf.h > @@ -6309,6 +6309,11 @@ struct bpf_link_info { > struct { > __u32 ifindex; > } xdp; > + struct { > + __u32 ifindex; > + __u32 attach_type; > + __u32 priority; > + } tc; > }; > } __attribute__((aligned(8))); > [...]