Searched refs:fib_node (Results 1 – 4 of 4) sorted by relevance
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_router_hw.c | 571 struct prestera_fib_node *fib_node; in prestera_fib_node_find() local 573 fib_node = rhashtable_lookup_fast(&sw->router->fib_ht, key, in prestera_fib_node_find() 575 return fib_node; in prestera_fib_node_find() 579 struct prestera_fib_node *fib_node) in __prestera_fib_node_destruct() argument 583 vr = fib_node->info.vr; in __prestera_fib_node_destruct() 584 prestera_hw_lpm_del(sw, vr->hw_vr_id, fib_node->key.addr.u.ipv4, in __prestera_fib_node_destruct() 585 fib_node->key.prefix_len); in __prestera_fib_node_destruct() 586 switch (fib_node->info.type) { in __prestera_fib_node_destruct() 588 prestera_nexthop_group_put(sw, fib_node->info.nh_grp); in __prestera_fib_node_destruct() 596 fib_node->info.type); in __prestera_fib_node_destruct() [all …]
|
D | prestera_router.c | 392 prestera_fib_node_util_is_neighbour(struct prestera_fib_node *fib_node) in prestera_fib_node_util_is_neighbour() argument 394 if (fib_node->info.type != PRESTERA_FIB_TYPE_UC_NH) in prestera_fib_node_util_is_neighbour() 397 if (fib_node->info.nh_grp->nh_neigh_head[1].neigh) in prestera_fib_node_util_is_neighbour() 400 if (!fib_node->info.nh_grp->nh_neigh_head[0].neigh) in prestera_fib_node_util_is_neighbour() 403 if (memcmp(&fib_node->info.nh_grp->nh_neigh_head[0].neigh->key.addr, in prestera_fib_node_util_is_neighbour() 404 &fib_node->key.addr, sizeof(struct prestera_ip_addr))) in prestera_fib_node_util_is_neighbour() 731 struct prestera_fib_node *fib_node; in __prestera_k_arb_n_lpm_set() local 750 fib_node = prestera_fib_node_find(sw, &fib_key); in __prestera_k_arb_n_lpm_set() 752 if (!enabled && fib_node) { in __prestera_k_arb_n_lpm_set() 753 if (prestera_fib_node_util_is_neighbour(fib_node)) in __prestera_k_arb_n_lpm_set() [all …]
|
D | prestera_router_hw.h | 146 struct prestera_fib_node *fib_node);
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 476 struct mlxsw_sp_fib_node *fib_node; member 1347 struct mlxsw_sp_fib_node *fib_node; in mlxsw_sp_router_ip2me_fib_entry_find() local 1377 fib_node = mlxsw_sp_fib_node_lookup(fib, addrp, addr_len, in mlxsw_sp_router_ip2me_fib_entry_find() 1379 if (!fib_node || fib_node->fib_entry->type != type) in mlxsw_sp_router_ip2me_fib_entry_find() 1382 return fib_node->fib_entry; in mlxsw_sp_router_ip2me_fib_entry_find() 1390 static struct mlxsw_sp_fib_node *fib_node; in mlxsw_sp_ipip_entry_find_decap() local 1429 fib_node = mlxsw_sp_fib_node_lookup(ul_fib, saddrp, saddr_len, in mlxsw_sp_ipip_entry_find_decap() 1431 if (!fib_node || in mlxsw_sp_ipip_entry_find_decap() 1432 fib_node->fib_entry->type != MLXSW_SP_FIB_ENTRY_TYPE_TRAP) in mlxsw_sp_ipip_entry_find_decap() 1435 return fib_node->fib_entry; in mlxsw_sp_ipip_entry_find_decap() [all …]
|