aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorParav Pandit <[email protected]>2021-08-10 16:24:19 +0300
committerDavid S. Miller <[email protected]>2021-08-11 14:34:21 +0100
commitb40c51efefbc4a3ddec682f118adefea1ccf70dc (patch)
tree82858b096959a9a4242ea15247c21d6e720ed086 /tools/perf/scripts/python/bin
parent699784f7b72861206e49679f485befbc48b05e53 (diff)
devlink: Add API to register and unregister single parameter
Currently device configuration parameters can be registered as an array. Due to this a constant array must be registered. A single driver supporting multiple devices each with different device capabilities end up registering all parameters even if it doesn't support it. One possible workaround a driver can do is, it registers multiple single entry arrays to overcome such limitation. Better is to provide a API that enables driver to register/unregister a single parameter. This also further helps in two ways. (1) to reduce the memory of devlink_param_entry by avoiding in registering parameters which are not supported by the device. (2) avoid generating multiple parameter add, delete, publish, unpublish, init value notifications for such unsupported parameters Signed-off-by: Parav Pandit <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions