Przemek Kitszel
e3302f9a50
devlink: remove unused devlink_resource_register()
...
Remove unused devlink_resource_register(); all the drivers use
devl_resource_register() variant instead.
Reviewed-by: Wojciech Drewek <[email protected] >
Reviewed-by: Jiri Pirko <[email protected] >
Reviewed-by: Joe Damato <[email protected] >
Signed-off-by: Przemek Kitszel <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
2024-10-29 16:52:57 -07:00
Przemek Kitszel
2a0df10434
devlink: remove unused devlink_resource_occ_get_register() and _unregister()
...
Remove not used devlink_resource_occ_get_register() and
devlink_resource_occ_get_unregister() functions; current devlink resource
users are fine with devl_ variants of the two.
Reviewed-by: Wojciech Drewek <[email protected] >
Reviewed-by: Jiri Pirko <[email protected] >
Reviewed-by: Joe Damato <[email protected] >
Signed-off-by: Przemek Kitszel <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
2024-10-29 16:52:57 -07:00
Przemek Kitszel
e0b140c44f
devlink: devl_resource_register(): differentiate error codes
...
Differentiate error codes of devl_resource_register().
Replace one of -EINVAL exit paths by -EEXIST. This should aid developers
introducing new resources and registering them in the wrong order.
Reviewed-by: Wojciech Drewek <[email protected] >
Reviewed-by: Jiri Pirko <[email protected] >
Reviewed-by: Joe Damato <[email protected] >
Signed-off-by: Przemek Kitszel <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
2024-10-29 16:52:57 -07:00
Przemek Kitszel
a788acf154
devlink: use devlink_nl_put_u64() helper
...
Use devlink_nl_put_u64() shortcut added by prev commit on all devlink/.
Reviewed-by: Wojciech Drewek <[email protected] >
Reviewed-by: Jiri Pirko <[email protected] >
Reviewed-by: Joe Damato <[email protected] >
Signed-off-by: Przemek Kitszel <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
2024-10-29 16:52:56 -07:00
Jiri Pirko
53590934ba
devlink: rename netlink callback to be aligned with the generated ones
...
All remaining doit and dumpit netlink callback functions are going to be
used by generated split ops. They expect certain name format. Rename the
callback to be aligned with generated names.
Signed-off-by: Jiri Pirko <[email protected] >
Reviewed-by: Jacob Keller <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
2023-10-23 16:12:47 -07:00
Jiri Pirko
a9f960074e
devlink: push resource related code into separate file
...
Cut out another chunk from leftover.c and put resource related code
into a separate file.
Signed-off-by: Jiri Pirko <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
2023-08-28 08:02:22 -07:00