Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/net/
Dnexthop.h41 struct nlattr *nh_grp; member
103 struct nh_group __rcu *nh_grp; member
138 const struct nh_group *nh_grp; in nexthop_is_fdb() local
140 nh_grp = rcu_dereference_rtnl(nh->nh_grp); in nexthop_is_fdb()
141 return nh_grp->fdb_nh; in nexthop_is_fdb()
153 struct nh_group *nh_grp; in nexthop_has_v4() local
155 nh_grp = rcu_dereference_rtnl(nh->nh_grp); in nexthop_has_v4()
156 return nh_grp->has_v4; in nexthop_has_v4()
164 struct nh_group *nh_grp; in nexthop_is_multipath() local
166 nh_grp = rcu_dereference_rtnl(nh->nh_grp); in nexthop_is_multipath()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c2755 struct mlxsw_sp_nexthop_group *nh_grp; /* pointer back to the group member
2864 struct mlxsw_sp_nexthop_group *nh_grp = nh->nh_grp; in mlxsw_sp_nexthop_indexes() local
2868 if (!nh->offloaded || !nh_grp->adj_index_valid) in mlxsw_sp_nexthop_indexes()
2871 *p_adj_index = nh_grp->adj_index; in mlxsw_sp_nexthop_indexes()
2872 *p_adj_size = nh_grp->ecmp_size; in mlxsw_sp_nexthop_indexes()
2874 for (i = 0; i < nh_grp->count; i++) { in mlxsw_sp_nexthop_indexes()
2875 struct mlxsw_sp_nexthop *nh_iter = &nh_grp->nexthops[i]; in mlxsw_sp_nexthop_indexes()
2894 struct mlxsw_sp_nexthop_group *nh_grp = nh->nh_grp; in mlxsw_sp_nexthop_group_has_ipip() local
2897 for (i = 0; i < nh_grp->count; i++) { in mlxsw_sp_nexthop_group_has_ipip()
2898 struct mlxsw_sp_nexthop *nh_iter = &nh_grp->nexthops[i]; in mlxsw_sp_nexthop_group_has_ipip()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dnexthop.c77 nhg = rcu_dereference_raw(nh->nh_grp); in nexthop_free_mpath()
248 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nh_fill_node()
307 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nh_nlmsg_size_grp()
390 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in valid_group_nh()
551 nhg = rcu_dereference(nh->nh_grp); in nexthop_select_path()
596 nhg = rcu_dereference_rtnl(nh->nh_grp); in nexthop_for_each_fib6_nh()
644 nhg = rtnl_dereference(nh->nh_grp); in fib6_check_nexthop()
716 nhg = rtnl_dereference(nh->nh_grp); in fib_check_nexthop()
791 nhg = rtnl_dereference(nhp->nh_grp); in remove_nh_grp_entry()
830 rcu_assign_pointer(nhp->nh_grp, newg); in remove_nh_grp_entry()
[all …]