Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router_hw.c398 int nh_cnt, err, gid; in __prestera_nexthop_group_create() local
405 for (nh_cnt = 0; nh_cnt < PRESTERA_NHGR_SIZE_MAX; nh_cnt++) { in __prestera_nexthop_group_create()
406 if (!prestera_nh_neigh_key_is_valid(&nh_grp->key.neigh[nh_cnt])) in __prestera_nexthop_group_create()
410 &nh_grp->key.neigh[nh_cnt]); in __prestera_nexthop_group_create()
414 nh_grp->nh_neigh_head[nh_cnt].neigh = nh_neigh; in __prestera_nexthop_group_create()
415 nh_grp->nh_neigh_head[nh_cnt].this = nh_grp; in __prestera_nexthop_group_create()
416 list_add(&nh_grp->nh_neigh_head[nh_cnt].head, in __prestera_nexthop_group_create()
420 err = prestera_hw_nh_group_create(sw, nh_cnt, &nh_grp->grp_id); in __prestera_nexthop_group_create()
442 prestera_hw_nh_group_delete(sw, nh_cnt, nh_grp->grp_id); in __prestera_nexthop_group_create()
445 for (nh_cnt--; nh_cnt >= 0; nh_cnt--) { in __prestera_nexthop_group_create()
[all …]
H A Dprestera_router.c861 int nh_cnt; in __prestera_pr_k_arb_fc_lpm_info_calc() local
891 for (nh_cnt = 0; nh_cnt < PRESTERA_NHGR_SIZE_MAX; nh_cnt++) { in __prestera_pr_k_arb_fc_lpm_info_calc()
892 if (!fc->kern_neigh_cache_head[nh_cnt].n_cache) in __prestera_pr_k_arb_fc_lpm_info_calc()
895 fc->lpm_info.nh_grp_key.neigh[nh_cnt].addr = in __prestera_pr_k_arb_fc_lpm_info_calc()
896 fc->kern_neigh_cache_head[nh_cnt].n_cache->key.addr; in __prestera_pr_k_arb_fc_lpm_info_calc()
897 fc->lpm_info.nh_grp_key.neigh[nh_cnt].rif = in __prestera_pr_k_arb_fc_lpm_info_calc()
898 fc->kern_neigh_cache_head[nh_cnt].n_cache->key.dev; in __prestera_pr_k_arb_fc_lpm_info_calc()
901 fc->lpm_info.fib_type = nh_cnt ? in __prestera_pr_k_arb_fc_lpm_info_calc()