Lines Matching refs:nh

911 	struct mlxsw_sp_nexthop *nh;  in mlxsw_sp_dpipe_table_adj_size()  local
914 mlxsw_sp_nexthop_for_each(nh, mlxsw_sp->router) in mlxsw_sp_dpipe_table_adj_size()
915 if (mlxsw_sp_nexthop_is_forward(nh) && in mlxsw_sp_dpipe_table_adj_size()
916 !mlxsw_sp_nexthop_group_has_ipip(nh)) in mlxsw_sp_dpipe_table_adj_size()
1065 struct mlxsw_sp_nexthop *nh, in mlxsw_sp_dpipe_table_adj_entry_fill() argument
1068 struct mlxsw_sp_rif *rif = mlxsw_sp_nexthop_rif(nh); in mlxsw_sp_dpipe_table_adj_entry_fill()
1069 unsigned char *ha = mlxsw_sp_nexthop_ha(nh); in mlxsw_sp_dpipe_table_adj_entry_fill()
1075 mlxsw_sp_nexthop_indexes(nh, &adj_index, &adj_size, &adj_hash_index); in mlxsw_sp_dpipe_table_adj_entry_fill()
1078 err = mlxsw_sp_nexthop_counter_get(mlxsw_sp, nh, &entry->counter); in mlxsw_sp_dpipe_table_adj_entry_fill()
1089 struct mlxsw_sp_nexthop *nh; in mlxsw_sp_dpipe_table_adj_entries_get() local
1106 mlxsw_sp_nexthop_for_each(nh, mlxsw_sp->router) { in mlxsw_sp_dpipe_table_adj_entries_get()
1107 if (!mlxsw_sp_nexthop_is_forward(nh) || in mlxsw_sp_dpipe_table_adj_entries_get()
1108 mlxsw_sp_nexthop_group_has_ipip(nh)) in mlxsw_sp_dpipe_table_adj_entries_get()
1114 mlxsw_sp_dpipe_table_adj_entry_fill(mlxsw_sp, nh, entry); in mlxsw_sp_dpipe_table_adj_entries_get()
1183 struct mlxsw_sp_nexthop *nh; in mlxsw_sp_dpipe_table_adj_counters_update() local
1188 mlxsw_sp_nexthop_for_each(nh, mlxsw_sp->router) { in mlxsw_sp_dpipe_table_adj_counters_update()
1189 if (!mlxsw_sp_nexthop_is_forward(nh) || in mlxsw_sp_dpipe_table_adj_counters_update()
1190 mlxsw_sp_nexthop_group_has_ipip(nh)) in mlxsw_sp_dpipe_table_adj_counters_update()
1193 mlxsw_sp_nexthop_indexes(nh, &adj_index, &adj_size, in mlxsw_sp_dpipe_table_adj_counters_update()
1196 mlxsw_sp_nexthop_counter_alloc(mlxsw_sp, nh); in mlxsw_sp_dpipe_table_adj_counters_update()
1198 mlxsw_sp_nexthop_counter_free(mlxsw_sp, nh); in mlxsw_sp_dpipe_table_adj_counters_update()
1200 adj_index + adj_hash_index, nh, in mlxsw_sp_dpipe_table_adj_counters_update()