summaryrefslogtreecommitdiffstats
path: root/lib/testing/xdp_pass.c
blob: 37cbc60fbe54ebcfce16ea97be520fa89900499d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
#include <xdp/xdp_helpers.h>

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";