numam-dpdk/examples/bpf/dummy.c
Bruce Richardson 25d11a86c5 examples/bpf: move from test directory
The bpf folder didn't actual contain a test application, but instead
basic examples of BPF code for use with testpmd. Therefore we can
move it to the `examples` folder. Being different, it also needs
a README with it, explaining what it is and how to use it. References
to the code from the testpmd docs are suitably updated.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2019-02-26 15:29:07 +01:00

21 lines
337 B
C

/* 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 <stdint.h>
#include <stddef.h>
uint64_t
entry(void *arg)
{
return 1;
}