diff options
Diffstat (limited to 'lib/libxdp/tests/xdp_pass.c')
-rw-r--r-- | lib/libxdp/tests/xdp_pass.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libxdp/tests/xdp_pass.c b/lib/libxdp/tests/xdp_pass.c new file mode 100644 index 0000000..6b61a00 --- /dev/null +++ b/lib/libxdp/tests/xdp_pass.c @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#include <linux/bpf.h> +#include <bpf/bpf_helpers.h> + +SEC("xdp") +int xdp_pass(struct xdp_md *ctx) +{ + return XDP_PASS; +} + +char _license[] SEC("license") = "GPL"; |