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

We moved swap_src_dst_mac to xdp_sample.bpf.h to be shared with other
potential users, so drop it while moving code to the new file.
Also, consistently use SEC("xdp") naming instead.

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-16-memxor@gmail.com
samples/bpf/Makefile
samples/bpf/xdp_redirect.bpf.c [new file with mode: 0644]
samples/bpf/xdp_redirect_kern.c [deleted file]