Skip to content

tools: ynl: turn the page-pool sample into a real tool

Jakub Kicinski netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesApplied 4/4
  2. v15 patches 4 repliesSuperseded 1 of 5 applied

Changes in v2 from the cover letter

- patch 1 was applied already
- [patch 1 (was 2)] use kernel version
- [patch 2 (was 3)] Makefile cleanup
v1: https://lore.kernel.org/[email protected]

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4tools: ynltool: create skeleton for the C commandtools/net/ynl/Makefile tools/net/ynl/ynltool/.gitignore tools/net/ynl/ynltool/Makefile +4 more+720 -12 repliesApplied
2/4tools: ynltool: add page-pool statstools/net/ynl/samples/page-pool.c tools/net/ynl/ynltool/Makefile tools/net/ynl/ynltool/main.c +2 more+473 -1540 repliesApplied
3/4tools: ynltool: add qstats supporttools/net/ynl/ynltool/main.c tools/net/ynl/ynltool/main.h tools/net/ynl/ynltool/qstats.c+333 -10 repliesApplied
4/4tools: ynltool: add traffic distribution balancetools/net/ynl/ynltool/Makefile tools/net/ynl/ynltool/qstats.c+293 -20 repliesApplied

Reviews trailers per patch

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

PatchStanislav Fomichev
SeriesA-b
1/4
2/4
3/4
4/4

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 net-next v2 0/4] tools: ynl: turn the page-pool sample into a real tool

The page-pool YNL sample is quite useful. It's helps calculate recycling rate and memory consumption. Since we still haven't figured out a way to integrate with iproute2 (not for the lack of thinking how to solve it) - create a ynltool command in ynl.

Add page-pool and qstats support.

Most commands can use the Python YNL CLI directly but low level stats often need aggregation or some math on top to be useful. Specifically in this patch set:
- page pool stats are aggregated and recycling rate computed
- per-queue stats are used to compute traffic balance across queues

v2:
- patch 1 was applied already
- [patch 1 (was 2)] use kernel version
- [patch 2 (was 3)] Makefile cleanup
v1: https://lore.kernel.org/[email protected]

Jakub Kicinski (4):
tools: ynltool: create skeleton for the C command
tools: ynltool: add page-pool stats
tools: ynltool: add qstats support
tools: ynltool: add traffic distribution balance

 tools/net/ynl/Makefile              |   3 +-
 tools/net/ynl/ynltool/Makefile      |  55 +++
 tools/net/ynl/ynltool/json_writer.h |  75 ++++
 tools/net/ynl/ynltool/main.h        |  66 +++
 tools/net/ynl/samples/page-pool.c   | 149 -------
 tools/net/ynl/ynltool/json_writer.c | 288 +++++++++++++
 tools/net/ynl/ynltool/main.c        | 242 +++++++++++
 tools/net/ynl/ynltool/page-pool.c   | 461 +++++++++++++++++++++
 tools/net/ynl/ynltool/qstats.c      | 621 ++++++++++++++++++++++++++++
 tools/net/ynl/ynltool/.gitignore    |   1 +
 10 files changed, 1811 insertions(+), 150 deletions(-)
 create mode 100644 tools/net/ynl/ynltool/Makefile
 create mode 100644 tools/net/ynl/ynltool/json_writer.h
 create mode 100644 tools/net/ynl/ynltool/main.h
 delete mode 100644 tools/net/ynl/samples/page-pool.c
 create mode 100644 tools/net/ynl/ynltool/json_writer.c
 create mode 100644 tools/net/ynl/ynltool/main.c
 create mode 100644 tools/net/ynl/ynltool/page-pool.c
 create mode 100644 tools/net/ynl/ynltool/qstats.c
 create mode 100644 tools/net/ynl/ynltool/.gitignore
Signature · 1 line
2.51.1