mlxsw: spectrum_router: Add support for nexthop objects
authorIdo Schimmel <idosch@nvidia.com>
Thu, 19 Nov 2020 13:08:41 +0000 (15:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 23:20:20 +0000 (15:20 -0800)
commit2a014b200bbd973cc96e082a5bc445fe20b50f32
tree91a46b4d97efdaa8f75cf88bca53408a995f4144
parent30abc9cd9c6bdd44d23fc49a9c2526a86fba4305
mlxsw: spectrum_router: Add support for nexthop objects

Register a listener to the nexthop notification chain and parse notified
nexthop objects into the existing mlxsw nexthop data structures.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h