History

ebpf: add skb->priority to offset map for usage in {cls, act}_bpf

This adds the ability to read out the skb->priority from an eBPF program, so that it can be taken into account from a tc filter or action for the use-case where the priority is not being used to directly override the filter classification in a qdisc, but to tag traffic otherwise for the classifier; the priority can be assigned from various places incl. user space, in future we may also mangle it from an eBPF program.

Daniel Borkmann committed 11 years ago

Commit bcad5711 parent 2e7056c2 files · +8 −0Browse files

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

Unified · Split

include/uapi/linux/bpf.h+1−0
@@ -184,6 +184,7 @@ struct __sk_buff { · 183 unmodified lines
184 __u32 vlan_present;184 __u32 vlan_present;
185 __u32 vlan_tci;185 __u32 vlan_tci;
186 __u32 vlan_proto;186 __u32 vlan_proto;
187 __u32 priority;
187};188};
188 189
189#endif /* _UAPI__LINUX_BPF_H__ */190#endif /* _UAPI__LINUX_BPF_H__ */

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