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
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -2468,6 +2468,7 @@ struct __sk_buff { · 2467 unmodified lines | |||
| 2468 | 2468 | ||
| 2469 | __u32 data_meta; | 2469 | __u32 data_meta; |
| 2470 | struct bpf_flow_keys *flow_keys; | 2470 | struct bpf_flow_keys *flow_keys; |
| 2471 | __u64 tstamp; | ||
| 2471 | }; | 2472 | }; |
| 2472 | 2473 | ||
| 2473 | struct bpf_tunnel_key { | 2474 | struct bpf_tunnel_key { |