1 // SPDX-License-Identifier: GPL-2.0
4 #include <bpf/bpf_helpers.h>
9 __uint(type, BPF_MAP_TYPE_CPUMAP);
10 __uint(key_size, sizeof(__u32));
11 __uint(value_size, sizeof(struct bpf_cpumap_val));
12 __uint(max_entries, 4);
13 } cpu_map SEC(".maps");
16 int xdp_dummy_cm(struct xdp_md *ctx)
21 SEC("xdp.frags/cpumap")
22 int xdp_dummy_cm_frags(struct xdp_md *ctx)
27 char _license[] SEC("license") = "GPL";