]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Add pr_out_dev() helper function
authorMoshe Shemesh <moshe@mellanox.com>
Mon, 7 Dec 2020 05:35:21 +0000 (07:35 +0200)
committerDavid Ahern <dsahern@gmail.com>
Wed, 9 Dec 2020 02:42:09 +0000 (02:42 +0000)
commit0c0023ad7147c4356a1d8030961a2c1a183e2aa2
tree47858b08105ae0cc6a6dd1d86bdcb58dcbb4a460
parentf28c910274fdec783f73732f38c8a15b1a6aaa0a
devlink: Add pr_out_dev() helper function

Add pr_out_dev() helper function and use it both by cmd_dev_show_cb()
and by cmd_mon_show_cb().

Dev stats will be added on the next patch to dev context, so
cmd_mon_show_cb() should print the whole dev context and not just dev
handle.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
devlink/devlink.c