]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mlxsw: spectrum_fid: Make mlxsw_sp_fid_ops.setup return an int
authorPetr Machata <petrm@nvidia.com>
Tue, 28 Nov 2023 15:50:37 +0000 (16:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Nov 2023 04:03:23 +0000 (20:03 -0800)
commit17eda112b0d8e282e310f720aed2acda4fbd3317
treeac8022368c059a811f92eb4470a57509233abd2b
parent82ff7a196d76a04cf437ac0469ac9e9b84110b13
mlxsw: spectrum_fid: Make mlxsw_sp_fid_ops.setup return an int

This operation will be fallible for rFIDs in CFF mode, which will be
introduced in follow-up patches. Have it return an int, and handle
the failures in the caller.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/75f1b85c0cb86bea5501fcc8657042f221a78b32.1701183892.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c