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)
commitccd56a5f5018ba2b32847a521b50997537d9838c
tree65ada48f51b64eb38cf0af3a5c6f36461c143701
parent20247fcab397dc6339992ee6deb9f4a6e53d05ef
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