mlxsw: spectrum_router: Pass multiple routes to work item
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Jun 2019 15:12:52 +0000 (18:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jun 2019 16:45:37 +0000 (09:45 -0700)
commit928c0b534f2977a3c20c6237282fb8f685775373
treeda9f5c906c34488cf657e65ba1e4610b856194b6
parentccd56a5f5018ba2b32847a521b50997537d9838c
mlxsw: spectrum_router: Pass multiple routes to work item

Prepare the driver to process IPv6 multipath notifications by passing an
array of 'struct fib6_info' instead of just one route.

A reference is taken on each sibling route in order to prevent them from
being freed until they are processed by the workqueue.

v2:
* Remove 'multipath_rt' usage

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