summaryrefslogtreecommitdiff
path: root/samples/bpf/sockex3_kern.c
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2023-01-15 10:16:09 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-01-16 00:32:45 +0300
commita1f93c8fb0a836b6c891e51729f6cb98a1da47ba (patch)
treea37d83ff9e419de041007e34eb30ce24fc86a6e5 /samples/bpf/sockex3_kern.c
parent58e975d014e1e31bd1586be7d2be6d61bd3e3ada (diff)
downloadlinux-a1f93c8fb0a836b6c891e51729f6cb98a1da47ba.tar.xz
samples/bpf: replace legacy map with the BTF-defined map
With libbpf 1.0 release, support for legacy BPF map declaration syntax had been dropped. If you run a program using legacy BPF in the latest libbpf, the following error will be output. libbpf: map 'lwt_len_hist_map' (legacy): legacy map definitions are deprecated, use BTF-defined maps instead libbpf: Use of BPF_ANNOTATE_KV_PAIR is deprecated, use BTF-defined maps in .maps section instead This commit replaces legacy map with the BTF-defined map. Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Link: https://lore.kernel.org/r/20230115071613.125791-7-danieltimlee@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/sockex3_kern.c')
0 files changed, 0 insertions, 0 deletions