Searched refs:nhct (Results 1 – 1 of 1) sorted by relevance
3167 struct mlxsw_sp_nexthop_counter *nhct; in mlxsw_sp_nexthop_counter_alloc() local3170 nhct = kzalloc(sizeof(*nhct), GFP_KERNEL); in mlxsw_sp_nexthop_counter_alloc()3171 if (!nhct) in mlxsw_sp_nexthop_counter_alloc()3174 err = mlxsw_sp_flow_counter_alloc(mlxsw_sp, &nhct->counter_index); in mlxsw_sp_nexthop_counter_alloc()3178 refcount_set(&nhct->ref_count, 1); in mlxsw_sp_nexthop_counter_alloc()3179 return nhct; in mlxsw_sp_nexthop_counter_alloc()3182 kfree(nhct); in mlxsw_sp_nexthop_counter_alloc()3188 struct mlxsw_sp_nexthop_counter *nhct) in mlxsw_sp_nexthop_counter_free() argument3190 mlxsw_sp_flow_counter_free(mlxsw_sp, nhct->counter_index); in mlxsw_sp_nexthop_counter_free()3191 kfree(nhct); in mlxsw_sp_nexthop_counter_free()[all …]