Organize more code.

This commit is contained in:
Christian Deacon
2025-02-22 10:06:32 -05:00
parent c7a1822ce5
commit 1b9e805207
2 changed files with 6 additions and 6 deletions

View File

@@ -15,6 +15,12 @@
#include <xdp/utils/maps.h> #include <xdp/utils/maps.h>
struct
{
__uint(priority, 10);
__uint(XDP_PASS, 1);
} XDP_RUN_CONFIG(xdp_prog_main);
SEC("xdp_prog") SEC("xdp_prog")
int xdp_prog_main(struct xdp_md *ctx) int xdp_prog_main(struct xdp_md *ctx)
{ {

View File

@@ -5,12 +5,6 @@
#include <xdp/utils/helpers.h> #include <xdp/utils/helpers.h>
struct
{
__uint(priority, 10);
__uint(XDP_PASS, 1);
} XDP_RUN_CONFIG(xdp_prog_main);
struct struct
{ {
__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);