mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-11 00:04:33 +08:00
bd4aed0ee7
At the moment, all kernel bpf objects are listed under BPF_OBJ_FILES. Listing them manually sometimes causing patch conflict when people are adding new testcases simultaneously. It is better to centre all the related source files under a subdir "progs", then auto-generate the object file list. Suggested-by: Alexei Starovoitov <ast@kernel.org> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Jiong Wang <jiong.wang@netronome.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
14 lines
240 B
C
14 lines
240 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#define KBUILD_MODNAME "xdp_dummy"
|
|
#include <linux/bpf.h>
|
|
#include "bpf_helpers.h"
|
|
|
|
SEC("xdp_dummy")
|
|
int xdp_dummy_prog(struct xdp_md *ctx)
|
|
{
|
|
return XDP_PASS;
|
|
}
|
|
|
|
char _license[] SEC("license") = "GPL";
|