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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -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__ */ |