third_party_libbpf/include
Vadim Fedorenko 03f31a6aed bpf: Add hardware timestamp field to __sk_buff
BPF programs may want to know hardware timestamps if NIC supports
such timestamping.

Expose this data as hwtstamp field of __sk_buff the same way as
gso_segs/gso_size. This field could be accessed from the same
programs as tstamp field, but it's read-only field. Explicit test
to deny access to padding data is added to bpf_skb_is_valid_access.

Also update BPF_PROG_TEST_RUN tests of the feature.

Signed-off-by: Vadim Fedorenko <vfedorenko@novek.ru>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210909220409.8804-2-vfedorenko@novek.ru
2021-09-17 14:03:39 -07:00
..
asm AF_XDP: add xsk.{c,h} to Makefile and fix build 2019-03-05 09:22:54 -08:00
linux include: implement list_empty() and list_for_each_entry() 2020-09-03 21:21:34 -07:00
uapi/linux bpf: Add hardware timestamp field to __sk_buff 2021-09-17 14:03:39 -07:00