Home
last modified time | relevance | path

Searched refs:chain (Results 1 – 20 of 20) sorted by relevance

/net/sched/
Dcls_api.c131 struct tcf_proto **back, **chain; in tc_ctl_tfilter() local
191 chain = cops->tcf_chain(q, cl); in tc_ctl_tfilter()
193 if (chain == NULL) in tc_ctl_tfilter()
197 for (back = chain; (tp=*back) != NULL; back = &tp->next) { in tc_ctl_tfilter()
402 struct tcf_proto *tp, **chain; in tc_dump_tfilter() local
430 chain = cops->tcf_chain(q, cl); in tc_dump_tfilter()
431 if (chain == NULL) in tc_dump_tfilter()
436 for (tp=*chain, t=0; tp; tp = tp->next, t++) { in tc_dump_tfilter()
/net/ipv6/
Dinet6_hashtables.c44 list = &inet_ehash_bucket(hashinfo, hash)->chain; in __inet6_hash()
82 sk_nulls_for_each_rcu(sk, node, &head->chain) { in __inet6_lookup_established()
243 sk_nulls_for_each(sk2, node, &head->chain) { in __inet6_check_established()
254 __sk_nulls_add_node_rcu(sk, &head->chain); in __inet6_check_established()
/net/ipv4/
Dinet_hashtables.c42 hlist_add_head(&tb->node, &head->chain); in inet_bind_bucket_create()
208 sk_nulls_for_each_rcu(sk, node, &head->chain) { in __inet_lookup_established()
297 sk_nulls_for_each(sk2, node, &head->chain) { in __inet_check_established()
310 __sk_nulls_add_node_rcu(sk, &head->chain); in __inet_check_established()
350 list = &head->chain; in __inet_hash_nolisten()
445 inet_bind_bucket_for_each(tb, node, &head->chain) { in __inet_hash_connect()
Droute.c203 struct rtable *chain; member
287 if (!rt_hash_table[st->bucket].chain) in rt_cache_get_first()
290 r = rcu_dereference(rt_hash_table[st->bucket].chain); in rt_cache_get_first()
313 } while (!rt_hash_table[st->bucket].chain); in __rt_cache_get_next()
315 r = rt_hash_table[st->bucket].chain; in __rt_cache_get_next()
728 rth = rt_hash_table[i].chain; in rt_do_flush()
737 rth = rt_hash_table[i].chain; in rt_do_flush()
744 rt_hash_table[i].chain = tail; in rt_do_flush()
747 prev = &rt_hash_table[i].chain; in rt_do_flush()
759 rth = rt_hash_table[i].chain; in rt_do_flush()
[all …]
Dinet_connection_sock.c111 inet_bind_bucket_for_each(tb, node, &head->chain) in inet_csk_get_port()
139 inet_bind_bucket_for_each(tb, node, &head->chain) in inet_csk_get_port()
Dinet_diag.c787 if (hlist_nulls_empty(&head->chain) && in inet_diag_dump()
795 sk_nulls_for_each(sk, node, &head->chain) { in inet_diag_dump()
Dtcp_ipv4.c1870 sk_nulls_for_each(sk, node, &tcp_hashinfo.ehash[bucket].chain) { in tcp_v4_nuke_addr()
2005 return hlist_nulls_empty(&tcp_hashinfo.ehash[st->bucket].chain) && in empty_bucket()
2026 sk_nulls_for_each(sk, node, &tcp_hashinfo.ehash[st->bucket].chain) { in established_get_first()
2083 sk = sk_nulls_head(&tcp_hashinfo.ehash[st->bucket].chain); in established_get_next()
Dtcp.c2820 INIT_HLIST_NULLS_HEAD(&tcp_hashinfo.ehash[i].chain, i); in tcp_init()
2838 INIT_HLIST_HEAD(&tcp_hashinfo.bhash[i].chain); in tcp_init()
/net/xfrm/
Dxfrm_policy.c556 struct hlist_head *chain; in xfrm_policy_insert() local
561 chain = policy_hash_bysel(net, &policy->selector, policy->family, dir); in xfrm_policy_insert()
564 hlist_for_each_entry(pol, entry, chain, bydst) { in xfrm_policy_insert()
586 hlist_add_head(&policy->bydst, chain); in xfrm_policy_insert()
644 struct hlist_head *chain; in xfrm_policy_bysel_ctx() local
649 chain = policy_hash_bysel(net, sel, sel->family, dir); in xfrm_policy_bysel_ctx()
651 hlist_for_each_entry(pol, entry, chain, bydst) { in xfrm_policy_bysel_ctx()
683 struct hlist_head *chain; in xfrm_policy_byid() local
692 chain = net->xfrm.policy_byidx + idx_hash(net, id); in xfrm_policy_byid()
694 hlist_for_each_entry(pol, entry, chain, byidx) { in xfrm_policy_byid()
[all …]
/net/decnet/
Ddn_route.c95 struct dn_route *chain; member
165 rtp = &dn_rt_hash_table[i].chain; in dn_dst_check_expire()
197 rtp = &dn_rt_hash_table[i].chain; in dn_dst_gc()
284 rthp = &dn_rt_hash_table[hash].chain; in dn_insert_route()
292 dn_rt_hash_table[hash].chain); in dn_insert_route()
293 rcu_assign_pointer(dn_rt_hash_table[hash].chain, rth); in dn_insert_route()
305 rcu_assign_pointer(rt->u.dst.dn_next, dn_rt_hash_table[hash].chain); in dn_insert_route()
306 rcu_assign_pointer(dn_rt_hash_table[hash].chain, rt); in dn_insert_route()
322 if ((rt = xchg(&dn_rt_hash_table[i].chain, NULL)) == NULL) in dn_run_flush()
1162 for(rt = rcu_dereference(dn_rt_hash_table[hash].chain); rt; in __dn_route_output_key()
[all …]
/net/sctp/
Dproc.c213 sctp_for_each_hentry(epb, node, &head->chain) { in sctp_eps_seq_show()
317 sctp_for_each_hentry(epb, node, &head->chain) { in sctp_assocs_seq_show()
430 sctp_for_each_hentry(epb, node, &head->chain) { in sctp_remaddr_seq_show()
Dinput.c706 hlist_add_head(&epb->node, &head->chain); in __sctp_hash_endpoint()
758 sctp_for_each_hentry(epb, node, &head->chain) { in __sctp_rcv_lookup_endpoint()
786 hlist_add_head(&epb->node, &head->chain); in __sctp_hash_established()
849 sctp_for_each_hentry(epb, node, &head->chain) { in __sctp_lookup_association()
Dprotocol.c1240 INIT_HLIST_HEAD(&sctp_assoc_hashtable[i].chain); in sctp_init()
1254 INIT_HLIST_HEAD(&sctp_ep_hashtable[i].chain); in sctp_init()
1273 INIT_HLIST_HEAD(&sctp_port_hashtable[i].chain); in sctp_init()
Dendpointola.c342 sctp_for_each_hentry(epb, node, &head->chain) { in __sctp_endpoint_lookup_assoc()
Dsocket.c5716 sctp_for_each_hentry(pp, node, &head->chain) in sctp_get_port_local()
5743 sctp_for_each_hentry(pp, node, &head->chain) { in sctp_get_port_local()
6094 hlist_add_head(&pp->node, &head->chain); in sctp_bucket_create()
/net/bridge/
DKconfig28 bridged ARP traffic in the arptables FORWARD chain.
/net/core/
Dneighbour.c2137 int chain; in neigh_for_each() local
2140 for (chain = 0; chain <= tbl->hash_mask; chain++) { in neigh_for_each()
2143 for (n = tbl->hash_buckets[chain]; n; n = n->next) in neigh_for_each()
2154 int chain; in __neigh_for_each_release() local
2156 for (chain = 0; chain <= tbl->hash_mask; chain++) { in __neigh_for_each_release()
2159 np = &tbl->hash_buckets[chain]; in __neigh_for_each_release()
/net/bridge/netfilter/
Debtables.c736 static int check_chainloops(struct ebt_entries *chain, struct ebt_cl_stack *cl_s, in check_chainloops() argument
739 int i, chain_nr = -1, pos = 0, nentries = chain->nentries, verdict; in check_chainloops()
740 struct ebt_entry *e = (struct ebt_entry *)chain->data; in check_chainloops()
752 nentries = chain->nentries; in check_chainloops()
/net/dccp/
Dproto.c1080 INIT_HLIST_NULLS_HEAD(&dccp_hashinfo.ehash[i].chain, i); in dccp_init()
1106 INIT_HLIST_HEAD(&dccp_hashinfo.bhash[i].chain); in dccp_init()
/net/netfilter/
DKconfig91 provide a notifier chain that can be used by other kernel code