Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_router_hw.c571 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 …]
Dprestera_router.c392 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 …]
Dprestera_router_hw.h146 struct prestera_fib_node *fib_node);
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c447 struct mlxsw_sp_fib_node *fib_node; member
1258 struct mlxsw_sp_fib_node *fib_node; in mlxsw_sp_router_ip2me_fib_entry_find() local
1288 fib_node = mlxsw_sp_fib_node_lookup(fib, addrp, addr_len, in mlxsw_sp_router_ip2me_fib_entry_find()
1290 if (!fib_node || fib_node->fib_entry->type != type) in mlxsw_sp_router_ip2me_fib_entry_find()
1293 return fib_node->fib_entry; in mlxsw_sp_router_ip2me_fib_entry_find()
1301 static struct mlxsw_sp_fib_node *fib_node; in mlxsw_sp_ipip_entry_find_decap() local
1340 fib_node = mlxsw_sp_fib_node_lookup(ul_fib, saddrp, saddr_len, in mlxsw_sp_ipip_entry_find_decap()
1342 if (!fib_node || in mlxsw_sp_ipip_entry_find_decap()
1343 fib_node->fib_entry->type != MLXSW_SP_FIB_ENTRY_TYPE_TRAP) in mlxsw_sp_ipip_entry_find_decap()
1346 return fib_node->fib_entry; in mlxsw_sp_ipip_entry_find_decap()
[all …]