mlxsw: spectrum_router: Have mlxsw_sp_nexthop_counter_enable() return int
authorPetr Machata <petrm@nvidia.com>
Fri, 8 Mar 2024 12:59:48 +0000 (13:59 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Mar 2024 21:14:07 +0000 (14:14 -0700)
commit8acb480e43c81bc72b528677084428cf2dc7a12c
treebea32faa447f236695c7c71965ecb9a0d82c7ca3
parent64f962c65fe3a35ccd92557b6e3a45f327ad602a
mlxsw: spectrum_router: Have mlxsw_sp_nexthop_counter_enable() return int

In order to be able to diagnose failures in counter allocation, have the
function mlxsw_sp_nexthop_counter_enable() return an error code.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/e0bb5c0cc6234ade2ade1e92abac991359c3f446.1709901020.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h