linux/net/devlink
Jakub Kicinski 07f3af6608 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>
2023-01-05 22:13:39 -08:00
..
core.c devlink: restart dump based on devlink instance ids (simple) 2023-01-05 22:13:39 -08:00
devl_internal.h devlink: add by-instance dump infra 2023-01-05 22:13:39 -08:00
leftover.c devlink: add by-instance dump infra 2023-01-05 22:13:39 -08:00
Makefile devlink: split out netlink code 2023-01-05 22:13:39 -08:00
netlink.c devlink: add by-instance dump infra 2023-01-05 22:13:39 -08:00