| /f-stack/freebsd/net/route/ |
| H A D | route_var.h | 81 #define RIB_LOCK_INIT(rh) rm_init(&(rh)->rib_lock, "rib head lock") argument 82 #define RIB_LOCK_DESTROY(rh) rm_destroy(&(rh)->rib_lock) argument 83 #define RIB_RLOCK(rh) rm_rlock(&(rh)->rib_lock, &_rib_tracker) argument 84 #define RIB_RUNLOCK(rh) rm_runlock(&(rh)->rib_lock, &_rib_tracker) argument 85 #define RIB_WLOCK(rh) rm_wlock(&(rh)->rib_lock) argument 86 #define RIB_WUNLOCK(rh) rm_wunlock(&(rh)->rib_lock) argument 87 #define RIB_LOCK_ASSERT(rh) rm_assert(&(rh)->rib_lock, RA_LOCKED) argument 88 #define RIB_WLOCK_ASSERT(rh) rm_assert(&(rh)->rib_lock, RA_WLOCKED) argument 206 void tmproutes_init(struct rib_head *rh); 236 int nhops_init_rib(struct rib_head *rh); [all …]
|
| H A D | fib_algo.c | 785 if (fd->fd_rh == rh) { in fib_cleanup_algo() 896 fd->fd_rh = rh; in try_setup_fd_instance() 979 RIB_WLOCK_ASSERT(rh); in setup_fd_instance() 1157 rh = fd->fd_rh; in set_fib_algo() 1179 RIB_WLOCK(rh); in set_fib_algo() 1181 RIB_WUNLOCK(rh); in set_fib_algo() 1189 set_algo_fixed(rh); in set_fib_algo() 1504 switch (rh->rib_family) { in set_algo_fixed() 1522 switch (rh->rib_family) { in is_algo_fixed() 1602 RIB_WLOCK(rh); in fib_select_algo_initial() [all …]
|
| H A D | route_temporal.c | 150 tmproutes_init(struct rib_head *rh) in tmproutes_init() argument 153 callout_init(&rh->expire_callout, 1); in tmproutes_init() 157 tmproutes_destroy(struct rib_head *rh) in tmproutes_destroy() argument 160 callout_drain(&rh->expire_callout); in tmproutes_destroy()
|
| H A D | nhop.c | 72 nhops_init_rib(struct rib_head *rh) in nhops_init_rib() argument 99 rh->nh_control = ctl; in nhops_init_rib() 100 ctl->ctl_rh = rh; in nhops_init_rib() 102 DPRINTF("NHOPS init for fib %u af %u: ctl %p rh %p", rh->rib_fibnum, in nhops_init_rib() 103 rh->rib_family, ctl, rh); in nhops_init_rib() 135 nhops_destroy_rib(struct rib_head *rh) in nhops_destroy_rib() argument 140 ctl = rh->nh_control; in nhops_destroy_rib()
|
| H A D | mpath_ctl.c | 164 del_route_mpath(struct rib_head *rh, struct rt_addrinfo *info, in del_route_mpath() argument 172 RIB_WLOCK_ASSERT(rh); in del_route_mpath() 184 error = nhgrp_get_filtered_group(rh, nhg, gw_filter_func, (void *)&ri, in del_route_mpath() 187 error = change_route_nhop(rh, rt, info, &rnd, rc); in del_route_mpath()
|
| H A D | nhgrp_ctl.c | 565 nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops, in nhgrp_get_group() argument 568 struct nh_control *ctl = rh->nh_control; in nhgrp_get_group() 586 nhgrp_get_filtered_group(struct rib_head *rh, const struct nhgrp_object *src, in nhgrp_get_filtered_group() argument 590 struct nh_control *ctl = rh->nh_control; in nhgrp_get_filtered_group() 647 struct nh_control *ctl = rh->nh_control; in nhgrp_get_addition_group() 700 dump_nhgrp_entry(struct rib_head *rh, const struct nhgrp_priv *nhg_priv, in dump_nhgrp_entry() argument 778 nhgrp_get_count(struct rib_head *rh) in nhgrp_get_count() argument 783 ctl = rh->nh_control; in nhgrp_get_count() 793 nhgrp_dump_sysctl(struct rib_head *rh, struct sysctl_req *w) in nhgrp_dump_sysctl() argument 795 struct nh_control *ctl = rh->nh_control; in nhgrp_dump_sysctl() [all …]
|
| H A D | route_tables.c | 174 struct rib_head **prnh, *rh; in grow_rtables() local 213 rh = dom->dom_rtattach(i); in grow_rtables() 214 if (rh == NULL) in grow_rtables() 218 if (fib_select_algo_initial(rh) != 0) { in grow_rtables() 224 *prnh = rh; in grow_rtables()
|
| H A D | route_ddb.c | 209 struct rib_head *rh; in _DB_FUNC() local 250 rh = rt_tables_get_rnh(RT_DEFAULT_FIB, af); in _DB_FUNC() 252 rn = rh->rnh_matchaddr(&u, &rh->head); in _DB_FUNC()
|
| H A D | nhop_ctl.c | 80 static int dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w); 772 nhops_update_ifmtu(struct rib_head *rh, struct ifnet *ifp, uint32_t mtu) in nhops_update_ifmtu() argument 778 ctl = rh->nh_control; in nhops_update_ifmtu() 804 dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w) in dump_nhop_entry() argument 831 pnhe->nh_fib = rh->rib_fibnum; in dump_nhop_entry() 876 nhops_get_count(struct rib_head *rh) in nhops_get_count() argument 881 ctl = rh->nh_control; in nhops_get_count() 891 nhops_dump_sysctl(struct rib_head *rh, struct sysctl_req *w) in nhops_dump_sysctl() argument 897 ctl = rh->nh_control; in nhops_dump_sysctl() 902 error = dump_nhop_entry(rh, nh_priv->nh, w); in nhops_dump_sysctl()
|
| H A D | route_ctl.h | 124 uint32_t nhops_get_count(struct rib_head *rh); 131 uint32_t nhgrp_get_count(struct rib_head *rh);
|
| /f-stack/freebsd/netinet/ |
| H A D | in_fib.c | 145 if (rh == NULL) in fib4_lookup() 156 RIB_RLOCK(rh); in fib4_lookup() 157 rn = rh->rnh_matchaddr((void *)&sin4, &rh->head); in fib4_lookup() 168 RIB_RUNLOCK(rh); in fib4_lookup() 223 if (rh == NULL) in lookup_nhop() 233 RIB_RLOCK(rh); in lookup_nhop() 234 rn = rh->rnh_matchaddr((void *)&sin4, &rh->head); in lookup_nhop() 237 RIB_RUNLOCK(rh); in lookup_nhop() 291 if (rh == NULL) in fib4_lookup_rt() 303 RIB_RLOCK(rh); in fib4_lookup_rt() [all …]
|
| H A D | in_rmx.c | 121 struct rib_head *rh; in in_inithead() local 123 rh = rt_table_init(32, AF_INET, fibnum); in in_inithead() 124 if (rh == NULL) in in_inithead() 127 rh->rnh_preadd = rib4_preadd; in in_inithead() 129 return (rh); in in_inithead() 134 in_detachhead(struct rib_head *rh) in in_detachhead() argument 137 rt_table_destroy(rh); in in_detachhead()
|
| H A D | in_fib_algo.c | 536 ent = (struct radix4_addr_entry *)(rn_match(&addr4, &rnh->rh)); in lradix4_lookup() 631 &lr->rnh->rh, ae->rn); in lradix4_add_route_cb() 675 struct rib_head *rh; member 682 struct rib_head *rh = (struct rib_head *)algo_data; in radix4_lookup() local 694 RIB_RLOCK(rh); in radix4_lookup() 695 rn = rn_match((void *)&sin4, &rh->head); in radix4_lookup() 698 RIB_RUNLOCK(rh); in radix4_lookup() 719 r4->rh = fib_get_rh(fd); in radix4_init() 746 dp->arg = r4->rh; in radix4_end_dump()
|
| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_radiotap.c | 61 rh, rlen, 0, rx_radiotap); in ieee80211_radiotap_attach() 68 struct ieee80211_radiotap_header *rh, in ieee80211_radiotap_attachv() argument 91 rh->it_present = htole32(rx_radiotap); in ieee80211_radiotap_attachv() 92 ic->ic_rh = rh; in ieee80211_radiotap_attachv() 104 ic->ic_rxchan = ((uint8_t *) rh) + off; in ieee80211_radiotap_attachv() 201 bpf_mtap2(vap->iv_rawbpf, rh, len, m); in spam_vaps() 238 len = le16toh(rh->it_len); in ieee80211_radiotap_rx() 241 bpf_mtap2(vap0->iv_rawbpf, rh, len, m); in ieee80211_radiotap_rx() 248 spam_vaps(vap0, m, rh, len); in ieee80211_radiotap_rx() 260 int len = le16toh(rh->it_len); in ieee80211_radiotap_rx_all() [all …]
|
| /f-stack/freebsd/net/ |
| H A D | route.c | 106 rn_inithead_internal(&rh->head, rh->rnh_nodes, offset); in rt_table_init() 107 rn_inithead_internal(&rh->rmhead.head, rh->rmhead.mask_nodes, 0); in rt_table_init() 108 rh->head.rnh_masks = &rh->rmhead; in rt_table_init() 135 return (rh); in rt_table_init() 154 RIB_WLOCK(rh); in rt_table_destroy() 156 RIB_WUNLOCK(rh); in rt_table_destroy() 164 rn_walktree(&rh->rmhead.head, rt_freeentry, &rh->rmhead.head); in rt_table_destroy() 431 if (rh == NULL) in rib_lookup_info() 434 RIB_RLOCK(rh); in rib_lookup_info() 435 rn = rh->rnh_matchaddr(__DECONST(void *, dst), &rh->head); in rib_lookup_info() [all …]
|
| H A D | radix.h | 131 struct radix_head rh; member 150 void rn_inithead_internal(struct radix_head *rh, struct radix_node *base_nodes,
|
| /f-stack/freebsd/netinet6/ |
| H A D | in6_fib.c | 153 if (rh == NULL) in fib6_lookup() 165 RIB_RLOCK(rh); in fib6_lookup() 166 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); in fib6_lookup() 177 RIB_RUNLOCK(rh); in fib6_lookup() 233 if (rh == NULL) in lookup_nhop() 247 RIB_RLOCK(rh); in lookup_nhop() 248 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); in lookup_nhop() 251 RIB_RUNLOCK(rh); in lookup_nhop() 304 if (rh == NULL) in fib6_lookup_rt() 318 RIB_RLOCK(rh); in fib6_lookup_rt() [all …]
|
| H A D | route6.c | 66 struct ip6_rthdr *rh; in route6_input() local 86 if (m->m_len < off + sizeof(*rh)) { in route6_input() 87 m = m_pullup(m, off + sizeof(*rh)); in route6_input() 95 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); in route6_input() 101 switch (rh->ip6r_type) { in route6_input() 104 if (rh->ip6r_segleft == 0) { in route6_input() 105 rhlen = (rh->ip6r_len + 1) << 3; in route6_input() 110 (caddr_t)&rh->ip6r_type - (caddr_t)ip6); in route6_input() 117 return (rh->ip6r_nxt); in route6_input()
|
| H A D | in6_rmx.c | 145 struct rib_head *rh; in in6_inithead() local 148 rh = rt_table_init(offsetof(struct sockaddr_in6, sin6_addr) << 3, in in6_inithead() 150 if (rh == NULL) in in6_inithead() 153 rh->rnh_preadd = rib6_preadd; in in6_inithead() 155 rs = rib_subscribe_internal(rh, nd6_subscription_cb, NULL, in in6_inithead() 159 return (rh); in in6_inithead() 164 in6_detachhead(struct rib_head *rh) in in6_detachhead() argument 167 rt_table_destroy(rh); in in6_detachhead()
|
| H A D | in6_fib_algo.c | 201 (struct sockaddr *)rt_mask, &lr->rnh->rh, ae->rn); in lradix6_add_route_cb() 245 struct rib_head *rh; member 252 struct rib_head *rh = (struct rib_head *)algo_data; in radix6_lookup() local 266 RIB_RLOCK(rh); in radix6_lookup() 267 rn = rn_match((void *)&sin6, &rh->head); in radix6_lookup() 270 RIB_RUNLOCK(rh); in radix6_lookup() 278 struct rib_head *rh = rh = rt_tables_get_rnh(fibnum, AF_INET6); in fib6_radix_lookup_nh() local 281 if (rh == NULL) in fib6_radix_lookup_nh() 284 return (radix6_lookup(rh, key, scopeid)); in fib6_radix_lookup_nh() 303 r6->rh = fib_get_rh(fd); in radix6_init() [all …]
|
| /f-stack/dpdk/drivers/net/liquidio/ |
| H A D | lio_ethdev.h | 134 uint64_t rh; member 140 uint64_t rh; member 146 uint64_t rh; member
|
| H A D | lio_rxtx.h | 53 union octeon_rh rh; member 678 lio_opcode_slow_path(union octeon_rh *rh) in lio_opcode_slow_path() argument 682 subcode1 = LIO_OPCODE_SUBCODE(rh->r.opcode, rh->r.subcode); in lio_opcode_slow_path()
|
| /f-stack/freebsd/netpfil/pf/ |
| H A D | pf_table.c | 577 rv = kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, in pfr_get_addrs() 733 if (kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, in pfr_enqueue_addrs() 737 if (kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, in pfr_enqueue_addrs() 769 head = &kt->pfrkt_ip4->rh; in pfr_lookup_addr() 772 head = &kt->pfrkt_ip6->rh; in pfr_lookup_addr() 971 head = &kt->pfrkt_ip4->rh; in pfr_route_kentry() 973 head = &kt->pfrkt_ip6->rh; in pfr_route_kentry() 992 head = &kt->pfrkt_ip4->rh; in pfr_unroute_kentry() 994 head = &kt->pfrkt_ip6->rh; in pfr_unroute_kentry() 2241 &kt->pfrkt_ip4->rh); in pfr_pool_get() [all …]
|
| /f-stack/dpdk/drivers/crypto/nitrox/ |
| H A D | nitrox_hal.h | 60 uint64_t rh : 1; member 66 uint64_t rh : 1;
|
| /f-stack/freebsd/kern/ |
| H A D | vfs_export.c | 208 rn = (*rnh->rnh_addaddr)(saddr, smask, &rnh->rh, np->netc_rnodes); in vfs_hang_addrlist() 240 (*rnh->rnh_deladdr) (rn->rn_key, rn->rn_mask, &rnh->rh); in vfs_free_netcred() 267 (*rnh->rnh_walktree)(&rnh->rh, vfs_free_netcred, rnh); in vfs_free_addrlist_af() 490 np = (struct netcred *) (*rnh->rnh_matchaddr)(saddr, &rnh->rh); in vfs_export_lookup()
|