]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75f71c3a5d8a5971e0c43b9ddb6383a1c793b83d
tree18e717d4be27604a81d7ef3b5cde162153869d95
parent9cb177474f556c931778d0a8808ab10548beeb84
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