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 (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
40694069 __u32 netns_ino;
40704070 __u32 attach_type;
40714071 } netns;
4072+ struct {
4073+ __u32 ifindex;
4074+ } xdp;
40724075 };
40734076 } __attribute__((aligned(8)));
40744077

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t