From 4ba2b326284765e942044db13a7f0dae702bec93 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 09:10:00 +0200 Subject: Adding upstream version 1.3.1. Signed-off-by: Daniel Baumann --- lib/testing/xdp_pass.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/testing/xdp_pass.c (limited to 'lib/testing/xdp_pass.c') diff --git a/lib/testing/xdp_pass.c b/lib/testing/xdp_pass.c new file mode 100644 index 0000000..37cbc60 --- /dev/null +++ b/lib/testing/xdp_pass.c @@ -0,0 +1,16 @@ +#include +#include +#include + +struct { + __uint(priority, 10); + __uint(XDP_PASS, 1); +} XDP_RUN_CONFIG(xdp_pass); + +SEC("xdp") +int xdp_pass(struct xdp_md *ctx) +{ + return XDP_PASS; +} + +char _license[] SEC("license") = "GPL"; -- cgit v1.2.3