path: root/samples/bpf/xdp_sample_pkts_user.c
diff options
authorMaciej Fijalkowski <maciejromanfijalkowski@gmail.com>2019-02-01 22:42:29 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2019-02-01 23:37:51 +0100
commit50db9f0731889b9f3839cab5f44163733eb44f04 (patch)
treec258a5f0eed345e022e671195b27623161ab763f /samples/bpf/xdp_sample_pkts_user.c
parent743e568c15860d4061202f73214c106a5bb0890b (diff)
libbpf: Add a support for getting xdp prog id on ifindex
Since we have a dedicated netlink attributes for xdp setup on a particular interface, it is now possible to retrieve the program id that is currently attached to the interface. The use case is targeted for sample xdp programs, which will store the program id just after loading bpf program onto iface. On shutdown, the sample will make sure that it can unload the program by querying again the iface and verifying that both program id's matches. Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf/xdp_sample_pkts_user.c')
0 files changed, 0 insertions, 0 deletions