summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-07-22 08:45:59 +0200
committerAlexei Starovoitov <ast@kernel.org>2020-07-26 05:37:02 +0200
commitc1931c9784ebb5787c0784c112fb8baa5e8455b3 (patch)
tree756ccc0946ea3286cd4649937ec912fd20642434 /include
parentbpf, xdp: Implement LINK_UPDATE for BPF XDP link (diff)
downloadlinux-c1931c9784ebb5787c0784c112fb8baa5e8455b3.tar.xz
linux-c1931c9784ebb5787c0784c112fb8baa5e8455b3.zip
bpf: Implement BPF XDP link-specific introspection APIs
Implement XDP link-specific show_fdinfo and link_info to emit ifindex. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200722064603.3350758-7-andriin@fb.com
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/bpf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 87823fb9c123..e1ba4ae6a916 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -4069,6 +4069,9 @@ struct bpf_link_info {
__u32 netns_ino;
__u32 attach_type;
} netns;
+ struct {
+ __u32 ifindex;
+ } xdp;
};
} __attribute__((aligned(8)));