Searched refs:nh_grp (Results 1 – 4 of 4) sorted by relevance
| /Linux-v5.15/include/net/ |
| D | nexthop.h | 41 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-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
| D | spectrum_router.c | 2911 struct mlxsw_sp_nexthop_group *nh_grp; member 3070 mlxsw_sp_nexthop_group_vr_entry_lookup(struct mlxsw_sp_nexthop_group *nh_grp, in mlxsw_sp_nexthop_group_vr_entry_lookup() argument 3078 return rhashtable_lookup_fast(&nh_grp->vr_ht, &key, in mlxsw_sp_nexthop_group_vr_entry_lookup() 3083 mlxsw_sp_nexthop_group_vr_entry_create(struct mlxsw_sp_nexthop_group *nh_grp, in mlxsw_sp_nexthop_group_vr_entry_create() argument 3097 err = rhashtable_insert_fast(&nh_grp->vr_ht, &vr_entry->ht_node, in mlxsw_sp_nexthop_group_vr_entry_create() 3102 list_add(&vr_entry->list, &nh_grp->vr_list); in mlxsw_sp_nexthop_group_vr_entry_create() 3112 mlxsw_sp_nexthop_group_vr_entry_destroy(struct mlxsw_sp_nexthop_group *nh_grp, in mlxsw_sp_nexthop_group_vr_entry_destroy() argument 3116 rhashtable_remove_fast(&nh_grp->vr_ht, &vr_entry->ht_node, in mlxsw_sp_nexthop_group_vr_entry_destroy() 3122 mlxsw_sp_nexthop_group_vr_link(struct mlxsw_sp_nexthop_group *nh_grp, in mlxsw_sp_nexthop_group_vr_link() argument 3127 vr_entry = mlxsw_sp_nexthop_group_vr_entry_lookup(nh_grp, fib); in mlxsw_sp_nexthop_group_vr_link() [all …]
|
| /Linux-v5.15/net/ipv4/ |
| D | nexthop.c | 126 info->nh_grp = kzalloc(struct_size(info->nh_grp, nh_entries, num_nh), in nh_notifier_mpath_info_init() 128 if (!info->nh_grp) in nh_notifier_mpath_info_init() 131 info->nh_grp->num_nh = num_nh; in nh_notifier_mpath_info_init() 132 info->nh_grp->is_fdb = nhg->fdb_nh; in nh_notifier_mpath_info_init() 139 info->nh_grp->nh_entries[i].id = nhge->nh->id; in nh_notifier_mpath_info_init() 140 info->nh_grp->nh_entries[i].weight = nhge->weight; in nh_notifier_mpath_info_init() 141 __nh_notifier_single_info_init(&info->nh_grp->nh_entries[i].nh, in nh_notifier_mpath_info_init() 182 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nh_notifier_grp_info_init() 194 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nh_notifier_grp_info_fini() 197 kfree(info->nh_grp); in nh_notifier_grp_info_fini() [all …]
|
| /Linux-v5.15/drivers/net/netdevsim/ |
| D | fib.c | 1119 for (i = 0; i < info->nh_grp->num_nh; i++) in nsim_nexthop_create() 1120 occ += info->nh_grp->nh_entries[i].weight; in nsim_nexthop_create()
|