summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2022-08-24 15:20:11 +0300
committerJakub Kicinski <kuba@kernel.org>2022-08-25 23:22:53 +0300
commitf94b606325c194adadaee2265b4db990802c4850 (patch)
treeb8c0ec9e33bbb6522be4209cbd0d4fcb5526c968 /tools/perf/scripts/python/export-to-sqlite.py
parent0c1989754f76b52bd30581ff543890cab8c75a9d (diff)
downloadlinux-f94b606325c194adadaee2265b4db990802c4850.tar.xz
net: devlink: limit flash component name to match version returned by info_get()
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. Check VERSION_TYPE_COMPONENT version type 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. Remove "UPDATE_COMPONENT" flag which becomes used. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions