]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commite3ddfb45bacdc623eedea7f7bf9e7879257471d6
treea06d128e53ee9295263c3e46a400faee339a8f75
parent2efca2bfba995e67a5372288a4d745fcefc6e8ce
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