Thread (46 messages) 46 messages, 8 authors, 2022-07-18

Re: [RFC PATCH 14/17] libbpf: Add support for querying dequeue programs

flat view

From: Toke Høiland-Jørgensen <hidden>
Date: 2022-07-14 10:13:58
Also in: bpf

Andrii Nakryiko [off-list ref] writes:
On Wed, Jul 13, 2022 at 4:15 AM Toke Høiland-Jørgensen [off-list ref] wrote:
quoted
Add support to libbpf for reading the dequeue program ID from netlink when
querying for installed XDP programs. No additional support is needed to
install dequeue programs, as they are just using a new mode flag for the
regular XDP program installation mechanism.

Signed-off-by: Toke Høiland-Jørgensen <redacted>
---
 tools/lib/bpf/libbpf.h  | 1 +
 tools/lib/bpf/netlink.c | 8 ++++++++
 2 files changed, 9 insertions(+)
diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h
index e4d5353f757b..b15ff90279cb 100644
--- a/tools/lib/bpf/libbpf.h
+++ b/tools/lib/bpf/libbpf.h
@@ -906,6 +906,7 @@ struct bpf_xdp_query_opts {
        __u32 drv_prog_id;      /* output */
        __u32 hw_prog_id;       /* output */
        __u32 skb_prog_id;      /* output */
+       __u32 dequeue_prog_id;  /* output */
can't do that, you have to put it after attach_mode to preserve
backwards/forward compat
Argh, yes, of course, total brainfart - thanks for pointing that out! :)

-Toke
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help