]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1317aa50cc277c756d9cc45be1c5f08154e1579
tree10adeb7667e008707a37845301dbfd538e93fe78
parentbe9a12fade6a623823f2768c0f0c78ef2103fd3f
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]