History

bpf: Implement BPF XDP link-specific introspection APIs

Implement XDP link-specific show_fdinfo and link_info to emit ifindex.

Andrii Nakryiko committed 6 years ago

Commit c1931c91 parent 026a4c22 files · +34 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/bpf.h+3−0
@@ -4069,6 +4069,9 @@ struct bpf_link_info { · 4068 unmodified lines
4069 __u32 netns_ino;4069 __u32 netns_ino;
4070 __u32 attach_type;4070 __u32 attach_type;
4071 } netns;4071 } netns;
4072 struct {
4073 __u32 ifindex;
4074 } xdp;
4072 };4075 };
4073} __attribute__((aligned(8)));4076} __attribute__((aligned(8)));
4074 4077