mlxsw_sp_net
dev_net_set(dev, mlxsw_sp_net(mlxsw_sp));
err = register_netdevice_notifier_net(mlxsw_sp_net(mlxsw_sp),
unregister_netdevice_notifier_net(mlxsw_sp_net(mlxsw_sp),
unregister_netdevice_notifier_net(mlxsw_sp_net(mlxsw_sp),
nve_dev = __dev_get_by_index(mlxsw_sp_net(mlxsw_sp), nve_ifindex);
struct net *net = mlxsw_sp_net(mlxsw_sp);
u32 hash_fields = ip6_multipath_hash_fields(mlxsw_sp_net(mlxsw_sp));
switch (ip6_multipath_hash_policy(mlxsw_sp_net(mlxsw_sp))) {
struct net *net = mlxsw_sp_net(mlxsw_sp);
struct net *net = mlxsw_sp_net(mlxsw_sp);
err = register_netdevice_notifier_net(mlxsw_sp_net(mlxsw_sp),
err = register_nexthop_notifier(mlxsw_sp_net(mlxsw_sp),
err = register_fib_notifier(mlxsw_sp_net(mlxsw_sp),
unregister_nexthop_notifier(mlxsw_sp_net(mlxsw_sp),
unregister_netdevice_notifier_net(mlxsw_sp_net(mlxsw_sp),
unregister_fib_notifier(mlxsw_sp_net(mlxsw_sp), &router->fib_nb);
unregister_nexthop_notifier(mlxsw_sp_net(mlxsw_sp),
unregister_netdevice_notifier_net(mlxsw_sp_net(mlxsw_sp),
ul_dev = dev_get_by_index_rcu(mlxsw_sp_net(mlxsw_sp), ul_dev_ifindex);
if (!net_eq(net, mlxsw_sp_net(router->mlxsw_sp)))
nexthop_bucket_set_hw_flags(mlxsw_sp_net(mlxsw_sp), nh_grp->obj.id,
nexthop_set_hw_flags(mlxsw_sp_net(mlxsw_sp), nh_grp->obj.id,
nexthop_res_grp_activity_update(mlxsw_sp_net(mlxsw_sp), nh_grp->obj.id,
fib_alias_hw_flags_set(mlxsw_sp_net(mlxsw_sp), &fri);
fib_alias_hw_flags_set(mlxsw_sp_net(mlxsw_sp), &fri);
fib_alias_hw_flags_set(mlxsw_sp_net(mlxsw_sp), &fri);
fib6_info_hw_flags_set(mlxsw_sp_net(mlxsw_sp), rt_arr[i],
fib6_info_hw_flags_set(mlxsw_sp_net(mlxsw_sp), mlxsw_sp_rt6->rt,
fib6_info_hw_flags_set(mlxsw_sp_net(mlxsw_sp), mlxsw_sp_rt6->rt,
if (rule->iifindex == mlxsw_sp_net(mlxsw_sp)->loopback_dev->ifindex)
dev = __dev_get_by_index(mlxsw_sp_net(mlxsw_sp), nve_ifindex);