]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
devlink: Add port-level resource registration infrastructure
authorOr Har-Toov <ohartoov@nvidia.com>
Tue, 7 Apr 2026 19:40:57 +0000 (22:40 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Apr 2026 02:55:38 +0000 (19:55 -0700)
commit6f38acfed5edb398201d9ff127919745cbb331a1
treedcaae4a151ef1d177c2352f1cf59b664c66a32a3
parent7be3163c49b24bf923d32f333096963159e03a14
devlink: Add port-level resource registration infrastructure

The current devlink resource infrastructure supports only device-level
resources. Some hardware resources are associated with specific ports
rather than the entire device, and today we have no way to show resource
per-port.

Add support for registering resources at the port level.

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-3-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/devlink.h
net/devlink/port.c
net/devlink/resource.c