]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: Convert xdp_monitor_kern.o to XDP samples helper
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 21 Aug 2021 00:20:01 +0000 (05:50 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 24 Aug 2021 21:48:41 +0000 (14:48 -0700)
commitc07b056fa121433bf510fa11a7590e154262244d
treebc6df1aed393fcea88c6ead58372b611799384e5
parent0122aef2e67760e605a529e79426e9fb434fb822
samples: bpf: Convert xdp_monitor_kern.o to XDP samples helper

We already moved all the functionality it provided in XDP samples helper
userspace and kernel BPF object, so just delete the unneeded code.

We also add generation of BPF skeleton and compilation using clang
-target bpf for files ending with .bpf.c suffix (to denote that they use
vmlinux.h).

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210821002010.845777-14-memxor@gmail.com
samples/bpf/Makefile
samples/bpf/xdp_monitor.bpf.c [new file with mode: 0644]
samples/bpf/xdp_monitor_kern.c [deleted file]