net: devlink: extend info_get() version put to indicate a flash component
authorJiri Pirko <jiri@nvidia.com>
Wed, 24 Aug 2022 12:20:09 +0000 (14:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Aug 2022 20:22:52 +0000 (13:22 -0700)
commitbb67012331f7f07ff325877fbbb430bc515d371e
tree18e717d4be27604a81d7ef3b5cde162153869d95
parent88e500affe72fb704c4f201974b5199ca6f51e6c
net: devlink: extend info_get() version put to indicate a flash component

Whenever the driver is called by his info_get() op, it may put multiple
version names and values to the netlink message. Extend by additional
helper devlink_info_version_running/stored_put_ext() that allows to
specify a version type that indicates when particular version name
represents a flash component.

This is going to be used in follow-up patch calling info_get() during
flash update command checking if version with this the version type
exists.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/devlink.h
net/core/devlink.c