[RFC net-next v2 0/2] devlink: whole-device, resource .occ_set()
From: Przemek Kitszel
Date: Wed Feb 19 2025 - 12:46:29 EST
I'm working on ice+iavf changes that utilize the two devlink patches
of this RFC series. The two are related in that I will group them anyway
for my actual submission.
Patch 1: add an option for drivers like ice (devlink instance per PF)
to add a whole-device devlink instance, that wraps them together.
Patch 2: add resource occupation setter and a (better) mode of resource
control for users
Przemek Kitszel (2):
devlink: add whole device devlink instance
devlink: give user option to allocate resources
net/devlink/devl_internal.h | 14 +++---
net/devlink/core.c | 58 ++++++++++++++++++-----
net/devlink/netlink.c | 4 +-
net/devlink/port.c | 4 +-
net/devlink/resource.c | 94 +++++++++++++++++++++++++++++--------
5 files changed, 132 insertions(+), 42 deletions(-)
--
2.46.0