]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Allow returning errors from mlxsw_sp_nexthop_group_refresh()
authorIdo Schimmel <idosch@nvidia.com>
Tue, 17 Nov 2020 17:47:04 +0000 (19:47 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Nov 2020 19:51:18 +0000 (11:51 -0800)
commitc62ad09a168b3ae364edc2ec225b271453470cbb
treea06d128e53ee9295263c3e46a400faee339a8f75
parentfc3fc20f259841f8021e5b30bea0fae04d7c9808
mlxsw: spectrum_router: Allow returning errors from mlxsw_sp_nexthop_group_refresh()

The function is responsible for allocating the adjacency entries used by
the nexthop group and populating them with the adjacency information
such as egress RIF and MAC address.

Allow the function to return an error when it encounters a problem and
have the relevant call sites check it.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c