mlxsw: spectrum_router: Encapsulate nexthop update in a function
authorIdo Schimmel <idosch@nvidia.com>
Mon, 22 Mar 2021 15:58:50 +0000 (17:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2021 20:45:46 +0000 (13:45 -0700)
commit29017c643476daf57495c2ccd1a5fdc8dc5186ea
tree99fb07b84a7284e207db54542c73a10f515b68dc
parent424603ccdd5eb00725f9080d7e8c018039816d17
mlxsw: spectrum_router: Encapsulate nexthop update in a function

Encapsulate this functionality in a separate function, so that it could
be invoked by follow-up patches, when replacing a nexthop bucket that is
part of a resilient nexthop group.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c