History

bpf: add skb->tstamp r/w access from tc clsact and cg skb progs

This could be used to rate limit egress traffic in concert with a qdisc which supports Earliest Departure Time, such as FQ. Write access from cg skb progs only with CAP_SYS_ADMIN, since the value will be used by downstream qdiscs. It might make sense to relax this. Changes v1 -> v2: - allow access from cg skb, write only with CAP_SYS_ADMIN

Vlad Dumitrescu committed 7 years ago

Commit f11216b1 parent ab85b014 files · +60 −0Browse files

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

Unified · Split

include/uapi/linux/bpf.h+1−0
@@ -2468,6 +2468,7 @@ struct __sk_buff { · 2467 unmodified lines
24682468
24692469 __u32 data_meta;
24702470 struct bpf_flow_keys *flow_keys;
2471+ __u64 tstamp;
24712472 };
24722473
24732474 struct bpf_tunnel_key {