[PATCH net-next v2 0/7] devlink: minor cleanup

Przemek Kitszel posted 7 patches 1 month ago
include/net/devlink.h       |  13 -----
net/devlink/devl_internal.h |   5 ++
net/devlink/dev.c           |  12 ++---
net/devlink/dpipe.c         |  18 +++----
net/devlink/health.c        |  25 ++++-----
net/devlink/rate.c          |   8 +--
net/devlink/region.c        |  15 +++---
net/devlink/resource.c      | 101 +++++-------------------------------
net/devlink/trap.c          |  34 +++++-------
net/dsa/devlink.c           |  23 +++++---
10 files changed, 83 insertions(+), 171 deletions(-)
[PATCH net-next v2 0/7] devlink: minor cleanup
Posted by Przemek Kitszel 1 month ago
(Patch 1, 2) Add one helper shortcut to put u64 values into skb.
(Patch 3, 4) Minor cleanup for error codes.
(Patch 5, 6, 7) Remove some devlink_resource_*() usage and functions
		itself via replacing devlink_* variants by devl_* ones.

v2: fix metadata (cc list, target tree) - Jiri; rebase; tags collected

v1:
https://lore.kernel.org/netdev/20241018102009.10124-1-przemyslaw.kitszel@intel.com/

Przemek Kitszel (7):
  devlink: introduce devlink_nl_put_u64()
  devlink: use devlink_nl_put_u64() helper
  devlink: devl_resource_register(): differentiate error codes
  devlink: region: snapshot IDs: consolidate error values
  net: dsa: replace devlink resource registration calls by devl_
    variants
  devlink: remove unused devlink_resource_occ_get_register() and
    _unregister()
  devlink: remove unused devlink_resource_register()

 include/net/devlink.h       |  13 -----
 net/devlink/devl_internal.h |   5 ++
 net/devlink/dev.c           |  12 ++---
 net/devlink/dpipe.c         |  18 +++----
 net/devlink/health.c        |  25 ++++-----
 net/devlink/rate.c          |   8 +--
 net/devlink/region.c        |  15 +++---
 net/devlink/resource.c      | 101 +++++-------------------------------
 net/devlink/trap.c          |  34 +++++-------
 net/dsa/devlink.c           |  23 +++++---
 10 files changed, 83 insertions(+), 171 deletions(-)


base-commit: d811ac148f0afd2f3f7e1cd7f54de8da973ec5e3
-- 
2.46.0