Home
last modified time | relevance | path

Searched refs:nh_grp (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/marvell/prestera/
Dprestera_router_hw.c55 struct prestera_nexthop_group *nh_grp);
58 struct prestera_nexthop_group *nh_grp);
361 struct prestera_nexthop_group *nh_grp; in prestera_nh_neigh_set() local
365 nh_grp = nh_head->this; in prestera_nh_neigh_set()
366 err = prestera_nexthop_group_set(sw, nh_grp); in prestera_nh_neigh_set()
396 struct prestera_nexthop_group *nh_grp; in __prestera_nexthop_group_create() local
400 nh_grp = kzalloc(sizeof(*nh_grp), GFP_KERNEL); in __prestera_nexthop_group_create()
401 if (!nh_grp) in __prestera_nexthop_group_create()
404 memcpy(&nh_grp->key, key, sizeof(*key)); in __prestera_nexthop_group_create()
406 if (!prestera_nh_neigh_key_is_valid(&nh_grp->key.neigh[nh_cnt])) in __prestera_nexthop_group_create()
[all …]
Dprestera_router_hw.h113 struct prestera_nexthop_group *nh_grp; member
Dprestera_router.c397 if (fib_node->info.nh_grp->nh_neigh_head[1].neigh) in prestera_fib_node_util_is_neighbour()
400 if (!fib_node->info.nh_grp->nh_neigh_head[0].neigh) in prestera_fib_node_util_is_neighbour()
403 if (memcmp(&fib_node->info.nh_grp->nh_neigh_head[0].neigh->key.addr, in prestera_fib_node_util_is_neighbour()
/linux-6.6.21/include/net/
Dnexthop.h41 struct nlattr *nh_grp; member
151 struct nh_group __rcu *nh_grp; member
213 struct nh_notifier_grp_info *nh_grp; member
252 const struct nh_group *nh_grp; in nexthop_is_fdb() local
254 nh_grp = rcu_dereference_rtnl(nh->nh_grp); in nexthop_is_fdb()
255 return nh_grp->fdb_nh; in nexthop_is_fdb()
267 struct nh_group *nh_grp; in nexthop_has_v4() local
269 nh_grp = rcu_dereference_rtnl(nh->nh_grp); in nexthop_has_v4()
270 return nh_grp->has_v4; in nexthop_has_v4()
278 struct nh_group *nh_grp; in nexthop_is_multipath() local
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c3101 struct mlxsw_sp_nexthop_group *nh_grp; member
3271 mlxsw_sp_nexthop_group_vr_entry_lookup(struct mlxsw_sp_nexthop_group *nh_grp, in mlxsw_sp_nexthop_group_vr_entry_lookup() argument
3279 return rhashtable_lookup_fast(&nh_grp->vr_ht, &key, in mlxsw_sp_nexthop_group_vr_entry_lookup()
3284 mlxsw_sp_nexthop_group_vr_entry_create(struct mlxsw_sp_nexthop_group *nh_grp, in mlxsw_sp_nexthop_group_vr_entry_create() argument
3298 err = rhashtable_insert_fast(&nh_grp->vr_ht, &vr_entry->ht_node, in mlxsw_sp_nexthop_group_vr_entry_create()
3303 list_add(&vr_entry->list, &nh_grp->vr_list); in mlxsw_sp_nexthop_group_vr_entry_create()
3313 mlxsw_sp_nexthop_group_vr_entry_destroy(struct mlxsw_sp_nexthop_group *nh_grp, in mlxsw_sp_nexthop_group_vr_entry_destroy() argument
3317 rhashtable_remove_fast(&nh_grp->vr_ht, &vr_entry->ht_node, in mlxsw_sp_nexthop_group_vr_entry_destroy()
3323 mlxsw_sp_nexthop_group_vr_link(struct mlxsw_sp_nexthop_group *nh_grp, in mlxsw_sp_nexthop_group_vr_link() argument
3328 vr_entry = mlxsw_sp_nexthop_group_vr_entry_lookup(nh_grp, fib); in mlxsw_sp_nexthop_group_vr_link()
[all …]
/linux-6.6.21/net/ipv4/
Dnexthop.c127 info->nh_grp = kzalloc(struct_size(info->nh_grp, nh_entries, num_nh), in nh_notifier_mpath_info_init()
129 if (!info->nh_grp) in nh_notifier_mpath_info_init()
132 info->nh_grp->num_nh = num_nh; in nh_notifier_mpath_info_init()
133 info->nh_grp->is_fdb = nhg->fdb_nh; in nh_notifier_mpath_info_init()
140 info->nh_grp->nh_entries[i].id = nhge->nh->id; in nh_notifier_mpath_info_init()
141 info->nh_grp->nh_entries[i].weight = nhge->weight; in nh_notifier_mpath_info_init()
142 __nh_notifier_single_info_init(&info->nh_grp->nh_entries[i].nh, in nh_notifier_mpath_info_init()
183 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nh_notifier_grp_info_init()
195 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nh_notifier_grp_info_fini()
198 kfree(info->nh_grp); in nh_notifier_grp_info_fini()
[all …]
/linux-6.6.21/drivers/net/netdevsim/
Dfib.c1134 for (i = 0; i < info->nh_grp->num_nh; i++) in nsim_nexthop_create()
1135 occ += info->nh_grp->nh_entries[i].weight; in nsim_nexthop_create()