The iproute2 bpf headers define four more fields for map definitions than libbpf does. This adds those fields to the libbpf headers, in preparation for porting the bpf loading functionality of iproute2 to be based on libbpf. Subsequent commits add the functionality needed in libbpf to be able to port over iproute2. Signed-off-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> --- tools/lib/bpf/libbpf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h index e8f70977d137..5facba6ea1e1 100644 --- a/tools/lib/bpf/libbpf.h +++ b/tools/lib/bpf/libbpf.h @@ -289,6 +289,10 @@ struct bpf_map_def { unsigned int value_size; unsigned int max_entries; unsigned int map_flags; + unsigned int map_id; + unsigned int pinning; + unsigned int inner_id; + unsigned int inner_idx; }; /* -- 2.22.1