OSDN Git Service

samples: bpf: Convert xdp_redirect_cpu_kern.o to XDP samples helper
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 21 Aug 2021 00:20:05 +0000 (05:50 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 24 Aug 2021 21:48:42 +0000 (14:48 -0700)
commit79ccf4529ee67510fdad8ecdfcf37528d353a36c
tree5dbdf81efb89cfcb98c60c2deef168b5abcdc86d
parentb926c55d856cbe2593c44e783b31e2cdb0ef6371
samples: bpf: Convert xdp_redirect_cpu_kern.o to XDP samples helper

Similar to xdp_monitor_kern, a lot of these BPF programs have been
reimplemented properly consolidating missing features from other XDP
samples. Hence, drop the unneeded code and rename to .bpf.c suffix.

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-18-memxor@gmail.com
samples/bpf/Makefile
samples/bpf/xdp_redirect_cpu.bpf.c [moved from samples/bpf/xdp_redirect_cpu_kern.c with 52% similarity]