mbox series

[RFC,net-next,v2,0/2] devlink: whole-device, resource .occ_set()

Message ID 20250219164410.35665-1-przemyslaw.kitszel@intel.com (mailing list archive)
Headers show
Series devlink: whole-device, resource .occ_set() | expand

Message

Przemek Kitszel Feb. 19, 2025, 4:32 p.m. UTC
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(-)