# \[RFC net-next v2 0/2\] devlink: whole-device, resource .occ\_set()

- From: Przemek Kitszel \<przemyslaw.kitszel@intel.com\>
- Date: 2025-02-19 17:46:12 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/02/2934161
- Thread: https://ratatoskr.run/netdev/2025/02/2934161/t.md

```text

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

```
