Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: devlink: extend info_get() version put to indicate a flash compo…
…nent Limit the acceptance of component name passed to cmd_flash_update() to match one of the versions returned by info_get(), marked by version type. This makes things clearer and enforces 1:1 mapping between exposed version and accepted 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_put_ext() that allows to specify a version type that indicates when particular version name represents a flash component. Use this indication during cmd_flash_update() execution by calling info_get() with different "req" context. That causes info_get() to lookup the component name instead of filling-up the netlink message. Fix the only component user which is netdevsim. It uses component named "fw.mgmt" in selftests. Remove now outdated "UPDATE_COMPONENT" flag. Signed-off-by: Jiri Pirko <jiri@nvidia.com>
- Loading branch information
Jiri Pirko
committed
Aug 19, 2022
1 parent
13ee34f
commit d8cf683
Showing
3 changed files
with
129 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters