Re: [PATCH bpf-next 4/7] bpf: implement BPF XDP link-specific introspection APIs

2020-07-13 Thread Andrii Nakryiko
On Mon, Jul 13, 2020 at 7:32 AM David Ahern wrote: > > On 7/10/20 4:49 PM, Andrii Nakryiko wrote: > > diff --git a/net/core/dev.c b/net/core/dev.c > > index 025687120442..a9c634be8dd7 100644 > > --- a/net/core/dev.c > > +++ b/net/core/dev.c > > @@ -8973,6 +8973,35 @@ static void bpf_xdp_link_deall

Re: [PATCH bpf-next 4/7] bpf: implement BPF XDP link-specific introspection APIs

2020-07-13 Thread David Ahern
On 7/10/20 4:49 PM, Andrii Nakryiko wrote: > diff --git a/net/core/dev.c b/net/core/dev.c > index 025687120442..a9c634be8dd7 100644 > --- a/net/core/dev.c > +++ b/net/core/dev.c > @@ -8973,6 +8973,35 @@ static void bpf_xdp_link_dealloc(struct bpf_link *link) > kfree(xdp_link); > } > > +sta

[PATCH bpf-next 4/7] bpf: implement BPF XDP link-specific introspection APIs

2020-07-12 Thread Andrii Nakryiko
Implement XDP link-specific show_fdinfo and link_info to emit ifindex. Signed-off-by: Andrii Nakryiko --- include/uapi/linux/bpf.h | 3 +++ net/core/dev.c | 31 +++ 2 files changed, 34 insertions(+) diff --git a/include/uapi/linux/bpf.h b/include/uapi/linu