]> 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)
commitb725571d1f5feb32682e01fe4b74e979c58dca17
treea06d128e53ee9295263c3e46a400faee339a8f75
parenta43eed88e876b30a25fb7c19d7ac4bcbff3f729d
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