Commit 2a014b20 authored by Ido Schimmel's avatar Ido Schimmel Committed by Jakub Kicinski

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: default avatarIdo Schimmel <idosch@nvidia.com>
Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 30abc9cd
...@@ -58,6 +58,7 @@ struct mlxsw_sp_router { ...@@ -58,6 +58,7 @@ struct mlxsw_sp_router {
struct list_head nexthop_neighs_list; struct list_head nexthop_neighs_list;
struct list_head ipip_list; struct list_head ipip_list;
bool aborted; bool aborted;
struct notifier_block nexthop_nb;
struct notifier_block fib_nb; struct notifier_block fib_nb;
struct notifier_block netevent_nb; struct notifier_block netevent_nb;
struct notifier_block inetaddr_nb; struct notifier_block inetaddr_nb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment