25d11a86c5
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>
21 lines
337 B
C
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;
|
|
}
|