Lines Matching refs:nh_group
450 struct mlxsw_sp_nexthop_group *nh_group; member
5441 fib_entry->nh_group = nh_grp; in mlxsw_sp_nexthop4_group_get()
5448 struct mlxsw_sp_nexthop_group *nh_grp = fib_entry->nh_group; in mlxsw_sp_nexthop4_group_put()
5475 struct mlxsw_sp_nexthop_group *nh_group = fib_entry->nh_group; in mlxsw_sp_fib_entry_should_offload() local
5488 return !!nh_group->nhgi->adj_index_valid; in mlxsw_sp_fib_entry_should_offload()
5490 return !!nh_group->nhgi->nh_rif; in mlxsw_sp_fib_entry_should_offload()
5735 struct mlxsw_sp_nexthop_group *nh_group = fib_entry->nh_group; in mlxsw_sp_fib_entry_op_remote() local
5736 struct mlxsw_sp_nexthop_group_info *nhgi = nh_group->nhgi; in mlxsw_sp_fib_entry_op_remote()
5770 struct mlxsw_sp_rif *rif = fib_entry->nh_group->nhgi->nh_rif; in mlxsw_sp_fib_entry_op_local()
5926 struct mlxsw_sp_nexthop_group_info *nhgi = fib_entry->nh_group->nhgi; in mlxsw_sp_fib4_entry_type_set()
6017 err = mlxsw_sp_nexthop_group_vr_link(fib_entry->nh_group, in mlxsw_sp_fib4_entry_create()
6037 mlxsw_sp_nexthop_group_vr_unlink(fib_entry->nh_group, fib_node->fib); in mlxsw_sp_fib4_entry_create()
6052 mlxsw_sp_nexthop_group_vr_unlink(fib4_entry->common.nh_group, in mlxsw_sp_fib4_entry_destroy()
6697 fib6_entry->common.nh_group = nh_grp; in mlxsw_sp_nexthop6_group_get()
6705 struct mlxsw_sp_nexthop_group *nh_grp = fib_entry->nh_group; in mlxsw_sp_nexthop6_group_put()
6723 struct mlxsw_sp_nexthop_group *old_nh_grp = fib6_entry->common.nh_group; in mlxsw_sp_nexthop6_group_update()
6728 fib6_entry->common.nh_group = NULL; in mlxsw_sp_nexthop6_group_update()
6735 err = mlxsw_sp_nexthop_group_vr_link(fib6_entry->common.nh_group, in mlxsw_sp_nexthop6_group_update()
6754 mlxsw_sp_nexthop_group_vr_unlink(fib6_entry->common.nh_group, in mlxsw_sp_nexthop6_group_update()
6761 fib6_entry->common.nh_group = old_nh_grp; in mlxsw_sp_nexthop6_group_update()
6829 struct mlxsw_sp_nexthop_group_info *nhgi = fib_entry->nh_group->nhgi; in mlxsw_sp_fib6_entry_type_set_local()
6871 else if (fib_entry->nh_group->nhgi->gateway) in mlxsw_sp_fib6_entry_type_set()
6923 err = mlxsw_sp_nexthop_group_vr_link(fib_entry->nh_group, in mlxsw_sp_fib6_entry_create()
6937 mlxsw_sp_nexthop_group_vr_unlink(fib_entry->nh_group, fib_node->fib); in mlxsw_sp_fib6_entry_create()
6965 mlxsw_sp_nexthop_group_vr_unlink(fib6_entry->common.nh_group, in mlxsw_sp_fib6_entry_destroy()