Home
last modified time | relevance | path

Searched refs:h1 (Results 1 – 5 of 5) sorted by relevance

/net/sched/
Dcls_route.c220 unsigned int h1, h2; in route4_get() local
222 h1 = to_hash(handle); in route4_get()
223 if (h1 > 256) in route4_get()
230 b = rtnl_dereference(head->table[h1]); in route4_get()
279 int h1, h2; in route4_destroy() local
284 for (h1 = 0; h1 <= 256; h1++) { in route4_destroy()
287 b = rtnl_dereference(head->table[h1]); in route4_destroy()
304 RCU_INIT_POINTER(head->table[h1], NULL); in route4_destroy()
320 int i, h1; in route4_delete() local
364 for (h1 = 0; h1 <= 256; h1++) { in route4_delete()
[all …]
/net/packet/
Daf_packet.c165 struct tpacket_hdr *h1; member
376 WRITE_ONCE(h.h1->tp_status, status); in __packet_set_status()
377 flush_dcache_page(pgv_to_page(&h.h1->tp_status)); in __packet_set_status()
406 flush_dcache_page(pgv_to_page(&h.h1->tp_status)); in __packet_get_status()
407 return READ_ONCE(h.h1->tp_status); in __packet_get_status()
458 h.h1->tp_sec = ts.tv_sec; in __packet_set_timestamp()
459 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in __packet_set_timestamp()
475 flush_dcache_page(pgv_to_page(&h.h1->tp_sec)); in __packet_set_timestamp()
771 struct tpacket_hdr_v1 *h1 = &pbd1->hdr.bh1; in prb_close_block() local
782 h1->ts_last_pkt.ts_sec = last_pkt->tp_sec; in prb_close_block()
[all …]
/net/netfilter/
Dnf_conntrack_core.c130 static void nf_conntrack_double_unlock(unsigned int h1, unsigned int h2) in nf_conntrack_double_unlock() argument
132 h1 %= CONNTRACK_LOCKS; in nf_conntrack_double_unlock()
134 spin_unlock(&nf_conntrack_locks[h1]); in nf_conntrack_double_unlock()
135 if (h1 != h2) in nf_conntrack_double_unlock()
140 static bool nf_conntrack_double_lock(struct net *net, unsigned int h1, in nf_conntrack_double_lock() argument
143 h1 %= CONNTRACK_LOCKS; in nf_conntrack_double_lock()
145 if (h1 <= h2) { in nf_conntrack_double_lock()
146 nf_conntrack_lock(&nf_conntrack_locks[h1]); in nf_conntrack_double_lock()
147 if (h1 != h2) in nf_conntrack_double_lock()
152 spin_lock_nested(&nf_conntrack_locks[h1], in nf_conntrack_double_lock()
[all …]
/net/ipv6/
Dip6_gre.c122 unsigned int h1 = HASH_KEY(key); in ip6gre_tunnel_lookup() local
132 for_each_ip_tunnel_rcu(t, ign->tunnels_r_l[h0 ^ h1]) { in ip6gre_tunnel_lookup()
157 for_each_ip_tunnel_rcu(t, ign->tunnels_r[h0 ^ h1]) { in ip6gre_tunnel_lookup()
181 for_each_ip_tunnel_rcu(t, ign->tunnels_l[h1]) { in ip6gre_tunnel_lookup()
207 for_each_ip_tunnel_rcu(t, ign->tunnels_wc[h1]) { in ip6gre_tunnel_lookup()
Dsit.c102 unsigned int h1 = HASH(local); in ipip6_tunnel_lookup() local
107 for_each_ip_tunnel_rcu(t, sitn->tunnels_r_l[h0 ^ h1]) { in ipip6_tunnel_lookup()
122 for_each_ip_tunnel_rcu(t, sitn->tunnels_l[h1]) { in ipip6_tunnel_lookup()