diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-01-04 20:05:30 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-05 22:13:39 -0800 |
commit | 07f3af66089e20fe439b219d3c9d3e68d964193f (patch) | |
tree | 4da8ef518b5f8f54ae106536e7c58996f0ba7502 /scripts/bpf_doc.py | |
parent | e4d5015bc11bcc5123ec8805d8c7f1e28a77a8a9 (diff) | |
download | linux-07f3af66089e20fe439b219d3c9d3e68d964193f.tar.gz linux-07f3af66089e20fe439b219d3c9d3e68d964193f.tar.bz2 linux-07f3af66089e20fe439b219d3c9d3e68d964193f.zip |
devlink: add by-instance dump infra
Most dumpit implementations walk the devlink instances.
This requires careful lock taking and reference dropping.
Factor the loop out and provide just a callback to handle
a single instance dump.
Convert one user as an example, other users converted
in the next change.
Slightly inspired by ethtool netlink code.
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions