Organize more code.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user