]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee880fcb2f994cf7e99ebf172d2cf50f8436b045
treeda9f5c906c34488cf657e65ba1e4610b856194b6
parentb3a98a980dab0f5281197a0eab90423021cc234c
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