Skip to content

bpftool: support queue and stack

Stanislav Fomichev netdev 2 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. v2 Latest7 patches 2 repliesApplied
  2. v16 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* removed unneeded jsonw_null from patch #6
* improved bash completions (and moved them into separate patch #7)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7bpftool: make key and value optional in update commandtools/bpf/bpftool/Documentation/bpftool-map.rst tools/bpf/bpftool/map.c+31 -90 replies
2/7bpftool: make key optional in lookup commandtools/bpf/bpftool/Documentation/bpftool-map.rst tools/bpf/bpftool/map.c+5 -90 replies
3/7bpftool: don't print empty key/value for mapstools/bpf/bpftool/map.c+28 -190 replies
4/7bpftool: add peek commandtools/bpf/bpftool/Documentation/bpftool-map.rst tools/bpf/bpftool/map.c+7 -10 replies
5/7bpftool: add push and enqueue commandstools/bpf/bpftool/Documentation/bpftool-map.rst tools/bpf/bpftool/map.c+14 -10 replies
6/7bpftool: add pop and dequeue commandstools/bpf/bpftool/Documentation/bpftool-map.rst tools/bpf/bpftool/map.c+98 -350 replies
7/7bpftool: add bash completion for peek/push/enqueue/pop/dequeuetools/bpf/bpftool/bash-completion/bpftool+73 -180 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJakub Kicinski
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

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

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/7] bpftool: support queue and stack

This patch series add support for queue/stack manipulations.

It goes like this:

#1 and #2 add support for queue/stack in existing 'update' and 'lookup' commands by permitting empty keys.
#3 make sure we don't print empty keys for queue/stack.
#4 adds peek command, it's essentially an alias for 'lookup'. #5 adds push/enqueue commands, an alias to 'update'.
#6 adds pop/dequeue commands that use bpf_map_lookup_and_delete_elem. #7 adds bash completions

v2:
* removed unneeded jsonw_null from patch #6
* improved bash completions (and moved them into separate patch #7)

Stanislav Fomichev (7):
bpftool: make key and value optional in update command
bpftool: make key optional in lookup command
bpftool: don't print empty key/value for maps
bpftool: add peek command
bpftool: add push and enqueue commands
bpftool: add pop and dequeue commands
bpftool: add bash completion for peek/push/enqueue/pop/dequeue

 .../bpf/bpftool/Documentation/bpftool-map.rst |  28 ++-
 tools/bpf/bpftool/bash-completion/bpftool     |  91 +++++--
 tools/bpf/bpftool/map.c                       | 225 ++++++++++++------
 3 files changed, 254 insertions(+), 90 deletions(-)
Signature · 1 line
2.20.1.97.g81188d93c3-goog