devlink: health: combine loops in dump
authorJakub Kicinski <kuba@kernel.org>
Thu, 5 Jan 2023 04:05:25 +0000 (20:05 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Jan 2023 06:13:39 +0000 (22:13 -0800)
commita0e13dfdc391dfb2a9b165e2475fb1796c9be98d
treece367b7b5eb9447f59e80b612303949418785a0e
parent8861c0933c78e3631fe752feadc0d2a6e5eab1e1
devlink: health: combine loops in dump

Walk devlink instances only once. Dump the instance reporters
and port reporters before moving to the next instance.
User space should not depend on ordering of messages.

This will make improving stability of the walk easier.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/devlink/leftover.c