aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/reuseport_array.c
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2020-08-27 22:19:22 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2020-08-28 14:33:24 +0200
commitb0c9eb37817943840a1a82dbc998c491609a0afd (patch)
treeba3ab56b0661dd01c0de5432e344c975ff4495ff /kernel/bpf/reuseport_array.c
parenttools, bpf/build: Cleanup feature files on make clean (diff)
downloadlinux-dev-b0c9eb37817943840a1a82dbc998c491609a0afd.tar.xz
linux-dev-b0c9eb37817943840a1a82dbc998c491609a0afd.zip
bpf: Make bpf_link_info.iter similar to bpf_iter_link_info
bpf_link_info.iter is used by link_query to return bpf_iter_link_info to user space. Fields may be different, e.g., map_fd vs. map_id, so we cannot reuse the exact structure. But make them similar, e.g., struct bpf_link_info { /* common fields */ union { struct { ... } raw_tracepoint; struct { ... } tracing; ... struct { /* common fields for iter */ union { struct { __u32 map_id; } map; /* other structs for other targets */ }; }; }; }; so the structure is extensible the same way as bpf_iter_link_info. Fixes: 6b0a249a301e ("bpf: Implement link_query for bpf iterators") Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200828051922.758950-1-yhs@fb.com
Diffstat (limited to 'kernel/bpf/reuseport_array.c')
0 files changed, 0 insertions, 0 deletions