]> www.infradead.org Git - users/jedix/linux-maple.git/commit
devlink: region: snapshot IDs: consolidate error values
authorPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Wed, 23 Oct 2024 13:09:04 +0000 (15:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 29 Oct 2024 23:52:57 +0000 (16:52 -0700)
commit72429e9e0cfb1bd7480a968d741edf787c134f06
treec939443ead4d5b42884ca2e401756c72a6bd64f8
parente0b140c44f322230c2bb97a7e8ac773419f7e81a
devlink: region: snapshot IDs: consolidate error values

Consolidate error codes for too big message size.

Current code is written to return -EINVAL when tailroom in the skb msg
would be exhausted precisely when it's time to nest, and return -EMSGSIZE
in all other "not enough space" conditions.

Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://patch.msgid.link/20241023131248.27192-5-przemyslaw.kitszel@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/devlink/region.c