[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210904001901.16771-1-vfedorenko@novek.ru>
Date: Sat, 4 Sep 2021 03:18:59 +0300
From: Vadim Fedorenko <vfedorenko@...ek.ru>
To: Martin KaFai Lau <kafai@...com>,
Daniel Borkmann <daniel@...earbox.net>
Cc: Vadim Fedorenko <vfedorenko@...ek.ru>,
Alexei Starovoitov <ast@...nel.org>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
John Fastabend <john.fastabend@...il.com>,
Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org,
bpf@...r.kernel.org
Subject: [PATCH bpf-next v2 0/2] add hwtstamp to __sk_buff
This patch set adds hardware timestamps to __sk_buff. The first patch
implements feature, the second one adds a selftest.
v1 -> v2:
* Fixed bpf_skb_is_valid_access() to provide correct access to field
* Added explicit test to deny access to padding area
* Added verifier selftest to check for denied access to padding area
Vadim Fedorenko (2):
bpf: add hardware timestamp field to __sk_buff
selftests/bpf: test new __sk_buff field hwtstamp
include/uapi/linux/bpf.h | 2 +
lib/test_bpf.c | 1 +
net/bpf/test_run.c | 8 +++
net/core/filter.c | 21 +++++++
tools/include/uapi/linux/bpf.h | 2 +
.../selftests/bpf/prog_tests/skb_ctx.c | 1 +
.../selftests/bpf/progs/test_skb_ctx.c | 2 +
.../testing/selftests/bpf/verifier/ctx_skb.c | 60 +++++++++++++++++++
8 files changed, 97 insertions(+)
--
2.18.4
Powered by blists - more mailing lists