On Sat, Nov 9, 2019 at 12:37 PM Toke Høiland-Jørgensen <toke@xxxxxxxxxx> wrote: > > From: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> > > Currently, libbpf only provides a function to get a single ID for the XDP > program attached to the interface. However, it can be useful to get the > full set of program IDs attached, along with the attachment mode, in one > go. Add a new getter function to support this, using an extendible > structure to carry the information. Express the old bpf_get_link_id() > function in terms of the new function. > > Acked-by: David S. Miller <davem@xxxxxxxxxxxxx> > Acked-by: Song Liu <songliubraving@xxxxxx> > Signed-off-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> > --- looks good now, thanks! Acked-by: Andrii Nakryiko <andriin@xxxxxx> > tools/lib/bpf/libbpf.h | 10 +++++ > tools/lib/bpf/libbpf.map | 1 + > tools/lib/bpf/netlink.c | 84 +++++++++++++++++++++++++++++++--------------- > 3 files changed, 67 insertions(+), 28 deletions(-) > [...]