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

Also update it to use consistent SEC("xdp") and SEC("xdp_devmap")
naming, and use global variable instead of BPF map for copying the mac
address.

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