History

bpf: offload: report device information for offloaded programs

Report to the user ifindex and namespace information of offloaded programs. If device has disappeared return -ENODEV. Specify the namespace using dev/inode combination.

Jakub Kicinski committed 8 years ago

Commit 675fc271 parent cdab6ba5 files · +73 −0Browse files

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

Unified · Split

include/uapi/linux/bpf.h+3−0
@@ -921,6 +921,9 @@ struct bpf_prog_info { · 920 unmodified lines
921 __u32 nr_map_ids;921 __u32 nr_map_ids;
922 __aligned_u64 map_ids;922 __aligned_u64 map_ids;
923 char name[BPF_OBJ_NAME_LEN];923 char name[BPF_OBJ_NAME_LEN];
924 __u32 ifindex;
925 __u64 netns_dev;
926 __u64 netns_ino;
924} __attribute__((aligned(8)));927} __attribute__((aligned(8)));
925 928
926struct bpf_map_info {929struct bpf_map_info {

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