Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c506 unsigned long prefix_ref_count[MLXSW_SP_PREFIX_COUNT]; member
655 memset(&lpm_tree->prefix_ref_count, 0, in mlxsw_sp_lpm_tree_create()
656 sizeof(lpm_tree->prefix_ref_count)); in mlxsw_sp_lpm_tree_create()
1012 memcpy(new_tree->prefix_ref_count, old_tree->prefix_ref_count, in mlxsw_sp_vrs_lpm_tree_replace()
1013 sizeof(new_tree->prefix_ref_count)); in mlxsw_sp_vrs_lpm_tree_replace()
6380 if (lpm_tree->prefix_ref_count[fib_node->key.prefix_len] != 0) in mlxsw_sp_fib_lpm_tree_link()
6395 lpm_tree->prefix_ref_count[fib_node->key.prefix_len]++; in mlxsw_sp_fib_lpm_tree_link()
6411 if (--lpm_tree->prefix_ref_count[fib_node->key.prefix_len] != 0) in mlxsw_sp_fib_lpm_tree_unlink()