From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/spdk/dpdk/test/bpf/dummy.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/spdk/dpdk/test/bpf/dummy.c (limited to 'src/spdk/dpdk/test/bpf/dummy.c') diff --git a/src/spdk/dpdk/test/bpf/dummy.c b/src/spdk/dpdk/test/bpf/dummy.c new file mode 100644 index 00000000..5851469e --- /dev/null +++ b/src/spdk/dpdk/test/bpf/dummy.c @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018 Intel Corporation + */ + +/* + * eBPF program sample. + * does nothing always return success. + * used to measure BPF infrastructure overhead. + * To compile: + * clang -O2 -target bpf -c dummy.c + */ + +#include +#include + +uint64_t +entry(void *arg) +{ + return 1; +} -- cgit v1.2.3