]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
devlink: Add port-specific option to resource dump doit
authorOr Har-Toov <ohartoov@nvidia.com>
Tue, 7 Apr 2026 19:41:02 +0000 (22:41 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Apr 2026 02:55:39 +0000 (19:55 -0700)
commit7511ff14f30d264691ec493b09111404aed4aaf4
tree5c4b7f770d711d57dbce38730c10f00858a2cc99
parent810b76394d69f340c0060260f7167639352b7217
devlink: Add port-specific option to resource dump doit

Allow querying devlink resources per-port via the resource-dump doit
handler. When a port-index attribute is provided, only that port's
resources are returned. When no port-index is given, only device-level
resources are returned, preserving backward compatibility.

Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260407194107.148063-8-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/devlink.yaml
net/devlink/netlink_gen.c
net/devlink/netlink_gen.h
net/devlink/resource.c