linux/tools/include/uapi
Petar Penkov e3da08d057 bpf: allow BPF read access to qdisc pkt_len
The pkt_len field in qdisc_skb_cb stores the skb length as it will
appear on the wire after segmentation. For byte accounting, this value
is more accurate than skb->len. It is computed on entry to the TC
layer, so only valid there.

Allow read access to this field from BPF tc classifier and action
programs. The implementation is analogous to tc_classid, aside from
restricting to read access.

To distinguish it from skb->len and self-describe export as wire_len.

Changes v1->v2
  - Rename pkt_len to wire_len

Signed-off-by: Petar Penkov <ppenkov@google.com>
Signed-off-by: Vlad Dumitrescu <vladum@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-12-03 21:37:51 +01:00
..
asm selftests/bpf: add architecture-agnostic headers 2018-05-10 00:40:58 +02:00
asm-generic tools arch uapi: Update asm-generic/unistd.h and arm64 unistd.h copies 2018-10-31 09:57:51 -03:00
drm tools headers uapi: Update tools's copy of drm/drm.h 2018-09-11 11:07:56 -03:00
linux bpf: allow BPF read access to qdisc pkt_len 2018-12-03 21:37:51 +01:00
sound tools include uapi: Update asound.h copy 2018-10-31 09:57:52 -03:00