diff --git a/src/xdp/prog.c b/src/xdp/prog.c index 6a8e842..4ca1b4e 100644 --- a/src/xdp/prog.c +++ b/src/xdp/prog.c @@ -15,6 +15,12 @@ #include +struct +{ + __uint(priority, 10); + __uint(XDP_PASS, 1); +} XDP_RUN_CONFIG(xdp_prog_main); + SEC("xdp_prog") int xdp_prog_main(struct xdp_md *ctx) { diff --git a/src/xdp/utils/maps.h b/src/xdp/utils/maps.h index 75aac07..1455ddf 100644 --- a/src/xdp/utils/maps.h +++ b/src/xdp/utils/maps.h @@ -5,12 +5,6 @@ #include -struct -{ - __uint(priority, 10); - __uint(XDP_PASS, 1); -} XDP_RUN_CONFIG(xdp_prog_main); - struct { __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);