Skip to content

netdev: support dumping a single netdev in qstats

Jakub Kicinski linux-kselftest netdev 1 version 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

  1. v1 Latest4 patches 8 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4netdev: support dumping a single netdev in qstatsDocumentation/netlink/specs/netdev.yaml net/core/netdev-genl-gen.c net/core/netdev-genl.c+41 -136 repliesApplied
2/4netlink: move extack writing helpersnet/netlink/af_netlink.c+63 -631 replyApplied
3/4netlink: support all extack types in dumpsnet/netlink/af_netlink.c+10 -51 replyApplied
4/4selftests: drv-net: test dumping qstats per devicetools/testing/selftests/drivers/net/stats.py tools/testing/selftests/net/lib/py/ksft.py+77 -30 repliesApplied

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDavid AhernEric Dumazet
1/4R-b R-b
2/4R-b
3/4R-b
4/4

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

Read the v1 thread

Cover letter [PATCH net-next 0/4] netdev: support dumping a single netdev in qstats

I was writing a test for page pool which depended on qstats, and got tired of having to filter dumps in user space. Add support for dumping stats for a single netdev.

To get there we first need to add full support for extack in dumps (and fix a dump error handling bug in YNL, sent separately to the net tree).

Jakub Kicinski (4):
netdev: support dumping a single netdev in qstats
netlink: move extack writing helpers
netlink: support all extack types in dumps
selftests: drv-net: test dumping qstats per device

 Documentation/netlink/specs/netdev.yaml      |   1 +
 net/core/netdev-genl-gen.c                   |   1 +
 net/core/netdev-genl.c                       |  52 +++++--
 net/netlink/af_netlink.c                     | 135 ++++++++++---------
 tools/testing/selftests/drivers/net/stats.py |  62 ++++++++-
 tools/testing/selftests/net/lib/py/ksft.py   |  18 +++
 6 files changed, 188 insertions(+), 81 deletions(-)
Signature · 1 line
2.44.0