]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
devlink: Refactor resource functions to be generic
authorOr Har-Toov <ohartoov@nvidia.com>
Tue, 7 Apr 2026 19:40:56 +0000 (22:40 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Apr 2026 02:55:38 +0000 (19:55 -0700)
commit7be3163c49b24bf923d32f333096963159e03a14
tree6f8f20a077f8c3e15099c0ec94664824a9f5095a
parent5ae4ba98d72509a4da592751be4d6b4dbfa8cac8
devlink: Refactor resource functions to be generic

Currently the resource functions take devlink pointer as parameter
and take the resource list from there.
Allow resource functions to work with other resource lists that will
be added in next patches and not only with the devlink's resource list.

Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Reviewed-by: Shay Drori <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260407194107.148063-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/devlink.h
net/devlink/resource.c