diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-01-18 16:21:12 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-19 19:08:38 -0800 |
commit | 2557396808d916189ec5812f64e2b08bfb905807 (patch) | |
tree | 66e899e471d838d7c01c80c6cb53f70d3a915568 /net/devlink/devl_internal.h | |
parent | e994a75fb7f9dcdb53ff5c33859531141de30899 (diff) | |
download | linux-stable-2557396808d916189ec5812f64e2b08bfb905807.tar.gz linux-stable-2557396808d916189ec5812f64e2b08bfb905807.tar.bz2 linux-stable-2557396808d916189ec5812f64e2b08bfb905807.zip |
devlink: convert linecards dump to devlink_nl_instance_iter_dump()
Benefit from recently introduced instance iteration and convert
linecards .dumpit generic netlink callback to use it.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/devlink/devl_internal.h')
-rw-r--r-- | net/devlink/devl_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/devlink/devl_internal.h b/net/devlink/devl_internal.h index bdb83014b4b5..d8f8e4bff5b4 100644 --- a/net/devlink/devl_internal.h +++ b/net/devlink/devl_internal.h @@ -167,6 +167,7 @@ extern const struct devlink_gen_cmd devl_gen_info; extern const struct devlink_gen_cmd devl_gen_trap; extern const struct devlink_gen_cmd devl_gen_trap_group; extern const struct devlink_gen_cmd devl_gen_trap_policer; +extern const struct devlink_gen_cmd devl_gen_linecard; /* Ports */ int devlink_port_netdevice_event(struct notifier_block *nb, |