Skip to content

tools: bpftool: support creating outer maps

Quentin Monnet bpf netdev 4 versions – Applied

Status from this message: Applied. Thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/20 of 2 patches 1 replyApplied
  2. v3 posting 1/23 patches 4 repliesSuperseded
  3. v22 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches3 repliesSuperseded

Changes in v3 from the cover letter

- Add a check on errno being ENOENT before skipping outer map entry in dumps.

Patches in v3 posting 2/2 Applied

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchAndrii Nakryiko
SeriesA-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH bpf-next v3 0/2] tools: bpftool: support creating outer maps

This series makes bpftool able to create outer maps (maps of types array-of-maps and hash-of-maps). This is done by passing the relevant inner_map_fd, which we do through a new command-line keyword.

The first two patches also clean up the function related to dumping map elements.

v3:
- Add a check on errno being ENOENT before skipping outer map entry in dumps.

v2:
- v1 was wrongly expected to allow bpftool to dump the content of outer maps (already supported). v2 skipped that patch, and instead replaced it with a clean-up for the dump_map_elem() function.

Quentin Monnet (3):
tools: bpftool: clean up function to dump map entry
tools: bpftool: keep errors for map-of-map dumps if distinct from
ENOENT
tools: bpftool: add "inner_map" to "bpftool map create" outer maps

 .../bpf/bpftool/Documentation/bpftool-map.rst |  10 +-
 tools/bpf/bpftool/bash-completion/bpftool     |  22 ++-
 tools/bpf/bpftool/map.c                       | 149 ++++++++++--------
 3 files changed, 114 insertions(+), 67 deletions(-)
Signature · 1 line
2.25.1