/net/sched/ |
D | sch_sfq.c | 208 struct sfq_slot *slot = &q->slots[x]; in sfq_link() local 209 int qlen = slot->qlen; in sfq_link() 214 slot->dep.next = n; in sfq_link() 215 slot->dep.prev = p; in sfq_link() 259 static inline struct sk_buff *slot_dequeue_tail(struct sfq_slot *slot) in slot_dequeue_tail() argument 261 struct sk_buff *skb = slot->skblist_prev; in slot_dequeue_tail() 263 slot->skblist_prev = skb->prev; in slot_dequeue_tail() 264 skb->prev->next = (struct sk_buff *)slot; in slot_dequeue_tail() 270 static inline struct sk_buff *slot_dequeue_head(struct sfq_slot *slot) in slot_dequeue_head() argument 272 struct sk_buff *skb = slot->skblist_next; in slot_dequeue_head() [all …]
|
D | sch_sfb.c | 73 u8 slot; /* current active bins (0 or 1) */ member 106 static u32 sfb_hash(const struct sk_buff *skb, u32 slot) in sfb_hash() argument 108 return sfb_skb_cb(skb)->hashes[slot]; in sfb_hash() 127 static void increment_one_qlen(u32 sfbhash, u32 slot, struct sfb_sched_data *q) in increment_one_qlen() argument 130 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in increment_one_qlen() 155 static void decrement_one_qlen(u32 sfbhash, u32 slot, in decrement_one_qlen() argument 159 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in decrement_one_qlen() 206 const struct sfb_bucket *b = &q->bins[q->slot].bins[0][0]; in sfb_compute_qlen() 222 static void sfb_init_perturbation(u32 slot, struct sfb_sched_data *q) in sfb_init_perturbation() argument 224 get_random_bytes(&q->bins[slot].perturbation, in sfb_init_perturbation() [all …]
|
D | sch_api.c | 539 int pkt_len, slot; in __qdisc_calculate_pkt_len() local 545 slot = pkt_len + stab->szopts.cell_align; in __qdisc_calculate_pkt_len() 546 if (unlikely(slot < 0)) in __qdisc_calculate_pkt_len() 547 slot = 0; in __qdisc_calculate_pkt_len() 549 slot >>= stab->szopts.cell_log; in __qdisc_calculate_pkt_len() 550 if (likely(slot < stab->szopts.tsize)) in __qdisc_calculate_pkt_len() 551 pkt_len = stab->data[slot]; in __qdisc_calculate_pkt_len() 554 (slot / stab->szopts.tsize) + in __qdisc_calculate_pkt_len() 555 stab->data[slot % stab->szopts.tsize]; in __qdisc_calculate_pkt_len()
|
D | sch_qfq.c | 888 u64 slot = (roundedS - grp->S) >> grp->slot_shift; in qfq_slot_insert() local 891 if (unlikely(slot > QFQ_MAX_SLOTS - 2)) { in qfq_slot_insert() 896 slot = QFQ_MAX_SLOTS - 2; in qfq_slot_insert() 899 i = (grp->front + slot) % QFQ_MAX_SLOTS; in qfq_slot_insert() 902 __set_bit(slot, &grp->full_slots); in qfq_slot_insert()
|
/net/ipv4/ |
D | raw_diag.c | 61 int slot; in raw_sock_get() local 67 for (slot = 0; slot < RAW_HTABLE_SIZE; slot++) { in raw_sock_get() 68 sk_for_each(s, &hashinfo->ht[slot]) { in raw_sock_get() 152 int num, s_num, slot, s_slot; in raw_diag_dump() local 162 for (slot = s_slot; slot < RAW_HTABLE_SIZE; s_num = 0, slot++) { in raw_diag_dump() 165 sk_for_each(sk, &hashinfo->ht[slot]) { in raw_diag_dump() 190 cb->args[0] = slot; in raw_diag_dump()
|
D | inet_timewait_sock.c | 263 unsigned int slot; in inet_twsk_purge() local 265 for (slot = 0; slot <= hashinfo->ehash_mask; slot++) { in inet_twsk_purge() 266 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in inet_twsk_purge() 298 if (get_nulls_value(node) != slot) in inet_twsk_purge()
|
D | udp_diag.c | 104 int num, s_num, slot, s_slot; in udp_dump() local 109 for (slot = s_slot; slot <= table->mask; s_num = 0, slot++) { in udp_dump() 110 struct udp_hslot *hslot = &table->hash[slot]; in udp_dump() 148 cb->args[0] = slot; in udp_dump()
|
D | inet_hashtables.c | 287 unsigned int slot = hash & hashinfo->ehash_mask; in __inet_lookup_established() local 288 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet_lookup_established() 312 if (get_nulls_value(node) != slot) in __inet_lookup_established()
|
D | udp.c | 488 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp4_lib_lookup() local 489 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp4_lib_lookup() 2216 unsigned int slot = udp_hashfn(net, hnum, udp_table.mask); in __udp4_lib_mcast_demux_lookup() local 2217 struct udp_hslot *hslot = &udp_table.hash[slot]; in __udp4_lib_mcast_demux_lookup()
|
/net/unix/ |
D | diag.c | 185 int num, s_num, slot, s_slot; in unix_diag_dump() local 194 for (slot = s_slot; in unix_diag_dump() 195 slot < ARRAY_SIZE(unix_socket_table); in unix_diag_dump() 196 s_num = 0, slot++) { in unix_diag_dump() 200 sk_for_each(sk, &unix_socket_table[slot]) { in unix_diag_dump() 218 cb->args[0] = slot; in unix_diag_dump()
|
/net/llc/ |
D | llc_conn.c | 483 int slot = llc_sk_laddr_hashfn(sap, laddr); in __llc_lookup_established() local 484 struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot]; in __llc_lookup_established() 507 if (unlikely(get_nulls_value(node) != slot)) in __llc_lookup_established() 542 int slot = llc_sk_laddr_hashfn(sap, laddr); in __llc_lookup_listener() local 543 struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot]; in __llc_lookup_listener() 566 if (unlikely(get_nulls_value(node) != slot)) in __llc_lookup_listener()
|
D | llc_sap.c | 317 int slot = llc_sk_laddr_hashfn(sap, laddr); in llc_lookup_dgram() local 318 struct hlist_nulls_head *laddr_hb = &sap->sk_laddr_hash[slot]; in llc_lookup_dgram() 341 if (unlikely(get_nulls_value(node) != slot)) in llc_lookup_dgram()
|
/net/ipv6/ |
D | inet6_hashtables.c | 68 unsigned int slot = hash & hashinfo->ehash_mask; in __inet6_lookup_established() local 69 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet6_lookup_established() 87 if (get_nulls_value(node) != slot) in __inet6_lookup_established()
|
D | udp.c | 228 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp6_lib_lookup() local 229 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp6_lib_lookup()
|
/net/bridge/ |
D | br_multicast.c | 1347 struct hlist_node *slot = NULL; in br_multicast_add_router() local 1355 slot = &p->rlist; in br_multicast_add_router() 1358 if (slot) in br_multicast_add_router() 1359 hlist_add_behind_rcu(&port->rlist, slot); in br_multicast_add_router()
|