summaryrefslogtreecommitdiffstats
path: root/net/devlink/devl_internal.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2023-01-18 16:21:12 +0100
committerJakub Kicinski <kuba@kernel.org>2023-01-19 19:08:38 -0800
commit2557396808d916189ec5812f64e2b08bfb905807 (patch)
tree66e899e471d838d7c01c80c6cb53f70d3a915568 /net/devlink/devl_internal.h
parente994a75fb7f9dcdb53ff5c33859531141de30899 (diff)
downloadlinux-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.h1
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,