]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Prepare function to return errors
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Jun 2019 15:12:51 +0000 (18:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jun 2019 16:45:36 +0000 (09:45 -0700)
commitb3a98a980dab0f5281197a0eab90423021cc234c
tree65ada48f51b64eb38cf0af3a5c6f36461c143701
parent185b3c4508eb4c06914c18db0e044d1f03752d9e
mlxsw: spectrum_router: Prepare function to return errors

The function mlxsw_sp_router_fib6_event() takes care of preparing the
needed information for the work item that actually inserts the route
into the device.

When processing an IPv6 multipath route, the function will need to
allocate an array to store pointers to all the sibling routes.

Change the function's signature to return an error code and adjust the
single call site.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c