Home
last modified time | relevance | path

Searched refs:nhg (Results 1 – 25 of 270) sorted by relevance

1234567891011

/dports/net/frr7-pythontools/frr-frr-7.5.1/lib/
H A Dnexthop_group.h44 void nexthop_group_delete(struct nexthop_group **nhg);
52 void nexthop_group_copy_nh_sorted(struct nexthop_group *nhg,
58 uint32_t nexthop_group_hash_no_recurse(const struct nexthop_group *nhg);
59 uint32_t nexthop_group_hash(const struct nexthop_group *nhg);
60 void nexthop_group_mark_duplicates(struct nexthop_group *nhg);
63 void nexthop_group_add_sorted(struct nexthop_group *nhg,
96 struct nexthop_group nhg; member
126 extern struct nexthop *nexthop_exists(const struct nexthop_group *nhg,
148 extern uint8_t nexthop_group_nexthop_num(const struct nexthop_group *nhg);
150 nexthop_group_nexthop_num_no_recurse(const struct nexthop_group *nhg);
[all …]
H A Dnexthop_group.c90 for (ALL_NEXTHOPS_PTR(nhg, nhop)) in nexthop_group_nexthop_num()
283 if ((*nhg) == NULL) in nexthop_group_delete()
286 if ((*nhg)->nexthop) in nexthop_group_delete()
287 nexthops_free((*nhg)->nexthop); in nexthop_group_delete()
289 XFREE(MTYPE_NEXTHOP_GROUP, *nhg); in nexthop_group_delete()
347 tail = nexthop_group_tail(nhg); in nexthop_group_add_sorted()
374 nhg->nexthop = nexthop->next; in _nexthop_del()
392 nhg->nexthop = nexthop->next; in nexthop_unlink()
415 tail = nexthop_group_tail(nhg); in nexthop_group_copy_nh_sorted()
468 for (ALL_NEXTHOPS_PTR(nhg, nh)) in nexthop_group_hash()
[all …]
/dports/net/frr7/frr-frr-7.5.1/lib/
H A Dnexthop_group.h44 void nexthop_group_delete(struct nexthop_group **nhg);
52 void nexthop_group_copy_nh_sorted(struct nexthop_group *nhg,
58 uint32_t nexthop_group_hash_no_recurse(const struct nexthop_group *nhg);
59 uint32_t nexthop_group_hash(const struct nexthop_group *nhg);
60 void nexthop_group_mark_duplicates(struct nexthop_group *nhg);
63 void nexthop_group_add_sorted(struct nexthop_group *nhg,
96 struct nexthop_group nhg; member
126 extern struct nexthop *nexthop_exists(const struct nexthop_group *nhg,
148 extern uint8_t nexthop_group_nexthop_num(const struct nexthop_group *nhg);
150 nexthop_group_nexthop_num_no_recurse(const struct nexthop_group *nhg);
[all …]
H A Dnexthop_group.c90 for (ALL_NEXTHOPS_PTR(nhg, nhop)) in nexthop_group_nexthop_num()
283 if ((*nhg) == NULL) in nexthop_group_delete()
286 if ((*nhg)->nexthop) in nexthop_group_delete()
287 nexthops_free((*nhg)->nexthop); in nexthop_group_delete()
289 XFREE(MTYPE_NEXTHOP_GROUP, *nhg); in nexthop_group_delete()
347 tail = nexthop_group_tail(nhg); in nexthop_group_add_sorted()
374 nhg->nexthop = nexthop->next; in _nexthop_del()
392 nhg->nexthop = nexthop->next; in nexthop_unlink()
415 tail = nexthop_group_tail(nhg); in nexthop_group_copy_nh_sorted()
468 for (ALL_NEXTHOPS_PTR(nhg, nh)) in nexthop_group_hash()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/net/ipv4/
H A Dnexthop.c479 WARN_ON(nhg->spare == nhg); in nexthop_free_group()
485 kfree(nhg); in nexthop_free_group()
536 if (nhg) in nexthop_grp_alloc()
539 return nhg; in nexthop_grp_alloc()
683 if (nhg->resilient && nla_put_nh_group_res(skb, nhg)) in nla_put_nh_group()
1063 if (nhg[i].resvd1 || nhg[i].resvd2) { in nh_check_attr_group()
1072 if (nhg[i].id == nhg[j].id) { in nh_check_attr_group()
2406 if (!nhg) { in nexthop_create_group()
2414 kfree(nhg); in nexthop_create_group()
2418 nhg->spare->spare = nhg; in nexthop_create_group()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/ipv4/
H A Dnexthop.c479 WARN_ON(nhg->spare == nhg); in nexthop_free_group()
485 kfree(nhg); in nexthop_free_group()
536 if (nhg) in nexthop_grp_alloc()
539 return nhg; in nexthop_grp_alloc()
683 if (nhg->resilient && nla_put_nh_group_res(skb, nhg)) in nla_put_nh_group()
1063 if (nhg[i].resvd1 || nhg[i].resvd2) { in nh_check_attr_group()
1072 if (nhg[i].id == nhg[j].id) { in nh_check_attr_group()
2406 if (!nhg) { in nexthop_create_group()
2414 kfree(nhg); in nexthop_create_group()
2418 nhg->spare->spare = nhg; in nexthop_create_group()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/ipv4/
H A Dnexthop.c479 WARN_ON(nhg->spare == nhg); in nexthop_free_group()
485 kfree(nhg); in nexthop_free_group()
536 if (nhg) in nexthop_grp_alloc()
539 return nhg; in nexthop_grp_alloc()
683 if (nhg->resilient && nla_put_nh_group_res(skb, nhg)) in nla_put_nh_group()
1063 if (nhg[i].resvd1 || nhg[i].resvd2) { in nh_check_attr_group()
1072 if (nhg[i].id == nhg[j].id) { in nh_check_attr_group()
2406 if (!nhg) { in nexthop_create_group()
2414 kfree(nhg); in nexthop_create_group()
2418 nhg->spare->spare = nhg; in nexthop_create_group()
[all …]
/dports/net/frr7-pythontools/frr-frr-7.5.1/zebra/
H A Dzebra_nhg.c389 nexthop_group_copy(&(nhe->nhg), &(orig->nhg)); in zebra_nhe_copy()
522 for (nexthop1 = nhe1->nhg.nexthop, nexthop2 = nhe2->nhg.nexthop; in zebra_nhg_hash_equal()
607 copy_nexthops(&nhg->nexthop, depend->nhg.nexthop, NULL); in zebra_nhg_process_grp()
707 nh = newnhe->nhg.nexthop; in zebra_nhe_find()
801 lookup.nhg = *nhg; in zebra_nhg_find()
1458 assert(nhg->nexthop); in zebra_nhg_rib_find()
1551 nexthop_group_copy(&(b->nhe->nhg), &(orig->nhe->nhg)); in nhg_backup_copy()
1572 if (nhe->nhg.nexthop && nhe->nhg.nexthop->next) in zebra_nhg_free()
1578 nhe->nhg.nexthop); in zebra_nhg_free()
2058 if (nhg == NULL || nhg->nexthop == NULL) in nexthop_active()
[all …]
H A Dzebra_pw.c520 struct nexthop_group *nhg; in vty_show_mpls_pseudowire_detail() local
555 nhg = rib_get_fib_nhg(re); in vty_show_mpls_pseudowire_detail()
556 for (ALL_NEXTHOPS_PTR(nhg, nexthop)) { in vty_show_mpls_pseudowire_detail()
569 nhg = rib_get_fib_backup_nhg(re); in vty_show_mpls_pseudowire_detail()
570 if (nhg == NULL) in vty_show_mpls_pseudowire_detail()
591 struct nexthop_group *nhg; in vty_show_mpls_pseudowire() local
629 nhg = rib_get_fib_nhg(re); in vty_show_mpls_pseudowire()
630 for (ALL_NEXTHOPS_PTR(nhg, nexthop)) { in vty_show_mpls_pseudowire()
646 nhg = rib_get_fib_backup_nhg(re); in vty_show_mpls_pseudowire()
647 if (nhg == NULL) in vty_show_mpls_pseudowire()
[all …]
/dports/net/frr7/frr-frr-7.5.1/zebra/
H A Dzebra_nhg.c389 nexthop_group_copy(&(nhe->nhg), &(orig->nhg)); in zebra_nhe_copy()
522 for (nexthop1 = nhe1->nhg.nexthop, nexthop2 = nhe2->nhg.nexthop; in zebra_nhg_hash_equal()
607 copy_nexthops(&nhg->nexthop, depend->nhg.nexthop, NULL); in zebra_nhg_process_grp()
707 nh = newnhe->nhg.nexthop; in zebra_nhe_find()
801 lookup.nhg = *nhg; in zebra_nhg_find()
1458 assert(nhg->nexthop); in zebra_nhg_rib_find()
1551 nexthop_group_copy(&(b->nhe->nhg), &(orig->nhe->nhg)); in nhg_backup_copy()
1572 if (nhe->nhg.nexthop && nhe->nhg.nexthop->next) in zebra_nhg_free()
1578 nhe->nhg.nexthop); in zebra_nhg_free()
2058 if (nhg == NULL || nhg->nexthop == NULL) in nexthop_active()
[all …]
H A Dzebra_pw.c520 struct nexthop_group *nhg; in vty_show_mpls_pseudowire_detail() local
555 nhg = rib_get_fib_nhg(re); in vty_show_mpls_pseudowire_detail()
556 for (ALL_NEXTHOPS_PTR(nhg, nexthop)) { in vty_show_mpls_pseudowire_detail()
569 nhg = rib_get_fib_backup_nhg(re); in vty_show_mpls_pseudowire_detail()
570 if (nhg == NULL) in vty_show_mpls_pseudowire_detail()
591 struct nexthop_group *nhg; in vty_show_mpls_pseudowire() local
629 nhg = rib_get_fib_nhg(re); in vty_show_mpls_pseudowire()
630 for (ALL_NEXTHOPS_PTR(nhg, nexthop)) { in vty_show_mpls_pseudowire()
646 nhg = rib_get_fib_backup_nhg(re); in vty_show_mpls_pseudowire()
647 if (nhg == NULL) in vty_show_mpls_pseudowire()
[all …]
/dports/net/frr7-pythontools/frr-frr-7.5.1/pbrd/
H A Dpbr_nht.c50 struct nexthop_group nhg);
53 struct nexthop_group nhg,
411 for (ALL_NEXTHOPS(nhg, nexthop)) { in pbr_nht_which_afi()
451 struct nexthop_group nhg) in pbr_nht_install_nexthop_group() argument
463 struct nexthop_group nhg, in pbr_nht_uninstall_nexthop_group() argument
528 pbrms->nhg = nexthop_group_new(); in pbr_nht_add_individual_nexthop()
590 nh = pbrms->nhg->nexthop; in pbr_nht_release_individual_nexthop()
667 pbrms->nhg = NULL; in pbr_nht_delete_group()
854 _nexthop_add(&nhg->nexthop, nh); in pbr_nexthop_group_cache_iterate_to_group()
868 struct nexthop_group nhg = {}; in pbr_nht_nexthop_update_lookup() local
[all …]
H A Dpbr_map.c366 if (pbrms->nhg) in pbr_map_delete()
587 if (pbrms->nhg && pbrms->nhgrp_name) in pbr_map_sequence_check_nexthops_valid()
590 if (pbrms->nhg && in pbr_map_sequence_check_nexthops_valid()
680 if (pbrms->nhg in pbr_map_schedule_policy_from_nhg()
763 else if (pbrms->nhg) in pbr_map_check_nh_group_change()
800 if (pbrms->nhg == NULL) in pbr_map_check_vrf_nh_group_change()
806 if (pbrms->nhg->nexthop == NULL) in pbr_map_check_vrf_nh_group_change()
809 if (pbrms->nhg->nexthop->vrf_id != old_vrf_id) in pbr_map_check_vrf_nh_group_change()
830 if (pbrms->nhg == NULL) in pbr_map_check_interface_nh_group_change()
836 if (pbrms->nhg->nexthop == NULL) in pbr_map_check_interface_nh_group_change()
[all …]
H A Dpbr_nht.h86 extern void pbr_nhgroup_add_nexthop_cb(const struct nexthop_group_cmd *nhg,
88 extern void pbr_nhgroup_del_nexthop_cb(const struct nexthop_group_cmd *nhg,
92 extern bool pbr_nht_nexthop_valid(struct nexthop_group *nhg);
/dports/net/frr7/frr-frr-7.5.1/pbrd/
H A Dpbr_nht.c50 struct nexthop_group nhg);
53 struct nexthop_group nhg,
411 for (ALL_NEXTHOPS(nhg, nexthop)) { in pbr_nht_which_afi()
451 struct nexthop_group nhg) in pbr_nht_install_nexthop_group() argument
463 struct nexthop_group nhg, in pbr_nht_uninstall_nexthop_group() argument
528 pbrms->nhg = nexthop_group_new(); in pbr_nht_add_individual_nexthop()
590 nh = pbrms->nhg->nexthop; in pbr_nht_release_individual_nexthop()
667 pbrms->nhg = NULL; in pbr_nht_delete_group()
854 _nexthop_add(&nhg->nexthop, nh); in pbr_nexthop_group_cache_iterate_to_group()
868 struct nexthop_group nhg = {}; in pbr_nht_nexthop_update_lookup() local
[all …]
H A Dpbr_map.c366 if (pbrms->nhg) in pbr_map_delete()
587 if (pbrms->nhg && pbrms->nhgrp_name) in pbr_map_sequence_check_nexthops_valid()
590 if (pbrms->nhg && in pbr_map_sequence_check_nexthops_valid()
680 if (pbrms->nhg in pbr_map_schedule_policy_from_nhg()
763 else if (pbrms->nhg) in pbr_map_check_nh_group_change()
800 if (pbrms->nhg == NULL) in pbr_map_check_vrf_nh_group_change()
806 if (pbrms->nhg->nexthop == NULL) in pbr_map_check_vrf_nh_group_change()
809 if (pbrms->nhg->nexthop->vrf_id != old_vrf_id) in pbr_map_check_vrf_nh_group_change()
830 if (pbrms->nhg == NULL) in pbr_map_check_interface_nh_group_change()
836 if (pbrms->nhg->nexthop == NULL) in pbr_map_check_interface_nh_group_change()
[all …]
H A Dpbr_nht.h86 extern void pbr_nhgroup_add_nexthop_cb(const struct nexthop_group_cmd *nhg,
88 extern void pbr_nhgroup_del_nexthop_cb(const struct nexthop_group_cmd *nhg,
92 extern bool pbr_nht_nexthop_valid(struct nexthop_group *nhg);
H A Dpbr_zebra.c258 static void route_add_helper(struct zapi_route *api, struct nexthop_group nhg, in route_add_helper() argument
272 for (ALL_NEXTHOPS(nhg, nhop)) { in route_add_helper()
310 void route_add(struct pbr_nexthop_group_cache *pnhgc, struct nexthop_group nhg, in route_add() argument
331 route_add_helper(&api, nhg, AF_INET); in route_add()
332 route_add_helper(&api, nhg, AF_INET6); in route_add()
335 route_add_helper(&api, nhg, AF_INET); in route_add()
338 route_add_helper(&api, nhg, AF_INET6); in route_add()
547 else if (pbrms->nhg) in pbr_encode_pbr_map_sequence()
/dports/multimedia/libv4l/linux-5.13-rc2/include/net/
H A Dnexthop.h309 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
312 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select()
319 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nexthop_mpath_fill_node() local
322 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
323 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node()
326 int weight = nhg->nh_entries[i].weight; in nexthop_mpath_fill_node()
398 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_get_nhc_lookup() local
401 for (i = 0; i < nhg->num_nh; i++) { in nexthop_get_nhc_lookup()
402 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup()
430 for (i = 0; i < nhg->num_nh; i++) { in nexthop_uses_dev()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/include/net/
H A Dnexthop.h309 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
312 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select()
319 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nexthop_mpath_fill_node() local
322 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
323 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node()
326 int weight = nhg->nh_entries[i].weight; in nexthop_mpath_fill_node()
398 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_get_nhc_lookup() local
401 for (i = 0; i < nhg->num_nh; i++) { in nexthop_get_nhc_lookup()
402 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup()
430 for (i = 0; i < nhg->num_nh; i++) { in nexthop_uses_dev()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/include/net/
H A Dnexthop.h309 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
312 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select()
319 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nexthop_mpath_fill_node() local
322 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
323 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node()
326 int weight = nhg->nh_entries[i].weight; in nexthop_mpath_fill_node()
398 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_get_nhc_lookup() local
401 for (i = 0; i < nhg->num_nh; i++) { in nexthop_get_nhc_lookup()
402 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup()
430 for (i = 0; i < nhg->num_nh; i++) { in nexthop_uses_dev()
[all …]
/dports/net/frr7/frr-frr-7.5.1/sharpd/
H A Dsharp_vty.c247 sg.r.nhop_group.nexthop = nhgc->nhg.nexthop;
262 sg.r.backup_nhop_group.nexthop = bnhgc->nhg.nexthop;
446 if (nhgc->nhg.nexthop == NULL) {
462 backup_nhg = &(backup_nhgc->nhg);
468 &(nhgc->nhg), backup_nhg) == 0)
497 struct nexthop_group *nhg = NULL; variable
523 if (nhgc->nhg.nexthop == NULL) {
528 nhg = &(nhgc->nhg);
533 type, instance, inlabel, nhg, NULL) == 0)
H A Dsharp_zebra.h33 const struct nexthop_group *nhg,
41 const struct nexthop_group *nhg,
50 const struct nexthop_group *nhg,
/dports/net/frr7-pythontools/frr-frr-7.5.1/sharpd/
H A Dsharp_vty.c247 sg.r.nhop_group.nexthop = nhgc->nhg.nexthop;
262 sg.r.backup_nhop_group.nexthop = bnhgc->nhg.nexthop;
446 if (nhgc->nhg.nexthop == NULL) {
462 backup_nhg = &(backup_nhgc->nhg);
468 &(nhgc->nhg), backup_nhg) == 0)
497 struct nexthop_group *nhg = NULL; variable
523 if (nhgc->nhg.nexthop == NULL) {
528 nhg = &(nhgc->nhg);
533 type, instance, inlabel, nhg, NULL) == 0)
H A Dsharp_zebra.h33 const struct nexthop_group *nhg,
41 const struct nexthop_group *nhg,
50 const struct nexthop_group *nhg,

1234567891011