1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 2 3 #define KBUILD_MODNAME "xdp_dummy" 3 #define KBUILD_MODNAME "xdp_dummy" 4 #include <linux/bpf.h> 4 #include <linux/bpf.h> 5 #include <bpf/bpf_helpers.h> 5 #include <bpf/bpf_helpers.h> 6 6 7 SEC("xdp") 7 SEC("xdp") 8 int xdp_dummy_prog(struct xdp_md *ctx) 8 int xdp_dummy_prog(struct xdp_md *ctx) 9 { 9 { 10 return XDP_PASS; 10 return XDP_PASS; 11 } 11 } 12 12 13 char _license[] SEC("license") = "GPL"; 13 char _license[] SEC("license") = "GPL"; 14 14
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.