bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] tools: bpftool: support creating outer maps
@ 2020-09-07 16:36 Quentin Monnet
  2020-09-07 16:36 ` [PATCH bpf-next v2 1/2] tools: bpftool: clean up function to dump map entry Quentin Monnet
  2020-09-07 16:36 ` [PATCH bpf-next v2 2/2] tools: bpftool: add "inner_map" to "bpftool map create" outer maps Quentin Monnet
  0 siblings, 2 replies; 10+ messages in thread
From: Quentin Monnet @ 2020-09-07 16:36 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann
  Cc: bpf, netdev, Andrii Nakryiko, Quentin Monnet

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.

A first patch also cleans up the function related to dumping map elements.

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 (2):
  tools: bpftool: clean up function to dump map entry
  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(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-09-09 19:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-07 16:36 [PATCH bpf-next v2 0/2] tools: bpftool: support creating outer maps Quentin Monnet
2020-09-07 16:36 ` [PATCH bpf-next v2 1/2] tools: bpftool: clean up function to dump map entry Quentin Monnet
2020-09-09  3:25   ` Andrii Nakryiko
2020-09-09  8:19     ` Quentin Monnet
2020-09-09 16:30       ` Andrii Nakryiko
2020-09-09 16:38         ` Quentin Monnet
2020-09-09 16:46           ` Andrii Nakryiko
2020-09-09 16:59             ` Quentin Monnet
2020-09-09 19:25               ` Andrii Nakryiko
2020-09-07 16:36 ` [PATCH bpf-next v2 2/2] tools: bpftool: add "inner_map" to "bpftool map create" outer maps Quentin Monnet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).