diff options
| author | Jiri Pirko <jiri@nvidia.com> | 2026-03-12 13:03:58 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-14 23:08:47 +0300 |
| commit | d85a8af57da871964c60eb5b9ab121a6c31e3bd3 (patch) | |
| tree | e7670b6f6412eec63f4036deac79491161af3db5 /include | |
| parent | e2e3666fd3609bfc03c42bd8544be8cbd080d24d (diff) | |
| download | linux-d85a8af57da871964c60eb5b9ab121a6c31e3bd3.tar.xz | |
devlink: allow to use devlink index as a command handle
Currently devlink instances are addressed bus_name/dev_name tuple.
Allow the newly introduced DEVLINK_ATTR_INDEX to be used as
an alternative handle for all devlink commands.
When DEVLINK_ATTR_INDEX is present in the request, use it for a direct
xarray lookup instead of iterating over all instances comparing
bus_name/dev_name strings.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Link: https://patch.msgid.link/20260312100407.551173-5-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
