selftests/bpf: Test new __sk_buff field hwtstamp
authorVadim Fedorenko <vfedorenko@novek.ru>
Thu, 9 Sep 2021 22:04:09 +0000 (01:04 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 10 Sep 2021 21:20:13 +0000 (23:20 +0200)
commit3384c7c7641b44987e35eadbc9df6c16a0520159
treec9f94e549e26966186c4e3a6672ce42b6a470b83
parentf64c4acea51fbe2c08c0b0f48b7f5d1657d7a5e4
selftests/bpf: Test new __sk_buff field hwtstamp

Analogous to the gso_segs selftests introduced in commit d9ff286a0f59
("bpf: allow BPF programs access skb_shared_info->gso_segs field").

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-3-vfedorenko@novek.ru
lib/test_bpf.c
net/bpf/test_run.c
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
tools/testing/selftests/bpf/progs/test_skb_ctx.c
tools/testing/selftests/bpf/verifier/ctx_skb.c