]> 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)
commit135b3096447a93cab89811fe765307c7d11decba
tree65ada48f51b64eb38cf0af3a5c6f36461c143701
parent854f7b7da530a778f861b42507ef9264ac297e7a
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