xdp_dummy.bpf.c 238 B

12345678910111213
  1. // SPDX-License-Identifier: GPL-2.0
  2. #define KBUILD_MODNAME "xdp_dummy"
  3. #include <linux/bpf.h>
  4. #include <bpf/bpf_helpers.h>
  5. SEC("xdp")
  6. int xdp_dummy_prog(struct xdp_md *ctx)
  7. {
  8. return XDP_PASS;
  9. }
  10. char _license[] SEC("license") = "GPL";